-
Notifications
You must be signed in to change notification settings - Fork 679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working only for 1st message. #1
Comments
Can you provide more details about your issue? eg. your notification payload. |
Yes, I have added the same @import Firebase; @implementation AppDelegate
|
I can't reproduce it in my application. Are you using data payload or notification payload? Is the application in foreground? |
@koolkarni haven't got updates from you for a while. Have you figured out the issue? |
@evollu Sorry for late reply ,I get the notification on emulator but when i run on real mobile it dosent show anything |
anyways thanks for help.I will solve the issue and write the details here :) |
hmm interesting. I thought ios emulators can't get notification. I do get notifications on iphones though |
closing due to no response |
I have added following code in my main file:
// [[FIRMessaging messaging] disconnect];
NSLog(@"Disconnected from FCM");
}
//add this
[[NSNotificationCenter defaultCenter] postNotificationName: FCMNotificationReceived
object:self
userInfo:notification];
}
//add this
[[NSNotificationCenter defaultCenter] postNotificationName:FCMNotificationReceived
object:self
userInfo:notification];
handler(UIBackgroundFetchResultNoData);
}
the notification is shown only once when app runs for 1st time after installation
The text was updated successfully, but these errors were encountered: