Description
I test my ionic application with https://cordova-plugin-fcm.appspot.com/
When the app is launched, everything works
When the app is not launched, i don't receive the notification, if i launch the application, the notification appears.
But i don't want this behavior, i prefer to receive the notification in the system banner.
I try with your test application and the behavior is the right one. I want the same !
I try to change content-available value, but nothing change
In IPhone Settings, i notice a difference.
So i suspect a wrong generation of my app.
I use "cordova-plugin-firebasex": "^6.0.4" with "@ionic-native/firebase-x": "^5.12.0"
In XCode, i have capabilities : "Background mode : Remote Notifications" and "Push Notifications" to true (checked by the generation, not me).
I try to compare ios platform folder between my app and the test app, it's seems to be very similar.
Any ideas ?
The log in XCode if it helps :
2019-08-09 14:32:46.805240+0200 Pharmajob[449:31246] - <AppMeasurement>[I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
2019-08-09 14:32:46.876664+0200 Pharmajob[449:31187] Apache Cordova native platform version 5.0.1 is starting.
2019-08-09 14:32:46.876754+0200 Pharmajob[449:31187] Multi-tasking -> Device: YES, App: YES
2019-08-09 14:32:46.889354+0200 Pharmajob[449:31187] CDVWKWebViewEngine: trying to inject XHR polyfill
2019-08-09 14:32:46.912622+0200 Pharmajob[449:31187] CDVWKWebViewEngine will reload WKWebView if required on resume
2019-08-09 14:32:46.912740+0200 Pharmajob[449:31187] Using Ionic WKWebView
2019-08-09 14:32:46.913284+0200 Pharmajob[449:31187] [CDVTimer][console] 0.087023ms
2019-08-09 14:32:46.913426+0200 Pharmajob[449:31187] [CDVTimer][handleopenurl] 0.069976ms
2019-08-09 14:32:46.915540+0200 Pharmajob[449:31187] Unlimited access to network resources
2019-08-09 14:32:46.915638+0200 Pharmajob[449:31187] [CDVTimer][intentandnavigationfilter] 2.182007ms
2019-08-09 14:32:46.915751+0200 Pharmajob[449:31187] [CDVTimer][gesturehandler] 0.083089ms
2019-08-09 14:32:46.917351+0200 Pharmajob[449:31187] [CDVTimer][file] 1.553893ms
2019-08-09 14:32:46.917506+0200 Pharmajob[449:31187] Starting Firebase plugin
2019-08-09 14:32:46.921959+0200 Pharmajob[449:31187] [CDVTimer][firebaseplugin] 4.552960ms
2019-08-09 14:32:46.922105+0200 Pharmajob[449:31187] CDVIonicKeyboard: resize mode 1
2019-08-09 14:32:46.922935+0200 Pharmajob[449:31187] [CDVTimer][keyboard] 0.854969ms
2019-08-09 14:32:46.929265+0200 Pharmajob[449:31249] _hasPermission: NO
2019-08-09 14:32:46.929655+0200 Pharmajob[449:31187] [CDVTimer][splashscreen] 6.627917ms
2019-08-09 14:32:46.936333+0200 Pharmajob[449:31187] [CDVTimer][statusbar] 6.615996ms
2019-08-09 14:32:46.936488+0200 Pharmajob[449:31187] [CDVTimer][diagnostic] 0.098944ms
2019-08-09 14:32:46.937384+0200 Pharmajob[449:31187] [CDVTimer][diagnostic_location] 0.867009ms
2019-08-09 14:32:46.938499+0200 Pharmajob[449:31187] [CDVTimer][diagnostic_bluetooth] 1.080036ms
2019-08-09 14:32:46.938591+0200 Pharmajob[449:31187] [CDVTimer][diagnostic_wifi] 0.054955ms
2019-08-09 14:32:46.938669+0200 Pharmajob[449:31187] [CDVTimer][diagnostic_camera] 0.054955ms
2019-08-09 14:32:46.938739+0200 Pharmajob[449:31187] [CDVTimer][diagnostic_notifications] 0.047922ms
2019-08-09 14:32:46.938796+0200 Pharmajob[449:31187] [CDVTimer][diagnostic_microphone] 0.036001ms
2019-08-09 14:32:46.941203+0200 Pharmajob[449:31187] [CDVTimer][diagnostic_contacts] 2.377987ms
2019-08-09 14:32:46.941308+0200 Pharmajob[449:31187] [CDVTimer][diagnostic_calendar] 0.062943ms
2019-08-09 14:32:46.941372+0200 Pharmajob[449:31187] [CDVTimer][diagnostic_reminders] 0.043035ms
2019-08-09 14:32:46.948204+0200 Pharmajob[449:31187] [CDVTimer][diagnostic_motion] 0.400901ms
2019-08-09 14:32:46.948245+0200 Pharmajob[449:31187] [CDVTimer][TotalPluginStartup] 35.122037ms
2019-08-09 14:32:46.961989+0200 Pharmajob[449:31187] GoogleService-Info.plist found, setup: [FIRApp configureWithOptions]
2019-08-09 14:32:46.976619+0200 Pharmajob[449:31187] [Crashlytics] Version 3.12.0 (136)
2019-08-09 14:32:47.084652+0200 Pharmajob[449:31187] didReceiveRegistrationToken: fr********
2019-08-09 14:32:47.091172+0200 Pharmajob[449:31187] FCM direct channel = true
2019-08-09 14:32:47.103891+0200 Pharmajob[449:31275] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: <CTServiceDescriptor 0x282837d00, domain=1, instance=1>
2019-08-09 14:32:47.147908+0200 Pharmajob[449:31281] 6.3.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at:
https://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
2019-08-09 14:32:47.159642+0200 Pharmajob[449:31282] 6.3.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60002000 started
2019-08-09 14:32:47.160139+0200 Pharmajob[449:31282] 6.3.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2019-08-09 14:32:48.098978+0200 Pharmajob[449:31187] Ionic Native: deviceready event fired after 624 ms
2019-08-09 14:32:48.419762+0200 Pharmajob[449:31281] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x107e1f9a0] get output frames failed, state 8196
2019-08-09 14:32:48.419960+0200 Pharmajob[449:31281] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x107e1f9a0] get output frames failed, state 8196
2019-08-09 14:32:48.420217+0200 Pharmajob[449:31281] TIC Read Status [1:0x0]: 1:57
2019-08-09 14:32:48.420233+0200 Pharmajob[449:31281] TIC Read Status [1:0x0]: 1:57
2019-08-09 14:32:48.564748+0200 Pharmajob[449:31250] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1:2][0x107e18550] get output frames failed, state 8196
2019-08-09 14:32:48.564858+0200 Pharmajob[449:31250] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1:2][0x107e18550] get output frames failed, state 8196
2019-08-09 14:32:48.565064+0200 Pharmajob[449:31250] TIC Read Status [4:0x0]: 1:57
2019-08-09 14:32:48.565084+0200 Pharmajob[449:31250] TIC Read Status [4:0x0]: 1:57