FirebasePushNotificationPlugin
FirebasePushNotificationPlugin copied to clipboard
autoRegistration: false NOT WORKING Android
Hi, the autoregistration boolean of the init call:
FirebasePushNotificationManager.Initialize(context: this, resetToken: true, autoRegistration: false);
doesn't work on Android the FIRST time the app is installed and launched.
If you delete your app on an android phone, install/deploy the app through Xamarin - and launch it, even with autoRegistration set to false, CrossFirebasePushNotification.Current.OnTokenRefresh
is called.
If you quit the app (don't uninstall) and relaunch, then autoRegistration=false
is obeyed, and CrossFirebasePushNotification.Current.OnTokenRefresh
is only called when CrossFirebasePushNotification.Current.RegisterForPushNotifications();
is called.
Using the Simulator Android API 28 ( Android 9.0) and 3.1.6 for the plugin
@Lydecker Did you find a workaround for this?
Unfortunately not - are you seeing the same behaviour?
@Lydecker Yeah I am seeing the same behavior, trying to find a workaround
I had a look at the source code but couldn't see anything glaringly obvious.
There are also separate iOS issues #303 with autoRegistration=false.
Unfortunately I don't think this flag is tested much on new releases - not even the sample project uses it...
@15mgm15 - did you get anywhere with this?
Thanks