Comments (3)
What version are you using?
Is this on iOS?
Did you follow all the getting started instructions on docs?
from firebasepushnotificationplugin.
I suppose this is iOS
Did you override this methods and did this calls on each:
Also should override these methods and make the following calls:
public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
{
#if DEBUG
FirebasePushNotificationManager.DidRegisterRemoteNotifications(deviceToken, FirebaseTokenType.Sandbox);
#endif
#if RELEASE
FirebasePushNotificationManager.DidRegisterRemoteNotifications(deviceToken,FirebaseTokenType.Production);
#endif
}
public override void FailedToRegisterForRemoteNotifications(UIApplication application, NSError error)
{
FirebasePushNotificationManager.RemoteNotificationRegistrationFailed(error);
}
// To receive notifications in foregroung on iOS 9 and below.
// To receive notifications in background in any iOS version
public override void DidReceiveRemoteNotification(UIApplication application, NSDictionary userInfo, Action<UIBackgroundFetchResult> completionHandler)
{
// If you are receiving a notification message while your app is in the background,
// this callback will not be fired 'till the user taps on the notification launching the application.
// If you disable method swizzling, you'll need to call this method.
// This lets FCM track message delivery and analytics, which is performed
// automatically with method swizzling enabled.
FirebasePushNotificationManager.DidReceiveMessage(userInfo);
// Do your magic to handle the notification data
System.Console.WriteLine(userInfo);
}
public override void OnActivated(UIApplication uiApplication)
{
FirebasePushNotificationManager.Connect();
}
public override void DidEnterBackground(UIApplication application)
{
// Use this method to release shared resources, save user data, invalidate timers and store the application state.
// If your application supports background exection this method is called instead of WillTerminate when the user quits.
FirebasePushNotificationManager.Disconnect();
}
from firebasepushnotificationplugin.
Omg I used PushnotificationManager instead of FirebasePushNotificationManager.. My bad. Sorry!
from firebasepushnotificationplugin.
Related Issues (20)
- token not generated for android on vs 22 17.51 on macos
- Plugin.FirebasePushNotifications crashing on Xamarin.IOS project and phisical iPhone HOT 2
- Crash In IOS Initial HOT 2
- Implement request for notifications permissions in Android 13
- OnTokenRefresh method only fires every second debug session, but token has renewed on Firebase HOT 1
- CrossFirebasePushNotification.Current.OnTokenRefresh not always firing at app startup HOT 1
- Default FirebaseApp is not initialized in this context... HOT 3
- NuGet Release
- Problems after Update 3.4.25 or 3.4.35 with Android.Support.V4.Media.Session.MediaSessionCompat
- iOS Token is not generating giving error
- Cannot Gracefully Override DefaultPushNotificationHandler
- Sendo push to device android 13 HOT 4
- MAUI Support HOT 9
- no valid “aps-environment” entitlement string found for application HOT 1
- Token Issues HOT 1
- Permission Request HOT 1
- Delivery rate is not 50% HOT 1
- Edited push notification is not working when app is in background HOT 1
- Any plan of Required Reason API Privacy manifest?
- Could not receive the push notification on OnMessageReceived while swipe away app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebasepushnotificationplugin.