-
Notifications
You must be signed in to change notification settings - Fork 39
iOS not displaying notification when app in background/closed #5
Comments
This is also happening for my team. Been stuck for over a week. |
Let us check that. |
Strange, once I put my app in the background, xcode says: Disconnected from FCM. |
I Googled "disconnected from FCM" and got arnesson#888 |
Yes, been looking at that thread but none of the solutions seems to fix the problem. |
Make sure your xCode project Capabilities include "Background mode" -> "Remote Notifications" <platform name="ios">
......
<config-file parent="UIBackgroundModes" platform="ios" target="*-Info.plist">
<array>
<string>remote-notification</string>
</array>
</config-file>
<preference name="SplashScreen" value="screen" />
</platform> |
I fixed by add the following code: AppDelegate+FirebasePlugin.m swizzledDidFinishLaunchingWithOptions add registerUserNotificationSettings
and add this function
and setup Background mode -> Remote Notifications in info.plist it will work |
Does IOS background operation not receive notification have not been repaired yet? I did not solve my problem with the above scheme. |
I often encounter the error of Invalid Apns Credential, but the certificate is not expired. I hope you can help me. |
There is also this which can mess up iOS notifications. The problem is not identical to what I have experienced but close enough so that this might be contributing.
I.e. make sure you do not call hasPermission because you need to call grantPermission regardless of the return value. |
Describe the bug
Push notification working fine on Android but on iOS notification are not displaying when app is in background or closed. When app i opend and i push notification from Firebase console notification is visible but when i exit from app and do the same thing, notification is not visible.
Steps to reproduce the behavior:
Plugin Version
cordova-plugin-firebase-lib 3.0.0 "Google Firebase Plugin"
Smartphone (please complete the following information):
Additional context
When i open the application after sending notification from Firebase console and app was in the background, suddenly notification is visible...
Can some1 help?
The text was updated successfully, but these errors were encountered: