Sleep

How to connect AutoSleep, Sleep Cycle or Pillow

Take a breath, this is simpler than it looks. AutoSleep, Sleep Cycle and Pillow are three popular sleep apps for iPhone. They all work the same way with MigraineMe, so this one guide covers all three.

MigraineMe does not talk to your sleep app directly. Your sleep app writes your sleep to Apple Health (the white app with a red heart that comes with your iPhone), and MigraineMe reads it from there. This is more private, because your sleep numbers stay on your phone.

These apps are iPhone only. If you have an Android phone, please see the Sleep as Android guide instead.

You only need to set this up once.


On iPhone

Step 1: Make sure MigraineMe can read sleep from Apple Health

  1. Open MigraineMe.
  2. Tap the gear icon in the top-left of the screen.
  3. Tap Connections.
  4. Find Apple Health in the list and tap Connect.
  5. A screen will slide up from the bottom. Tap Turn On All at the top.
  6. Scroll down and check that Sleep Analysis is green.
  7. Tap Allow in the top right corner.

If the button already says Connected, you can skip to Step 2.

Step 2: Turn on Apple Health sharing inside your sleep app

The exact words are slightly different in each app, but the idea is the same.

For AutoSleep

  1. Open AutoSleep.
  2. Tap the gear icon to open settings.
  3. Look for Apple Health or Write to Health.
  4. Make sure Sleep is switched on.
  5. If a permission screen appears, tap Turn On All, then Allow.

For Sleep Cycle

  1. Open Sleep Cycle.
  2. Tap Profile (or the person icon).
  3. Tap Account, then Apple Health.
  4. Tap Connect to Apple Health.
  5. On the permission screen, tap Turn On All, then Allow.

For Pillow

  1. Open Pillow.
  2. Tap the gear icon (settings).
  3. Tap Apple Health.
  4. Switch Sync with Apple Health to on.
  5. On the permission screen, tap Turn On All, then Allow.

Step 3: Check that it is working

  1. After your next night of sleep, open the Health app on your iPhone.
  2. Tap Browse at the bottom, then Sleep.
  3. You should see last night here.
  4. Open MigraineMe and tap the Monitor tab.
  5. Scroll to the Sleep card. Your sleep should appear within one or two hours of waking up.

On Android

These apps are only available on iPhone. If you have an Android phone, please see the separate guide How to connect Sleep as Android.


What MigraineMe does with your sleep data

MigraineMe reads how long you slept, how well you slept, and your sleep stages (deep, light and REM). It uses this to spot patterns. For example, a short or restless night often shows up the day before a migraine, and MigraineMe can flag this for you over time.

You will see your sleep in the Sleep card on the Monitor tab. After a few weeks, short or broken sleep may also show in the Top contributors card on Home on the days it counts toward your risk.

Troubleshooting

"The Health app shows no sleep"

Your sleep app has not written anything to Health yet.

  1. Open last night's session in your sleep app.
  2. Look for a button or three-dot menu with Share to Health or Re-sync to Health.
  3. Tap it.

"Health shows sleep, but MigraineMe does not"

This is almost always a permission issue.

  1. Open the Settings app on your iPhone (the grey gear icon, not the one in MigraineMe).
  2. Tap Apps, then Health.
  3. Tap Data Access & Devices.
  4. Tap MigraineMe.
  5. Make sure Sleep Analysis is green.

Still stuck?

Write to us at help@migraineme.app and tell us:

We usually reply within a day.

More in this section

Still stuck? Write to us at help@migraineme.app

Download MigraineMe