braze-inc / braze-flutter-sdk

Public repo for the Braze Flutter SDK
Other
15 stars 29 forks source link

braze plugin no have function register ios apns token just only register android push token to setup at flutter code only #23

Closed anggadwi16 closed 1 year ago

anggadwi16 commented 1 year ago

braze plugin no have function register ios apns token just only register android push token to setup at flutter code only. i think maybe can integrate with firebase token,

Bucimis commented 1 year ago

@anggadwi16 on iOS, you will need to register your token using native code.

In your implementation of - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken, call [[Appboy sharedInstance] registerDeviceToken:deviceToken]; to pass the token to Braze.

See https://www.braze.com/docs/developer_guide/platform_integration_guides/ios/push_notifications/integration#step-4-register-push-tokens-with-braze for more detail

wrbl606 commented 1 year ago

@Bucimis Though your solution may work isn't it something to be implemented on the Dart side? Isn't what this plugin is for?

Bucimis commented 1 year ago

@wrbl606 it's definitely a limitation, we're planning to address that going forward with full push support. The timeline is still not set though

hokstuff commented 1 year ago

Hi all,

I'm closing out this issue as a dupe of this other open issue around adding Push Notification callbacks in the Dart layer. As noted above, we have plans to address adding full push support moving forward, but do not have a current timeline.

Thanks!