Not getting the token in android release mode
🐛 Bug Report
In android i am never getting the token if I follow this guideline in release mode:
//If debug you should reset the token each time.
#if DEBUG
FirebasePushNotificationManager.Initialize(this,true);
#else
FirebasePushNotificationManager.Initialize(this,false);
#endif
Expected behavior
Token is generated
Reproduction steps
This never gives me a token:
//If debug you should reset the token each time.
#if DEBUG
FirebasePushNotificationManager.Initialize(this,true);
#else
FirebasePushNotificationManager.Initialize(this,false);
#endif
But this does (true in release too):
//If debug you should reset the token each time.
#if DEBUG
FirebasePushNotificationManager.Initialize(this,true);
#else
FirebasePushNotificationManager.Initialize(this,true);
#endif
Configuration
Version: 3.3.10
Platform:
- [ ] :iphone: iOS
- [x] :robot: Android
- [ ] :checkered_flag: WPF
- [ ] :earth_americas: UWP
- [ ] :apple: MacOS
- [ ] :tv: tvOS
- [ ] :monkey: Xamarin.Forms
Same issue
the same issue
Have a look at #320 and #319, maybe that helps
any solution??
I have the same problem.
I have the same problem, getting an empty token in release mode but a token received in debug mode v2.3.6.
I have the same problem, getting an empty token in release mode but a token received in debug mode v2.3.6.
I am afraid this plugin is no longer maintained...
Any news? Someone? This is a huge problem...
...same here ;-((( any help?
I seem to be getting the token in MainAPplication.cs now, but not always in App.xaml.cs.
MainApplication:
CrossFirebasePushNotification.Current.OnTokenRefresh += async (source, args) =>
{
// handle it here
}
But I agree that the plusing doesn't seem to be maintained anymore, in fact i have a plan to switch to OneSignal.
Folks as promised I switched to OneSignal: https://documentation.onesignal.com/docs/xamarin-sdk-setup The notifications work like a charm, there's a lot less configuration on the Xamarin side and it's easier to use, especially if you send notifications with action buttons. Highly recommended. I think this plugin is dead.
Folks as promised I switched to OneSignal: https://documentation.onesignal.com/docs/xamarin-sdk-setup The notifications work like a charm, there's a lot less configuration on the Xamarin side and it's easier to use, especially if you send notifications with action buttons. Highly recommended. I think this plugin is dead.
can be used with firebase right?
can be used with firebase right?
The firebase set up is the same, you will reuse the same Server API Key.
Any update on this issue?