Closed andrehtissot closed 4 years ago
Please @rendau, continue the discussion here, so it doesn't mix with an unrelated issue.
Would you provide the log from the time that the app opens, to the time that it should have received the push message (a couple minutes after sending it).
Maybe we can spot a warning or something.
2020-04-18 19:35:17.088149+0600 ToiDriver[29849:13548919] Apache Cordova native platform version 5.1.1 is starting.
2020-04-18 19:35:17.088245+0600 ToiDriver[29849:13548919] Multi-tasking -> Device: YES, App: YES
2020-04-18 19:35:17.117339+0600 ToiDriver[29849:13548919]
Started backup to iCloud! Please be careful.
Your application might be rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines" at:
https://developer.apple.com/icloud/documentation/data-storage/
To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file
2020-04-18 19:35:17.143401+0600 ToiDriver[29849:13548919] CDVWKWebViewEngine will reload WKWebView if required on resume
2020-04-18 19:35:17.143455+0600 ToiDriver[29849:13548919] Using WKWebView
2020-04-18 19:35:17.143617+0600 ToiDriver[29849:13548919] [CDVTimer][console] 0.046968ms
2020-04-18 19:35:17.143692+0600 ToiDriver[29849:13548919] [CDVTimer][handleopenurl] 0.038981ms
2020-04-18 19:35:17.145117+0600 ToiDriver[29849:13548919] [CDVTimer][intentandnavigationfilter] 1.394987ms
2020-04-18 19:35:17.145198+0600 ToiDriver[29849:13548919] [CDVTimer][gesturehandler] 0.034928ms
2020-04-18 19:35:17.146742+0600 ToiDriver[29849:13548919] [CDVTimer][file] 1.497984ms
2020-04-18 19:35:17.146866+0600 ToiDriver[29849:13548919] [CDVTimer][socialsharing] 0.087976ms
2020-04-18 19:35:17.152623+0600 ToiDriver[29849:13548919] [CDVTimer][splashscreen] 5.717993ms
2020-04-18 19:35:17.153086+0600 ToiDriver[29849:13548919] [CDVTimer][codepush] 0.337005ms
2020-04-18 19:35:17.153619+0600 ToiDriver[29849:13548919] [CDVTimer][inappbrowser] 0.483036ms
2020-04-18 19:35:17.153692+0600 ToiDriver[29849:13548919] CDVPlugin class CDVUIInAppBrowser (pluginName: uiinappbrowser) does not exist.
2020-04-18 19:35:17.153720+0600 ToiDriver[29849:13548919] [CDVTimer][uiinappbrowser] 0.056028ms
2020-04-18 19:35:17.153806+0600 ToiDriver[29849:13548919] [CDVTimer][wkinappbrowser] 0.063062ms
2020-04-18 19:35:17.154414+0600 ToiDriver[29849:13548919] [CDVTimer][universallinks] 0.580072ms
2020-04-18 19:35:17.155473+0600 ToiDriver[29849:13548919] [CDVTimer][statusbar] 1.011968ms
2020-04-18 19:35:17.155550+0600 ToiDriver[29849:13548919] [CDVTimer][appmetrica] 0.038028ms
2020-04-18 19:35:17.155577+0600 ToiDriver[29849:13548919] [CDVTimer][TotalPluginStartup] 12.037992ms
2020-04-18 19:35:17.165792+0600 ToiDriver[29849:13548919] DidFinishLaunchingWithOptions
2020-04-18 19:35:17.185041+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.185074+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.187817+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.189072+0600 ToiDriver[29849:13548919] app become active
2020-04-18 19:35:17.189440+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.190079+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.196887+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.213501+0600 ToiDriver[29849:13549040] - <AppMeasurement>[I-ACS031025] 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
2020-04-18 19:35:17.214462+0600 ToiDriver[29849:13549040] - <AppMeasurement>[I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-04-18 19:35:17.218664+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.218732+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.222019+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.227290+0600 ToiDriver[29849:13548919] IAB.close() called but it was already closed.
2020-04-18 19:35:17.237710+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.238451+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.257559+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.389437+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.391468+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.392217+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.394811+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.394978+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.397169+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.397445+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.406508+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.423367+0600 ToiDriver[29849:13548919] Cordova view ready
2020-04-18 19:35:17.423739+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.426659+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.426726+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.427537+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.427576+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.430179+0600 ToiDriver[29849:13548919] FCMPlugin.js: is created
2020-04-18 19:35:17.430317+0600 ToiDriver[29849:13548919] FCMPlugin Ready OK
2020-04-18 19:35:17.432692+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.433695+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.435226+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.437991+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.441416+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.442624+0600 ToiDriver[29849:13548919] SUCCESSFUL LOAD STG FROM FS true
2020-04-18 19:35:17.445298+0600 ToiDriver[29849:13548919] get Token
2020-04-18 19:35:17.445498+0600 ToiDriver[29849:13548919] view registered for notifications
2020-04-18 19:35:17.445686+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.449692+0600 ToiDriver[29849:13548919] App created
2020-04-18 19:35:17.450511+0600 ToiDriver[29849:13548919] NO_CODEPUSH_UPDATE
2020-04-18 19:35:17.467342+0600 ToiDriver[29849:13549047] 6.22.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.
2020-04-18 19:35:17.478645+0600 ToiDriver[29849:13549083] 6.22.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60401000 started
2020-04-18 19:35:17.479125+0600 ToiDriver[29849:13549083] 6.22.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2020-04-18 19:35:17.481730+0600 ToiDriver[29849:13549044] 6.22.0 - [Firebase/Analytics][I-ACS025036] App Delegate Proxy is disabled
2020-04-18 19:35:17.489907+0600 ToiDriver[29849:13548919] reloading dic
2020-04-18 19:35:17.490014+0600 ToiDriver[29849:13548919] start refresh-profile since app-start
2020-04-18 19:35:17.490073+0600 ToiDriver[29849:13548919] start refresh-profile
2020-04-18 19:35:17.490528+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.490612+0600 ToiDriver[29849:13548919] TOKEN REFRESHED
2020-04-18 19:35:17.499595+0600 ToiDriver[29849:13548919] Device FCM Token: eKMQmUCYL0wxk5iItSv7Yk:APA91bGZO65g-mgiZEhCGBAxXBigB6sSry6YNF6bOgOeoPHN_3ejOk9u4vS1LIQ5EEb8173CWFHHnT2bBcX9nRmbS9HSOAqlS06HQoF74tUW6uOuarNzGDfI5ZoNA2oLYilXeJyuMD87
2020-04-18 19:35:17.499658+0600 ToiDriver[29849:13548919] notifyFCMTokenRefresh token: eKMQmUCYL0wxk5iItSv7Yk:APA91bGZO65g-mgiZEhCGBAxXBigB6sSry6YNF6bOgOeoPHN_3ejOk9u4vS1LIQ5EEb8173CWFHHnT2bBcX9nRmbS9HSOAqlS06HQoF74tUW6uOuarNzGDfI5ZoNA2oLYilXeJyuMD87
2020-04-18 19:35:17.499686+0600 ToiDriver[29849:13548919] stringByEvaluatingJavaScriptFromString FCMPlugin.onTokenRefreshReceived('eKMQmUCYL0wxk5iItSv7Yk:APA91bGZO65g-mgiZEhCGBAxXBigB6sSry6YNF6bOgOeoPHN_3ejOk9u4vS1LIQ5EEb8173CWFHHnT2bBcX9nRmbS9HSOAqlS06HQoF74tUW6uOuarNzGDfI5ZoNA2oLYilXeJyuMD87');
2020-04-18 19:35:17.499908+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.507878+0600 ToiDriver[29849:13548919] TOKEN REFRESHED eKMQmUCYL0wxk5iItSv7Yk:APA91bGZO65g-mgiZEhCGBAxXBigB6sSry6YNF6bOgOeoPHN_3ejOk9u4vS1LIQ5EEb8173CWFHHnT2bBcX9nRmbS9HSOAqlS06HQoF74tUW6uOuarNzGDfI5ZoNA2oLYilXeJyuMD87
2020-04-18 19:35:17.508351+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.508684+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.524389+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.541059+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.557807+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.574424+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.575649+0600 ToiDriver[29849:13549047] 6.22.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-04-18 19:35:17.591175+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.607759+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.624490+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.625348+0600 ToiDriver[29849:13549044] 6.22.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2020-04-18 19:35:17.641114+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.657785+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.674471+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.691119+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.707907+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.724495+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.741201+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.757830+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.774528+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.791227+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.807988+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.824581+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.841414+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.858035+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.874674+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.891385+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.908134+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.924736+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.941470+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.958142+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.974844+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:17.991471+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.019177+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.019295+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.041523+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.041777+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.043349+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.058040+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.074874+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.091465+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.108108+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.124775+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.141487+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.158170+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.174734+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.191477+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.192687+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.199854+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.202801+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.208092+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.224764+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.241620+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.258205+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.274953+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.291630+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.308331+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.325043+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.341678+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.358329+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.375135+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.391720+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.408313+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.425110+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.441747+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.458392+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.475117+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.491780+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.508409+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.525165+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.541792+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.558436+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.575221+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.591783+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.609853+0600 ToiDriver[29849:13548919] FCM-TURN-ON
2020-04-18 19:35:18.610143+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.618763+0600 ToiDriver[29849:13548919] refresh-profile-ads
2020-04-18 19:35:18.625163+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.641729+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.658386+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.675088+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.691771+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.708488+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.725185+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.742012+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.758537+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.775184+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.791776+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.804714+0600 ToiDriver[29849:13548919] refresh-profile-statistic
2020-04-18 19:35:18.807082+0600 ToiDriver[29849:13548919] success upload fcm token: eKMQmUCYL0wxk5iItSv7Yk:APA91bGZO65g-mgiZEhCGBAxXBigB6sSry6YNF6bOgOeoPHN_3ejOk9u4vS1LIQ5EEb8173CWFHHnT2bBcX9nRmbS9HSOAqlS06HQoF74tUW6uOuarNzGDfI5ZoNA2oLYilXeJyuMD87
2020-04-18 19:35:18.808508+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.825165+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.841825+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.858534+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.875276+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.891945+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.908614+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.925291+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.941917+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.957629+0600 ToiDriver[29849:13548919] ws connected
2020-04-18 19:35:18.958655+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.975308+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.991030+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:18.991921+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:19.013384+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:19.048269+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:19.072821+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:19.082054+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:19.089220+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:19.089624+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:19.101637+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:19.106044+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:19.390844+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:19.409436+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:19.411487+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:22.273452+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:22.273599+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:22.277223+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:35:22.277319+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
There was push sending!!!
"ws-msssage" is websocket message, that sent at same time with fcm-push
2020-04-18 19:35:45.742617+0600 ToiDriver[29849:13548919] WARN: undefined ws-message type
2020-04-18 19:35:45.743223+0600 ToiDriver[29849:13548919] ws-message: [object Object]
2020-04-18 19:36:18.569916+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:18.572056+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:19.467590+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:19.468986+0600 ToiDriver[29849:13548919] app entered background
2020-04-18 19:36:19.469069+0600 ToiDriver[29849:13548919] Set state background
2020-04-18 19:36:19.469123+0600 ToiDriver[29849:13548919] Disconnected from FCM
2020-04-18 19:36:19.469759+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:19.585584+0600 ToiDriver[29849:13548919] ON_CORDOVA_PAUSE
2020-04-18 19:36:19.585765+0600 ToiDriver[29849:13548919] Can't end BackgroundTask: no background task exists with identifier 12 (0xc), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.
2020-04-18 19:36:19.587397+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:19.587498+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:19.587698+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:19.587803+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:19.589850+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:19.603499+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:19.603775+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:19.615169+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:19.615278+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:22.451425+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
2020-04-18 19:36:22.451693+0600 ToiDriver[29849:13548919] [Process] kill() returned unexpected error 1
Looks like you might have more than one plugin trying to take care of push notifications (? fcm-push ?).
Would you share you package.json?
{
"name": "kz.toidriver",
"displayName": "ToiDriver",
"version": "1.0.0",
"description": "A sample Apache Cordova application that responds to the deviceready event.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"ecosystem:cordova"
],
"author": "Apache Cordova Team",
"license": "Apache-2.0",
"dependencies": {
"code-push": "^3.0.1",
"cordova-android": "^8.1.0",
"cordova-ios": "^5.1.1",
"cordova-plugin-badge": "^0.8.8",
"cordova-plugin-camera": "^4.1.0",
"cordova-plugin-code-push": "^1.12.2",
"cordova-plugin-device": "^2.0.3",
"cordova-plugin-dialogs": "^2.0.2",
"cordova-plugin-fcm-with-dependecy-updated": "^5.1.0",
"cordova-plugin-file": "^6.0.2",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-geolocation": "^4.0.2",
"cordova-plugin-inappbrowser": "^3.2.0",
"cordova-plugin-splashscreen": "^5.0.3",
"cordova-plugin-statusbar": "^2.4.3",
"cordova-plugin-wkwebview-engine": "^1.2.1",
"cordova-plugin-x-socialsharing": "^5.6.4",
"cordova-plugin-zip": "^3.1.0",
"cordova-universal-links-plugin-fixed": "^1.2.1",
"es6-promise-plugin": "^4.2.2",
"yandex-appmetrica-plugin-cordova": "^1.0.0"
},
"cordova": {
"plugins": {
"es6-promise-plugin": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-device": {},
"cordova-plugin-file": {},
"cordova-plugin-file-transfer": {},
"cordova-plugin-zip": {},
"cordova-plugin-dialogs": {},
"cordova-plugin-badge": {},
"cordova-plugin-x-socialsharing": {
"ANDROID_SUPPORT_V4_VERSION": "24.1.1+",
"PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION": "This app requires photo library access to function properly.",
"PHOTO_LIBRARY_USAGE_DESCRIPTION": "This app requires photo library access to function properly."
},
"cordova-plugin-splashscreen": {},
"cordova-plugin-fcm-with-dependecy-updated": {
"FCM_VERSION": "19.0.0",
"GRADLE_TOOLS_VERSION": "3.5.3",
"GOOGLE_SERVICES_VERSION": "4.3.3",
"SUPPORT_LIBRARY_VERSION": "28.0.0",
"ANDROID_DEFAULT_NOTIFICATION_ICON": "@mipmap/ic_launcher"
},
"cordova-plugin-code-push": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-geolocation": {},
"cordova-plugin-camera": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"cordova-universal-links-plugin-fixed": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-wkwebview-engine": {},
"yandex-appmetrica-plugin-cordova": {}
},
"platforms": [
"ios",
"android"
]
},
"devDependencies": {
"cordova-plugin-whitelist": "^1.3.4"
}
}
Thank you.
Nothing comes to mind just by checking the packages. Would you also share the push payload you are sending?
I'll have to install myself to simulate this behaviour.
{
"registration_ids": ["token"],
"time_to_live": 86400,
"priority": "high",
"notification": {
"title": "Push",
"body": "Push",
"sound": "default",
},
"data": {
"type": "new-order",
}
}
fcm-push
my own log from websocket. I think there is no push plugin else
I've tested in legacy build - it receives notification normally. So I thing the problem is with modern building
Interesting...
Same problem here Notification worked till this branch delayed-firebase-initialization-experiment
The stopped working from this branch v5.0.0-beta
There is no error message or anything. It may be related with removal of onFirebaseDataNotificationIOS.
There was issue with WKWebView but you seemed to solved it in V6.0.1
Also cannot use this method FCMPlugin.requestPushPermissionIOS(); As it does not present in index.d.ts file.
Same problem here Notification worked till this branch delayed-firebase-initialization-experiment
The stopped working from this branch v5.0.0-beta
Thank you, @orcicareapp, for checking older versions, it does help a lot.
There is no error message or anything. It may be related with removal of onFirebaseDataNotificationIOS.
Unless you are using the deprecated upstream push (send push data from the device to the server), it should not have an issue with this upgrade. Would you provide your package.json and a log from the time that the app is installed fresh, opens, and until a a couple a minutes after you sent a push message from the server?
Also cannot use this method FCMPlugin.requestPushPermissionIOS(); As it does not present in index.d.ts file.
Are you sure? I can see it here https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/blob/master/src/FCMPlugin.d.ts.
To send a notification to the device I am using JSON API https://fcm.googleapis.com/fcm/send
For testing purposes sending it from the postman.
For index.d.ts with V6.0.1 Installed at location node_modules/@ionic-native/fcm/index.d.ts There is no method found as "requestPushPermissionIOS();" I am using Ionic 3
Here is package.json and log
Package.json
{
"name": "Project Name",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"start": "ionic-app-scripts serve",
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint"
},
"dependencies": {
"@angular/animations": "5.2.11",
"@angular/common": "5.2.11",
"@angular/compiler": "5.2.11",
"@angular/compiler-cli": "5.2.11",
"@angular/core": "5.2.11",
"@angular/forms": "5.2.11",
"@angular/http": "5.2.11",
"@angular/platform-browser": "5.2.11",
"@angular/platform-browser-dynamic": "5.2.11",
"@ionic-native/app-availability": "^4.20.0",
"@ionic-native/app-version": "^4.20.0",
"@ionic-native/background-mode": "^4.20.0",
"@ionic-native/badge": "^4.20.0",
"@ionic-native/call-number": "^4.20.0",
"@ionic-native/camera": "^4.20.0",
"@ionic-native/core": "~4.12.0",
"@ionic-native/device": "^4.20.0",
"@ionic-native/diagnostic": "^4.20.0",
"@ionic-native/document-viewer": "^4.20.0",
"@ionic-native/email-composer": "^4.20.0",
"@ionic-native/facebook": "^4.20.0",
"@ionic-native/fcm": "^4.20.0",
"@ionic-native/file": "^4.20.0",
"@ionic-native/file-path": "^4.20.0",
"@ionic-native/file-transfer": "^4.20.0",
"@ionic-native/geolocation": "^4.20.0",
"@ionic-native/google-plus": "^4.20.0",
"@ionic-native/http": "^4.20.0",
"@ionic-native/in-app-browser": "^4.20.0",
"@ionic-native/keyboard": "^4.20.0",
"@ionic-native/local-notifications": "^4.20.0",
"@ionic-native/location-accuracy": "^4.20.0",
"@ionic-native/market": "^4.20.0",
"@ionic-native/mobile-accessibility": "^4.20.0",
"@ionic-native/native-geocoder": "^4.20.0",
"@ionic-native/native-storage": "^4.20.0",
"@ionic-native/network": "^4.20.0",
"@ionic-native/open-native-settings": "^4.20.0",
"@ionic-native/social-sharing": "^4.20.0",
"@ionic-native/splash-screen": "^4.20.0",
"@ionic-native/status-bar": "~4.12.0",
"@ionic-native/streaming-media": "^4.20.0",
"@ionic-native/youtube-video-player": "^4.20.0",
"@ionic/storage": "2.1.3",
"@types/crypto-js": "^3.1.43",
"@types/jqueryui": "^1.12.7",
"angular-md5": "^0.1.10",
"call-number": "^1.0.1",
"cordova-android": "8.1.0",
"cordova-ios": "5.1.1",
"cordova-open-native-settings": "1.5.2",
"cordova-plugin-advanced-http": "^2.4.1",
"cordova-plugin-app-version": "^0.1.9",
"cordova-plugin-appavailability": "^0.4.2",
"cordova-plugin-badge": "^0.8.8",
"cordova-plugin-camera": "^4.1.0",
"cordova-plugin-device": "^2.0.3",
"cordova-plugin-email-composer": "^0.9.2",
"cordova-plugin-fcm-with-dependecy-updated": "5.0.0",
"cordova-plugin-file": "^6.0.2",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-filepath": "^1.5.8",
"cordova-plugin-geolocation": "^4.0.2",
"cordova-plugin-inappbrowser": "^3.2.0",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^1.2.1",
"cordova-plugin-local-notification": "^0.9.0-beta.2",
"cordova-plugin-market": "^1.2.0",
"cordova-plugin-nativegeocoder": "^3.2.2",
"cordova-plugin-network-information": "^2.0.2",
"cordova-plugin-request-location-accuracy": "^2.3.0",
"cordova-plugin-sms": "^1.0.5",
"cordova-plugin-splashscreen": "^5.0.3",
"cordova-plugin-streaming-media": "^2.2.0",
"cordova-plugin-whitelist": "^1.3.4",
"cordova-plugin-x-socialsharing": "^5.6.4",
"cordova.plugins.diagnostic": "5.0.1",
"crypto-js": "^3.1.9-1",
"es6-promise-plugin": "^4.2.2",
"gulp": "^4.0.2",
"gulp-util": "^3.0.8",
"ionic": "^3.20.0",
"ionic-angular": "3.9.2",
"ionic-img-viewer": "^2.9.0",
"ionic2-auto-complete": "^1.6.2-alpha",
"ionicons": "3.0.0",
"jquery": "^3.4.1",
"md5-typescript": "^1.0.5",
"moment": "^2.24.0",
"mx.ferreyra.callnumber": "0.0.2",
"phonegap-plugin-mobile-accessibility": "^1.0.5",
"platform": "1.3.5",
"rxjs": "5.5.11",
"sw-toolbox": "3.6.0",
"xcode": "^2.1.0",
"xmldoc": "^1.1.2",
"zone.js": "0.8.26"
},
"devDependencies": {
"@ionic/app-scripts": "3.2.3",
"@ionic/cli-plugin-cordova": "^1.4.1",
"@ionic/cli-plugin-ionic-angular": "1.4.1",
"@ionic/lab": "1.0.19",
"@types/jasmine": "^2.8.3",
"typescript": "^2.8.4"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-device": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-geolocation": {
"GEOLOCATION_USAGE_DESCRIPTION": "Project needs your current location to help find near by businesses."
},
"cordova-plugin-nativegeocoder": {
"LOCATION_WHEN_IN_USE_DESCRIPTION": "Use geocoder service"
},
"cordova-plugin-file": {},
"cordova-plugin-file-transfer": {},
"cordova-plugin-filepath": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-network-information": {},
"phonegap-plugin-mobile-accessibility": {},
"cordova-plugin-x-socialsharing": {
"ANDROID_SUPPORT_V4_VERSION": "24.1.1+",
"PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION": "This app requires photo library access to function properly.",
"PHOTO_LIBRARY_USAGE_DESCRIPTION": "This app requires photo library access to function properly."
},
"cordova-plugin-advanced-http": {
"OKHTTP_VERSION": "3.10.0"
},
"cordova-plugin-streaming-media": {},
"call-number": {},
"mx.ferreyra.callnumber": {},
"cordova-plugin-app-version": {},
"cordova-plugin-market": {},
"cordova-plugin-email-composer": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"cordova-plugin-request-location-accuracy": {
"PLAY_SERVICES_LOCATION_VERSION": "16.+"
},
"cordova-plugin-camera": {
"ANDROID_SUPPORT_V4_VERSION": "27.+",
"CAMERA_USAGE_DESCRIPTION": "Project needs camera access to capture and upload a photo. Your photos wont be shared without your permission."
},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-sms": {},
"cordova-plugin-badge": {},
"cordova-plugin-local-notification": {},
"cordova-plugin-appavailability": {},
"cordova-plugin-splashscreen": {},
"cordova.plugins.diagnostic": {
"ANDROID_SUPPORT_VERSION": "28.+"
},
"cordova-open-native-settings": {},
"cordova-plugin-fcm-with-dependecy-updated": {}
},
"platforms": [
"android",
"ios"
]
}
}`
Device Log:
`020-04-22 16:38:58.381751+0530 [5023:1223498] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/D579300D-242C-4611-848B-5F0A0FFA37E0/Library/Cookies/Cookies.binarycookies
2020-04-22 16:39:01.684813+0530 [5023:1223498] Apache Cordova native platform version 5.1.1 is starting.
2020-04-22 16:39:01.684980+0530 [5023:1223498] Multi-tasking -> Device: YES, App: YES
2020-04-22 16:39:01.780332+0530 [5023:1223498] CDVWKWebViewEngine: trying to inject XHR polyfill
2020-04-22 16:39:02.074903+0530 [5023:1223498] WF: === Starting WebFilter logging for process
2020-04-22 16:39:02.074992+0530 [5023:1223498] WF: _userSettingsForUser mobile: {
filterBlacklist = (
);
filterWhitelist = (
);
restrictWeb = 1;
useContentFilter = 0;
useContentFilterOverrides = 0;
whitelistEnabled = 0;
}
2020-04-22 16:39:02.075061+0530 [5023:1223498] WF: _WebFilterIsActive returning: NO
2020-04-22 16:39:02.497313+0530 [5023:1223498] CDVWKWebViewEngine will reload WKWebView if required on resume
2020-04-22 16:39:02.497429+0530 [5023:1223498] Using Ionic WKWebView
2020-04-22 16:39:02.499417+0530 [5023:1223498] [CDVTimer][console] 0.115037ms
2020-04-22 16:39:02.499647+0530 [5023:1223498] [CDVTimer][handleopenurl] 0.109076ms
2020-04-22 16:39:02.503696+0530 [5023:1223498] Unlimited access to network resources
2020-04-22 16:39:02.503842+0530 [5023:1223498] [CDVTimer][intentandnavigationfilter] 4.155040ms
2020-04-22 16:39:02.504033+0530 [5023:1223498] [CDVTimer][gesturehandler] 0.147104ms
2020-04-22 16:39:02.508287+0530 [5023:1223498] [CDVTimer][file] 4.161000ms
2020-04-22 16:39:02.508883+0530 [5023:1223498] [CDVTimer][inappbrowser] 0.521064ms
2020-04-22 16:39:02.509068+0530 [5023:1223498] [CDVTimer][uiinappbrowser] 0.133038ms
2020-04-22 16:39:02.509504+0530 [5023:1223498] [CDVTimer][wkinappbrowser] 0.401974ms
2020-04-22 16:39:02.509891+0530 [5023:1223498] CDVIonicKeyboard: resize mode 1
2020-04-22 16:39:02.511434+0530 [5023:1223498] [CDVTimer][cdvionickeyboard] 1.823902ms
2020-04-22 16:39:02.517356+0530 [5023:1223498] [CDVTimer][splashscreen] 5.820036ms
2020-04-22 16:39:02.518939+0530 [5023:1223498] [CDVTimer][socialsharing] 1.495004ms
2020-04-22 16:39:02.520062+0530 [5023:1223498] [CDVTimer][diagnostic] 1.062989ms
2020-04-22 16:39:02.521522+0530 [5023:1223498] [CDVTimer][diagnostic_location] 1.399994ms
2020-04-22 16:39:02.521667+0530 [5023:1223498] [CDVTimer][diagnostic_bluetooth] 0.081897ms
2020-04-22 16:39:02.521800+0530 [5023:1223498] [CDVTimer][diagnostic_wifi] 0.100017ms
2020-04-22 16:39:02.521903+0530 [5023:1223498] [CDVTimer][diagnostic_camera] 0.072956ms
2020-04-22 16:39:02.521984+0530 [5023:1223498] [CDVTimer][diagnostic_notifications] 0.053048ms
2020-04-22 16:39:02.522376+0530 [5023:1223498] [CDVTimer][diagnostic_microphone] 0.360012ms
2020-04-22 16:39:02.526210+0530 [5023:1223498] [CDVTimer][diagnostic_contacts] 3.789067ms
2020-04-22 16:39:02.526377+0530 [5023:1223498] [CDVTimer][diagnostic_calendar] 0.099063ms
2020-04-22 16:39:02.526481+0530 [5023:1223498] [CDVTimer][diagnostic_reminders] 0.073075ms
2020-04-22 16:39:02.528162+0530 [5023:1223498] [CDVTimer][diagnostic_motion] 1.643062ms
2020-04-22 16:39:02.528397+0530 [5023:1223498] [CDVTimer][mobileaccessibility] 0.174999ms
2020-04-22 16:39:02.528432+0530 [5023:1223498] [CDVTimer][TotalPluginStartup] 29.263020ms
2020-04-22 16:39:02.539443+0530 [5023:1223498] DidFinishLaunchingWithOptions
2020-04-22 16:39:02.597287+0530 [5023:1223498] app become active
2020-04-22 16:39:02.815661+0530 [5023:1223498] IAB.close() called but it was already closed.
2020-04-22 16:39:02.815770+0530 [5023:1223498] IAB.close() called but it was already closed.
2020-04-22 16:39:03.561480+0530 [5023:1223498] Device FCM Token: faWzdGGmfEgCm43J3Bvo85:APA91bGlv-6kttQC55OdunSec8ki5EIUtJyM48CyFAXm-JyzXqyi0zXckc3H3GyYZRAl7zBEz2bneUAYp1mx5cbSRcwS0DkwhLAZkpgXbQidS_9iSxVoGYQneTZmW24038e_hYxoANdT
2020-04-22 16:39:03.561556+0530 [5023:1223498] setInitialFCMToken token: faWzdGGmfEgCm43J3Bvo85:APA91bGlv-6kttQC55OdunSec8ki5EIUtJyM48CyFAXm-JyzXqyi0zXckc3H3GyYZRAl7zBEz2bneUAYp1mx5cbSRcwS0DkwhLAZkpgXbQidS_9iSxVoGYQneTZmW24038e_hYxoANdT
2020-04-22 16:39:03.738730+0530 [5023:1223608] 6.22.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.
2020-04-22 16:39:03.801627+0530 [5023:1223563] 6.22.0 - [Firebase/Analytics][I-ACS031025] 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
2020-04-22 16:39:03.802286+0530 [5023:1223563] 6.22.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-04-22 16:39:03.802661+0530 [5023:1223563] 6.22.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60401000 started
2020-04-22 16:39:03.802887+0530 [5023:1223563] 6.22.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2020-04-22 16:39:03.803526+0530 [5023:1223563] 6.22.0 - [Firebase/Analytics][I-ACS025036] App Delegate Proxy is disabled
2020-04-22 16:39:05.320282+0530 [5023:1223498] Device FCM Token: dbzVIGM3XE9Lr1juPe1Pk0:APA91bEYBF1kxOUIjt1XnRKJowG9PbnAiReCr32TMhnwVQUL0-GUwbNAAOnGxWrAWgPobkZuhoF9epuFSckvxrNmTh6bzueSSS8pp7VpT-9N8RYqzp94RamjfksQfZ2wJvmaZ44NFEBC
2020-04-22 16:39:05.320390+0530 [5023:1223498] setInitialFCMToken token: dbzVIGM3XE9Lr1juPe1Pk0:APA91bEYBF1kxOUIjt1XnRKJowG9PbnAiReCr32TMhnwVQUL0-GUwbNAAOnGxWrAWgPobkZuhoF9epuFSckvxrNmTh6bzueSSS8pp7VpT-9N8RYqzp94RamjfksQfZ2wJvmaZ44NFEBC
2020-04-22 16:39:10.737921+0530 [5023:1223560] 6.22.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-04-22 16:39:14.408402+0530 [5023:1223611] 6.22.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2020-04-22 16:39:15.224638+0530 [5023:1223498] Cordova view ready
2020-04-22 16:39:15.308050+0530 [5023:1223498] FCMPlugin.js: is created
2020-04-22 16:39:15.308218+0530 [5023:1223498] FCMPlugin Ready OK
2020-04-22 16:39:15.308313+0530 [5023:1223498] Ionic Native: deviceready event fired after 10492 ms
2020-04-22 16:39:15.308592+0530 [5023:1223498] get Token
2020-04-22 16:39:15.308969+0530 [5023:1223498] WARN: Ionic Native: tried calling StatusBar.styleDefault, but the StatusBar plugin is not installed.
2020-04-22 16:39:15.309108+0530 [5023:1223498] WARN: Install the StatusBar plugin: 'ionic cordova plugin add cordova-plugin-statusbar'
2020-04-22 16:39:15.311682+0530 [5023:1223498] this.network.type wifi
2020-04-22 16:39:15.311839+0530 [5023:1223498] setStatus Online
2020-04-22 16:39:15.311933+0530 [5023:1223498] this.getNetworkType() Online
2020-04-22 16:39:15.355003+0530 [5023:1223498] registrationtoken dbzVIGM3XE9Lr1juPe1Pk0:APA91bEYBF1kxOUIjt1XnRKJowG9PbnAiReCr32TMhnwVQUL0-GUwbNAAOnGxWrAWgPobkZuhoF9epuFSckvxrNmTh6bzueSSS8pp7VpT-9N8RYqzp94RamjfksQfZ2wJvmaZ44NFEBC
2020-04-22 16:39:15.356327+0530 [5023:1223498] in token upadate
2020-04-22 16:39:15.573399+0530 [5023:1223498] in token upadate login status
2020-04-22 16:39:15.574233+0530 [5023:1223498] in token upadate status check
2020-04-22 16:39:15.922626+0530 [5023:1223498] inside catch Response with status: 0 for URL: null
2020-04-22 16:39:15.926139+0530 [5023:1223498] getUpdatedVersion err Error: 0
2020-04-22 16:39:16.005214+0530 [5023:1223498] status
2020-04-22 16:39:40.746509+0530 [5023:1223498] app become active
2020-04-22 16:39:40.746587+0530 [5023:1223498] Set state foreground
2020-04-22 16:40:36.945378+0530 [5023:1223964] [general] Connection to daemon was invalidated
2020-04-22 16:40:37.338002+0530 [5023:1223498] ionViewDidLoad LanguageSelectionPage
2020-04-22 16:40:39.889046+0530 [5023:1223498] app entered background
2020-04-22 16:40:39.889121+0530 [5023:1223498] Set state background
2020-04-22 16:40:39.889146+0530 [5023:1223498] Disconnected from FCM
Do you require iOS 9 support?
Could @orcicareapp create a hello world app, of which can be shared here on github? Of which you experience the same issue?
Hello! Same problem here: For index.d.ts with V6.0.1 Installed at location node_modules/@ionic-native/fcm/index.d.ts There is no method found as "requestPushPermissionIOS();"
Yes, @JuanJo-RC, this is a known issue #41
Could @orcicareapp create a hello world app, of which can be shared here on github? Of which you experience the same issue?
This is the demo project you can check Now I have tried with latest version of the plugin. https://github.com/giteshpatil/FCMDemoMay2020
Sorry for the late reply.
I am running into this issue on a new project as well. Android works fine.
My ios project is an Ionic 5 initialized Swift application. When debugging, it appears the original application:didFinishLaunchingWithOptions:
selector does not exist when
//Method swizzling
+ (void)load {
is called (the selector reference is 0x0000).
I tried a few solutions (such as marking the swift version of func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:
dynamic
) but am not enough of an ios expert to know what is going on here or how to resolve it.
Any help is appreciated.
I am on the same floor any luck guys
That's strange.
I ran in the ios 11 simulator, which is the minimal version supported by https://github.com/giteshpatil/FCMDemoMay2020 and got the expected log result:
2020-05-12 17:54:59.873490+0200 FCM5Demo[10909:2109121] DiskCookieStorage changing policy from 2 to 0, cookie file: [MANUALLY REDACTED]
2020-05-12 17:54:59.942836+0200 FCM5Demo[10909:2109121] Apache Cordova native platform version 5.1.1 is starting.
2020-05-12 17:54:59.943000+0200 FCM5Demo[10909:2109121] Multi-tasking -> Device: YES, App: YES
2020-05-12 17:54:59.954195+0200 FCM5Demo[10909:2109121] CDVWKWebViewEngine: trying to inject XHR polyfill
2020-05-12 17:55:01.473536+0200 FCM5Demo[10909:2109121] CDVWKWebViewEngine will reload WKWebView if required on resume
2020-05-12 17:55:01.473641+0200 FCM5Demo[10909:2109121] Using Ionic WKWebView
2020-05-12 17:55:01.474073+0200 FCM5Demo[10909:2109121] [CDVTimer][console] 0.067115ms
2020-05-12 17:55:01.474231+0200 FCM5Demo[10909:2109121] [CDVTimer][handleopenurl] 0.074029ms
2020-05-12 17:55:01.475439+0200 FCM5Demo[10909:2109121] [CDVTimer][intentandnavigationfilter] 1.137018ms
2020-05-12 17:55:01.475553+0200 FCM5Demo[10909:2109121] [CDVTimer][gesturehandler] 0.037074ms
2020-05-12 17:55:01.482572+0200 FCM5Demo[10909:2109121] [CDVTimer][statusbar] 6.935000ms
2020-05-12 17:55:01.503807+0200 FCM5Demo[10909:2109121] [CDVTimer][splashscreen] 21.129012ms
2020-05-12 17:55:01.504079+0200 FCM5Demo[10909:2109121] CDVIonicKeyboard: resize mode 1
2020-05-12 17:55:01.504801+0200 FCM5Demo[10909:2109121] [CDVTimer][cdvionickeyboard] 0.869036ms
2020-05-12 17:55:01.504891+0200 FCM5Demo[10909:2109121] [CDVTimer][TotalPluginStartup] 30.920982ms
2020-05-12 17:55:01.887905+0200 FCM5Demo[10909:2109121] DidFinishLaunchingWithOptions
2020-05-12 17:55:01.928389+0200 FCM5Demo[10909:2109289] - <AppMeasurement>[I-ACS031025] 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
2020-05-12 17:55:01.928545+0200 FCM5Demo[10909:2109289] - <AppMeasurement>[I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-05-12 17:55:01.929328+0200 FCM5Demo[10909:2109121] app become active
2020-05-12 17:55:02.188458+0200 FCM5Demo[10909:2109293] 6.21.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8.
2020-05-12 17:55:02.225159+0200 FCM5Demo[10909:2109294] 6.21.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60400000 started
2020-05-12 17:55:02.225293+0200 FCM5Demo[10909:2109294] 6.21.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2020-05-12 17:55:02.229274+0200 FCM5Demo[10909:2109290] 6.21.0 - [Firebase/Analytics][I-ACS025036] App Delegate Proxy is disabled
2020-05-12 17:55:02.240235+0200 FCM5Demo[10909:2109294] [MC] System group container for systemgroup.com.apple.configurationprofiles path is [MANUALLY REDACTED]
2020-05-12 17:55:02.240964+0200 FCM5Demo[10909:2109294] [MC] Reading from private effective user settings.
2020-05-12 17:55:02.583234+0200 FCM5Demo[10909:2109294] 6.21.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-05-12 17:55:02.725598+0200 FCM5Demo[10909:2109410] 6.21.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2020-05-12 17:55:02.969762+0200 FCM5Demo[10909:2109121] ERROR Internal navigation rejected - <allow-navigation> not set for url='gap://ready'
2020-05-12 17:55:03.020644+0200 FCM5Demo[10909:2109121] FCMPlugin.js: is created
2020-05-12 17:55:03.020822+0200 FCM5Demo[10909:2109121] Ionic Native: deviceready event fired after 421 ms
2020-05-12 17:55:03.024085+0200 FCM5Demo[10909:2109121] Cordova view ready
2020-05-12 17:55:03.028024+0200 FCM5Demo[10909:2109121] FCMPlugin Ready OK
2020-05-12 17:55:03.193464+0200 FCM5Demo[10909:2109121] Device FCM Token: [MANUALLY REDACTED]
2020-05-12 17:55:03.193595+0200 FCM5Demo[10909:2109121] notifyFCMTokenRefresh token: [MANUALLY REDACTED]
2020-05-12 17:55:03.193676+0200 FCM5Demo[10909:2109121] stringByEvaluatingJavaScriptFromString FCMPlugin.onTokenRefreshReceived('[MANUALLY REDACTED]');
2020-05-12 17:55:03.196313+0200 FCM5Demo[10909:2109121] fireBaseTokenRefresh token [MANUALLY REDACTED]
2020-05-12 17:55:03.196664+0200 FCM5Demo[10909:2109121] handleNotifications
2020-05-12 17:55:03.200157+0200 FCM5Demo[10909:2109121] view registered for notifications
2020-05-12 17:55:12.175568+0200 FCM5Demo[10909:2109295] TIC Read Status [5:0x0]: 1:57
2020-05-12 17:55:12.175673+0200 FCM5Demo[10909:2109295] TIC Read Status [5:0x0]: 1:57
2020-05-12 17:55:15.058041+0200 FCM5Demo[10909:2109411] TIC Read Status [6:0x0]: 1:57
2020-05-12 17:55:15.058189+0200 FCM5Demo[10909:2109411] TIC Read Status [6:0x0]: 1:57
2020-05-12 17:55:15.256209+0200 FCM5Demo[10909:2109295] TIC Read Status [7:0x0]: 1:57
2020-05-12 17:55:15.256368+0200 FCM5Demo[10909:2109295] TIC Read Status [7:0x0]: 1:57
2020-05-12 17:55:16.025435+0200 FCM5Demo[10909:2109121] get Token
2020-05-12 17:55:16.026461+0200 FCM5Demo[10909:2109121] fireBaseCloudMessaging val [MANUALLY REDACTED]
2020-05-12 17:55:16.026617+0200 FCM5Demo[10909:2109121] handleNotifications
2020-05-12 17:55:16.026785+0200 FCM5Demo[10909:2109121] view registered for notifications
The project @orcicareapp shared does seem to work well, but it is Ionic 4.20.
Would @gregfitz23 or @Suryalg create a hello world app, of which can be shared here on github? Of which you experience the same issue?
Same issue after version upgrade. No errors and clueless on whats happening..
After wasting almost 5days. https://onesignal.com/pricing {free and simple} https://documentation.onesignal.com/docs/cordova-sdk-setup
@andrehtissot - I've created a reproducing repo here https://github.com/gregfitz23/fcm-ionic-ios-issue.
This is a base Ionic 5 + Capacitor app, using @ionic-native
and the cordova-plugin-fcm-with-dependecy-updated
. This does not include a Firebase GoogleServices-Info.plist file, though I don't think one is needed to see the issue.
To run:
git clone git clone git@github.com:gregfitz23/fcm-ionic-ios-issue.git
cd fcm-ionic-ios-issue
npm install
npm run start-ios
load
method and customDidFinishLaunchingWithOptions
. Product > Run
The load
breakpoint will trigger, the customDidFinishLaunchingWithOptions
will not. FCMPlugin
logs are output.
Great work on the plugin and I appreciate your help looking into this.
That's strange.
I ran in the ios 11 simulator, which is the minimal version supported by https://github.com/giteshpatil/FCMDemoMay2020 and got the expected log result:
2020-05-12 17:54:59.873490+0200 FCM5Demo[10909:2109121] DiskCookieStorage changing policy from 2 to 0, cookie file: [MANUALLY REDACTED] 2020-05-12 17:54:59.942836+0200 FCM5Demo[10909:2109121] Apache Cordova native platform version 5.1.1 is starting. 2020-05-12 17:54:59.943000+0200 FCM5Demo[10909:2109121] Multi-tasking -> Device: YES, App: YES 2020-05-12 17:54:59.954195+0200 FCM5Demo[10909:2109121] CDVWKWebViewEngine: trying to inject XHR polyfill 2020-05-12 17:55:01.473536+0200 FCM5Demo[10909:2109121] CDVWKWebViewEngine will reload WKWebView if required on resume 2020-05-12 17:55:01.473641+0200 FCM5Demo[10909:2109121] Using Ionic WKWebView 2020-05-12 17:55:01.474073+0200 FCM5Demo[10909:2109121] [CDVTimer][console] 0.067115ms 2020-05-12 17:55:01.474231+0200 FCM5Demo[10909:2109121] [CDVTimer][handleopenurl] 0.074029ms 2020-05-12 17:55:01.475439+0200 FCM5Demo[10909:2109121] [CDVTimer][intentandnavigationfilter] 1.137018ms 2020-05-12 17:55:01.475553+0200 FCM5Demo[10909:2109121] [CDVTimer][gesturehandler] 0.037074ms 2020-05-12 17:55:01.482572+0200 FCM5Demo[10909:2109121] [CDVTimer][statusbar] 6.935000ms 2020-05-12 17:55:01.503807+0200 FCM5Demo[10909:2109121] [CDVTimer][splashscreen] 21.129012ms 2020-05-12 17:55:01.504079+0200 FCM5Demo[10909:2109121] CDVIonicKeyboard: resize mode 1 2020-05-12 17:55:01.504801+0200 FCM5Demo[10909:2109121] [CDVTimer][cdvionickeyboard] 0.869036ms 2020-05-12 17:55:01.504891+0200 FCM5Demo[10909:2109121] [CDVTimer][TotalPluginStartup] 30.920982ms 2020-05-12 17:55:01.887905+0200 FCM5Demo[10909:2109121] DidFinishLaunchingWithOptions 2020-05-12 17:55:01.928389+0200 FCM5Demo[10909:2109289] - <AppMeasurement>[I-ACS031025] 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 2020-05-12 17:55:01.928545+0200 FCM5Demo[10909:2109289] - <AppMeasurement>[I-ACS800023] No pending snapshot to activate. SDK name: app_measurement 2020-05-12 17:55:01.929328+0200 FCM5Demo[10909:2109121] app become active 2020-05-12 17:55:02.188458+0200 FCM5Demo[10909:2109293] 6.21.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8. 2020-05-12 17:55:02.225159+0200 FCM5Demo[10909:2109294] 6.21.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60400000 started 2020-05-12 17:55:02.225293+0200 FCM5Demo[10909:2109294] 6.21.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r) 2020-05-12 17:55:02.229274+0200 FCM5Demo[10909:2109290] 6.21.0 - [Firebase/Analytics][I-ACS025036] App Delegate Proxy is disabled 2020-05-12 17:55:02.240235+0200 FCM5Demo[10909:2109294] [MC] System group container for systemgroup.com.apple.configurationprofiles path is [MANUALLY REDACTED] 2020-05-12 17:55:02.240964+0200 FCM5Demo[10909:2109294] [MC] Reading from private effective user settings. 2020-05-12 17:55:02.583234+0200 FCM5Demo[10909:2109294] 6.21.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement 2020-05-12 17:55:02.725598+0200 FCM5Demo[10909:2109410] 6.21.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled 2020-05-12 17:55:02.969762+0200 FCM5Demo[10909:2109121] ERROR Internal navigation rejected - <allow-navigation> not set for url='gap://ready' 2020-05-12 17:55:03.020644+0200 FCM5Demo[10909:2109121] FCMPlugin.js: is created 2020-05-12 17:55:03.020822+0200 FCM5Demo[10909:2109121] Ionic Native: deviceready event fired after 421 ms 2020-05-12 17:55:03.024085+0200 FCM5Demo[10909:2109121] Cordova view ready 2020-05-12 17:55:03.028024+0200 FCM5Demo[10909:2109121] FCMPlugin Ready OK 2020-05-12 17:55:03.193464+0200 FCM5Demo[10909:2109121] Device FCM Token: [MANUALLY REDACTED] 2020-05-12 17:55:03.193595+0200 FCM5Demo[10909:2109121] notifyFCMTokenRefresh token: [MANUALLY REDACTED] 2020-05-12 17:55:03.193676+0200 FCM5Demo[10909:2109121] stringByEvaluatingJavaScriptFromString FCMPlugin.onTokenRefreshReceived('[MANUALLY REDACTED]'); 2020-05-12 17:55:03.196313+0200 FCM5Demo[10909:2109121] fireBaseTokenRefresh token [MANUALLY REDACTED] 2020-05-12 17:55:03.196664+0200 FCM5Demo[10909:2109121] handleNotifications 2020-05-12 17:55:03.200157+0200 FCM5Demo[10909:2109121] view registered for notifications 2020-05-12 17:55:12.175568+0200 FCM5Demo[10909:2109295] TIC Read Status [5:0x0]: 1:57 2020-05-12 17:55:12.175673+0200 FCM5Demo[10909:2109295] TIC Read Status [5:0x0]: 1:57 2020-05-12 17:55:15.058041+0200 FCM5Demo[10909:2109411] TIC Read Status [6:0x0]: 1:57 2020-05-12 17:55:15.058189+0200 FCM5Demo[10909:2109411] TIC Read Status [6:0x0]: 1:57 2020-05-12 17:55:15.256209+0200 FCM5Demo[10909:2109295] TIC Read Status [7:0x0]: 1:57 2020-05-12 17:55:15.256368+0200 FCM5Demo[10909:2109295] TIC Read Status [7:0x0]: 1:57 2020-05-12 17:55:16.025435+0200 FCM5Demo[10909:2109121] get Token 2020-05-12 17:55:16.026461+0200 FCM5Demo[10909:2109121] fireBaseCloudMessaging val [MANUALLY REDACTED] 2020-05-12 17:55:16.026617+0200 FCM5Demo[10909:2109121] handleNotifications 2020-05-12 17:55:16.026785+0200 FCM5Demo[10909:2109121] view registered for notifications
The project @orcicareapp shared does seem to work well, but it is Ionic 4.20.
Would @gregfitz23 or @Suryalg create a hello world app, of which can be shared here on github? Of which you experience the same issue?
Hi @andrehtissot
As I have mentioned I face the problem with a real device not on the simulator. Let's see if you can find more as others are also facing a similar issue.
I got the issue with the hello-world project https://github.com/gregfitz23/fcm-ionic-ios-issue It is, in its iOS implementation, very different from what I've seen in Ionic 4.20.
Thanks @gregfitz23. Now I can debug it.
This is an issue with the "Capacitor" implementation, which doesn't allow plugins to extend the implementation of AppDelegate on iOS, like the ionic with Cordova implementation does.
I'm studying how to create a capacitor-compatible version of this plugin. But for now, you can get it working with using Cordova without Capacitor.
That's strange.
I ran in the ios 11 simulator, which is the minimal version supported by https://github.com/giteshpatil/FCMDemoMay2020 and got the expected log result:
2020-05-12 17:54:59.873490+0200 FCM5Demo[10909:2109121] DiskCookieStorage changing policy from 2 to 0, cookie file: [MANUALLY REDACTED] 2020-05-12 17:54:59.942836+0200 FCM5Demo[10909:2109121] Apache Cordova native platform version 5.1.1 is starting. 2020-05-12 17:54:59.943000+0200 FCM5Demo[10909:2109121] Multi-tasking -> Device: YES, App: YES 2020-05-12 17:54:59.954195+0200 FCM5Demo[10909:2109121] CDVWKWebViewEngine: trying to inject XHR polyfill 2020-05-12 17:55:01.473536+0200 FCM5Demo[10909:2109121] CDVWKWebViewEngine will reload WKWebView if required on resume 2020-05-12 17:55:01.473641+0200 FCM5Demo[10909:2109121] Using Ionic WKWebView 2020-05-12 17:55:01.474073+0200 FCM5Demo[10909:2109121] [CDVTimer][console] 0.067115ms 2020-05-12 17:55:01.474231+0200 FCM5Demo[10909:2109121] [CDVTimer][handleopenurl] 0.074029ms 2020-05-12 17:55:01.475439+0200 FCM5Demo[10909:2109121] [CDVTimer][intentandnavigationfilter] 1.137018ms 2020-05-12 17:55:01.475553+0200 FCM5Demo[10909:2109121] [CDVTimer][gesturehandler] 0.037074ms 2020-05-12 17:55:01.482572+0200 FCM5Demo[10909:2109121] [CDVTimer][statusbar] 6.935000ms 2020-05-12 17:55:01.503807+0200 FCM5Demo[10909:2109121] [CDVTimer][splashscreen] 21.129012ms 2020-05-12 17:55:01.504079+0200 FCM5Demo[10909:2109121] CDVIonicKeyboard: resize mode 1 2020-05-12 17:55:01.504801+0200 FCM5Demo[10909:2109121] [CDVTimer][cdvionickeyboard] 0.869036ms 2020-05-12 17:55:01.504891+0200 FCM5Demo[10909:2109121] [CDVTimer][TotalPluginStartup] 30.920982ms 2020-05-12 17:55:01.887905+0200 FCM5Demo[10909:2109121] DidFinishLaunchingWithOptions 2020-05-12 17:55:01.928389+0200 FCM5Demo[10909:2109289] - <AppMeasurement>[I-ACS031025] 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 2020-05-12 17:55:01.928545+0200 FCM5Demo[10909:2109289] - <AppMeasurement>[I-ACS800023] No pending snapshot to activate. SDK name: app_measurement 2020-05-12 17:55:01.929328+0200 FCM5Demo[10909:2109121] app become active 2020-05-12 17:55:02.188458+0200 FCM5Demo[10909:2109293] 6.21.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8. 2020-05-12 17:55:02.225159+0200 FCM5Demo[10909:2109294] 6.21.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60400000 started 2020-05-12 17:55:02.225293+0200 FCM5Demo[10909:2109294] 6.21.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r) 2020-05-12 17:55:02.229274+0200 FCM5Demo[10909:2109290] 6.21.0 - [Firebase/Analytics][I-ACS025036] App Delegate Proxy is disabled 2020-05-12 17:55:02.240235+0200 FCM5Demo[10909:2109294] [MC] System group container for systemgroup.com.apple.configurationprofiles path is [MANUALLY REDACTED] 2020-05-12 17:55:02.240964+0200 FCM5Demo[10909:2109294] [MC] Reading from private effective user settings. 2020-05-12 17:55:02.583234+0200 FCM5Demo[10909:2109294] 6.21.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement 2020-05-12 17:55:02.725598+0200 FCM5Demo[10909:2109410] 6.21.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled 2020-05-12 17:55:02.969762+0200 FCM5Demo[10909:2109121] ERROR Internal navigation rejected - <allow-navigation> not set for url='gap://ready' 2020-05-12 17:55:03.020644+0200 FCM5Demo[10909:2109121] FCMPlugin.js: is created 2020-05-12 17:55:03.020822+0200 FCM5Demo[10909:2109121] Ionic Native: deviceready event fired after 421 ms 2020-05-12 17:55:03.024085+0200 FCM5Demo[10909:2109121] Cordova view ready 2020-05-12 17:55:03.028024+0200 FCM5Demo[10909:2109121] FCMPlugin Ready OK 2020-05-12 17:55:03.193464+0200 FCM5Demo[10909:2109121] Device FCM Token: [MANUALLY REDACTED] 2020-05-12 17:55:03.193595+0200 FCM5Demo[10909:2109121] notifyFCMTokenRefresh token: [MANUALLY REDACTED] 2020-05-12 17:55:03.193676+0200 FCM5Demo[10909:2109121] stringByEvaluatingJavaScriptFromString FCMPlugin.onTokenRefreshReceived('[MANUALLY REDACTED]'); 2020-05-12 17:55:03.196313+0200 FCM5Demo[10909:2109121] fireBaseTokenRefresh token [MANUALLY REDACTED] 2020-05-12 17:55:03.196664+0200 FCM5Demo[10909:2109121] handleNotifications 2020-05-12 17:55:03.200157+0200 FCM5Demo[10909:2109121] view registered for notifications 2020-05-12 17:55:12.175568+0200 FCM5Demo[10909:2109295] TIC Read Status [5:0x0]: 1:57 2020-05-12 17:55:12.175673+0200 FCM5Demo[10909:2109295] TIC Read Status [5:0x0]: 1:57 2020-05-12 17:55:15.058041+0200 FCM5Demo[10909:2109411] TIC Read Status [6:0x0]: 1:57 2020-05-12 17:55:15.058189+0200 FCM5Demo[10909:2109411] TIC Read Status [6:0x0]: 1:57 2020-05-12 17:55:15.256209+0200 FCM5Demo[10909:2109295] TIC Read Status [7:0x0]: 1:57 2020-05-12 17:55:15.256368+0200 FCM5Demo[10909:2109295] TIC Read Status [7:0x0]: 1:57 2020-05-12 17:55:16.025435+0200 FCM5Demo[10909:2109121] get Token 2020-05-12 17:55:16.026461+0200 FCM5Demo[10909:2109121] fireBaseCloudMessaging val [MANUALLY REDACTED] 2020-05-12 17:55:16.026617+0200 FCM5Demo[10909:2109121] handleNotifications 2020-05-12 17:55:16.026785+0200 FCM5Demo[10909:2109121] view registered for notifications
The project @orcicareapp shared does seem to work well, but it is Ionic 4.20.
Would @gregfitz23 or @Suryalg create a hello world app, of which can be shared here on github? Of which you experience the same issue?
Hey There, The simulator seems to be working, though issue faced is on a real device.. Can you check the real iOS device ?
Hi @meghanadixit1,
I got it failing too on the simulator for the ionic 5 capacitor project (https://github.com/gregfitz23/fcm-ionic-ios-issue);
Unfortunately, I'm unable to run on a real device this week.
If you could post your app runtime log from XCode and share a HelloWorld project on github that fails the same it would help.
Hi there... Any news? I downloaded latest plugin "cordova-plugin-fcm-with-dependecy-updated": "^6.3.1", And there is no checking for permission at all...
.requestPushPermissionIOS() doesn't exist and we do need this to allow the plugin to work for push notifications on apple?
I do see it in the src>iOS>FCMPlugin.d.ts - requestPushPermissionIOS(onSuccess?: () => void, onError?: (error: Error) => void): void;
however cannot use it in angular... And have imported it correctly since I can use .getToken() and the others...
Im thinking it might be npm install @ionic-native/fcm . Ionic might not have updated their npm repo .... possibly
Hi @meghanadixit1,
I got it failing too on the simulator for the ionic 5 capacitor project (https://github.com/gregfitz23/fcm-ionic-ios-issue);
Unfortunately, I'm unable to run on a real device this week.
If you could post your app runtime log from XCode and share a HelloWorld project on github that fails the same it would help.
Hi There, Please check the repos below -
https://github.com/meghanadixit1/FCM_ExperimentanBranch.git This is the code which has used experimental plugin branch. In this, none of the method to handle notification was fired.
https://github.com/meghanadixit1/FCM_LatestDemo.git This is the code which has used latest FCM plugin version 6.3.1 Here notifications are not getting fired.
Logs are attached FcmLatestLog.txt FcmExpermental Branch Log.txt
Please let me know if any more details needed
@meghanadixit1 Thank you. With your logs, I can clearly see that it has nothing to do with the capacitor issue.
@RichardBoyder, the @ionic-native/fcm repository is not maintained by me, and I usually prioritize other tasks rather than updating ionic-specific definitions. But it's been a while and I created a PR https://github.com/ionic-team/ionic-native/pull/3430 which has the definition for two non-covered methods requestPushPermissionIOS
and createNotificationChannelAndroid
. Both updated for 6.4.0.
@meghanadixit1,
I've noticed, in the log, that the app never executes console.log("requestPushPermission after");
.
Which might mean that the script may crash after this.fcm.requestPushPermission()
call.
The last update of 6.4.0, reworked many parts of this feature. I'm sorry keep asking this. But if it's the reason for failure, than it would be far easier to fix.
Also, forget about the experimental branch. It has serious issues with running system requests in the wrong threads.
If you do get something after console.log("requestPushPermission before");
, please share as much of the log you can. It really helps.
@andrehtissot Thanks Andre. How long does it normally take for Ionic-native to include into the repo so I can consume it?
Thanks a lot for That change. Appreciated man.
@RichardBoyder it's the first time I created a PR for the ionic-team, so I don't really know how long that would take.
Ok cool thanks let’s hope for the best.. haha
Sent from my iPhone
On 23 May 2020, at 16:47, André Tissot notifications@github.com wrote:
@RichardBoyder it's the first time I created a PR for the ionic-team, so I don't really know how long that would take.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
@andrehtissot Still waiting right? Im keeping a eye on your pull request on their site as well.
Yes... I the future I should find a way to have them here, so there would be no issues of definition not matching implementation.
any news?
@jffs We still waiting for Ionic team to merge to ionic native. Hope they do it soon.
@RichardBoyder I think you can use that method this way for now.
window['FCMPlugin'].requestPushPermissionIOS((response) => {
console.log('permission given', response);
}, (response) => {
console.log('permission rejected', response);
});
Thanks Brayan. I’ll give it a try today and let you all know :) best bet would be using ionic native plugin though but in the interim while waiting for ionic to merge I can try that .
Sent from my iPhone
On 30 May 2020, at 00:31, Brayan Jesus Salcedo notifications@github.com wrote:
@RichardBoyder I think you can use that method this way for now.
window['FCMPlugin'].requestPushPermissionIOS((response) => { console.log('permission given', response); }, (response) => { console.log('permission rejected', response); }); — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
@RichardBoyder I think you can use that method this way for now.
window['FCMPlugin'].requestPushPermissionIOS((response) => { console.log('permission given', response); }, (response) => { console.log('permission rejected', response); });
Works spot on @bjdose thanks for that. Appreciated.
@RichardBoyder I think you can use that method this way for now.
window['FCMPlugin'].requestPushPermissionIOS((response) => { console.log('permission given', response); }, (response) => { console.log('permission rejected', response); });
Worked for me.. Thanks!!
I used this code and worked for me
const w: any = window; w.FCMPlugin.requestPushPermissionIOS(() => { console.log('push permissions success'); }, (e) => { console.log('push permissions fail', e); });
the notification does not display if the app was in foreground
El lun., 1 jun. 2020 a las 5:45, RichardB (notifications@github.com) escribió:
Does any one else have a issue where not getting push notification on iOS? Cause android is perfect but iOS not working and using the correct apns key in FCM settings console and check all.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/issues/49#issuecomment-636705372, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2XSIL2G2ZKPTJEFXSDXQ3RUNTAZANCNFSM4MLLJTAA .
I used this code and worked for me const w: any = window; w.FCMPlugin.requestPushPermissionIOS(() => { console.log('push permissions success'); }, (e) => { console.log('push permissions fail', e); }); the notification does not display if the app was in foreground El lun., 1 jun. 2020 a las 5:45, RichardB (notifications@github.com) escribió: … Does any one else have a issue where not getting push notification on iOS? Cause android is perfect but iOS not working and using the correct apns key in FCM settings console and check all. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#49 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2XSIL2G2ZKPTJEFXSDXQ3RUNTAZANCNFSM4MLLJTAA .
Ya, foreground notification does not work when local notification plugin is installed. @andrehtissot request you to fix that too.
All good. It works. just still waiting for that Ionic pull so we can utilise ionic native... lol They are taking their sweet time ... that's for sure... perhaps understandable given a lot they are working on.
Yes... of course. But I'm preparing something else, which is not yet ready for prime time, but it's close to.
As you can see here https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/tree/moving-plugin-interface-to-ts-and-other-improvements/ionic the plugin js interface is been refactored and there will be a ionic-specific definition. I'm still working on it. But feedback is appreciated.
I have news. The new version 7.0.0-beta.0
is now available.
https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/tree/v7.0.0-beta
It supports ionic v4 and v5. And it brings all current features with lower overhead.
Having the same issue, upgraded even to 7.0.0-beta.0
, no push for IOS.
Downgrading back to 4.2.0
:( i really wanted to ask for ios notifications later, after accepting terms.
@simion did you try the new 7.0.0-beta.1? It brings fixes for incompatibility with other plugins.
hello, I've installed v5.1.0, Cordova 5.1.1, Xcode New Build System (development), with cordova-plugin-wkwebview-engine. And I can not receive any push notification. There is no error
Originally posted by @rendau in https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/issues/48#issuecomment-615852297