Implement Push Notification registration on iOS and Android
Problem to solve
Allowing push notification registration, in keeping with the features supported by the iOS and Android SDKs provided by Twilio.
Proposal
More information
On iOS side, to receive an APNs token, a plugin must register itself with the FlutterPluginRegistrar, and implement didRegisterForRemoteNotificationsWithDeviceToken
to receive the token, and didFailToRegisterForRemoteNotificationsWithError
to receive errors, prior to UIApplication.shared.registerForRemoteNotifications
being called (permissions must also be requested). At the time of logging this issue, while the AppDelegate
, being a UIApplicationDelegate
can successfully (if inconsistently) receive these callbacks, the plugin itself does not. The flutter_apns
plugin seems to be having similar issues