title: Cannot retrieve ExpoPushToken on IOS
body: <p>ExpoSDK Version - 42
  Bare workflow
  EAS version - 0.39.0</p>
  <p>I have an react-native expo app build with eas build --profile preview --platform all, and on IOS i cannot seem to retrieve the ExpoPushToken. On Android it works just fine. I tried to fix the issue by removing the APN push key, the Provisioning Profile and the Distribution Certificate, and creating them again from the EAS prompts, but the problem persists.</p>
  <p>The code I’m using for retrieving the Push token is the one from the Expo Documentation.</p>
  <pre><code>async function registerForPushNotificationsAsync() {
    let token;
    if (Constants.isDevice) {
      const { status: existingStatus } =
        await Notifications.getPermissionsAsync();
      let finalStatus = existingStatus;
      if (existingStatus !== &quot;granted&quot;) {
        const { status } = await Notifications.requestPermissionsAsync();
        finalStatus = status;
      }
      if (finalStatus !== &quot;granted&quot;) {
        alert(&quot;Failed to get push token for push notification!&quot;);
        return;
      }
      token = await Notifications.getExpoPushTokenAsync();
    } else {
      alert(&quot;Must use physical device for Push Notifications&quot;);
      return;
    }
  
    if (Platform.OS === &quot;android&quot;) {
      Notifications.setNotificationChannelAsync(&quot;default&quot;, {
        name: &quot;default&quot;,
        importance: Notifications.AndroidImportance.MAX,
        vibrationPattern: [0, 250, 250, 250],
        lightColor: &quot;#FF231F7C&quot;,
      });
    }
  
    return token;
  }
  </code></pre>
  <p>I’m calling this function inside a useEffect, and sending the token to the server, to store it in the users data, but on IOS the token returned is undefined.</p>