Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Expo Permissions askAsync method does not return

$
0
0

I am using Expo Permissions API to request permissions for my iOS app. The following method does not return after showing the permissions dialog.

  async initializePushNotificationsIos(cb) {    const permission = await Permissions.askAsync(Permissions.NOTIFICATIONS)    Analytics.track({      event: 'notification_permissions',      status: permission.status === 'granted' ? 'granted' : 'denied',    })    cb()    Notifications.registerRemoteNotifications()    await this.updateUserDeviceToken()  }

The code does not come back to the next step - Analytics.track call.

I am using Expo SDK 36 and corresponding React native version. Any reason why this is happening? This code was working at some point of time before and now does not work!


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>