pusher / push-notifications-flutter

Official Pusher Beams Flutter client plugin (iOS, Android and Web), receive notifications easily on your Flutter application with Pusher Beams.
https://pub.dev/packages/pusher_beams
MIT License
11 stars 30 forks source link

ios: Orchestration problem with `didRegisterForRemoteNotificationsWithDeviceToken` #14

Closed esarbanis closed 2 years ago

esarbanis commented 2 years ago

When starting the ios app I keep getting this error:

[PushNotifications] - Something went wrong. Please make sure that you've called `start` before `registerDeviceToken`.

After investigating it a bit, I think this is because didRegisterForRemoteNotificationsWithDeviceToken can be called before flutter has been initialized and therefore before start is called within flutter's context.