I am trying to get the device push token (not expo token) so we can configure push notifications. I saw this PR and when calling
const token = await Notifications.getDevicePushTokenAsync();
The promise is failing.
Error: APNS token has not been set
The app has the push entitlement set, I am actually getting a token in the
didRegisterForRemoteNotificationsWithDeviceToken delegate in objc in the same project (if I temporarily disable the Expo inits). Is there something I need to call to register it? It looks like it reads the apns from NSUserDefaults, but I didn’t see where registerForRemoteNotifications was called and then captured and stored that.