fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
624 stars 990 forks source link

IOS unable to receive notification #591

Open dodomui opened 4 years ago

dodomui commented 4 years ago

Android is working perfectly while IOS unable to receive any push notification. Below is the console output in Xcode, does it normal?

2019-06-07 09:25:04.115724+0800 Test CRM[8099:2487286] WARNING: Firebase Analytics App Delegate Proxy is disabled. To log deep link campaigns manually, call the methods in FIRAnalytics+AppDelegate.h.
2019-06-07 09:25:04.208862+0800 Test CRM[8099:2487286] Apache Cordova native platform version 4.5.5 is starting.
2019-06-07 09:25:04.209285+0800 Test CRM[8099:2487286] Multi-tasking -> Device: YES, App: YES
2019-06-07 09:25:04.217683+0800 Test CRM[8099:2487286] CDVWKWebViewEngine: trying to inject XHR polyfill
2019-06-07 09:25:04.263183+0800 Test CRM[8099:2487286] CDVWKWebViewEngine will reload WKWebView if required on resume
2019-06-07 09:25:04.263257+0800 Test CRM[8099:2487286] Using Ionic WKWebView
2019-06-07 09:25:04.263826+0800 Test CRM[8099:2487286] [CDVTimer][console] 0.092983ms
2019-06-07 09:25:04.264006+0800 Test CRM[8099:2487286] [CDVTimer][handleopenurl] 0.083089ms
2019-06-07 09:25:04.265713+0800 Test CRM[8099:2487286] [CDVTimer][intentandnavigationfilter] 1.682997ms
2019-06-07 09:25:04.265767+0800 Test CRM[8099:2487286] [CDVTimer][gesturehandler] 0.033975ms
2019-06-07 09:25:04.267065+0800 Test CRM[8099:2487286] [CDVTimer][file] 1.273990ms
2019-06-07 09:25:04.270255+0800 Test CRM[8099:2487286] [CDVTimer][splashscreen] 3.168941ms
2019-06-07 09:25:04.270349+0800 Test CRM[8099:2487286] [CDVTimer][ioniccordovacommon] 0.074029ms
2019-06-07 09:25:04.270389+0800 Test CRM[8099:2487286] CDVIonicKeyboard: resize mode 1
2019-06-07 09:25:04.271014+0800 Test CRM[8099:2487286] [CDVTimer][keyboard] 0.620008ms
2019-06-07 09:25:04.273908+0800 Test CRM[8099:2487286] [CDVTimer][statusbar] 2.817988ms
2019-06-07 09:25:04.273928+0800 Test CRM[8099:2487286] [CDVTimer][TotalPluginStartup] 10.309935ms
2019-06-07 09:25:04.277554+0800 Test CRM[8099:2487286] DidFinishLaunchingWithOptions
2019-06-07 09:25:04.281: <FIRMessaging/INFO> FIRMessaging library version 1.2.0
2019-06-07 09:25:04.285440+0800 Test CRM[8099:2487376] [Firebase/Core][I-COR000001] Configuring the default app.
2019-06-07 09:25:04.285 Test CRM[8099] <Debug> [Firebase/Core][I-COR000001] Configuring the default app.
2019-06-07 09:25:04.287507+0800 Test CRM[8099:2487384] <FIRAnalytics/INFO> Firebase Analytics v.3403000 started
2019-06-07 09:25:04.287 Test CRM[8099:] <FIRAnalytics/INFO> Firebase Analytics v.3403000 started
2019-06-07 09:25:04.287606+0800 Test CRM[8099:2487384] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/Y0Yjwu)
2019-06-07 09:25:04.287 Test CRM[8099:] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/Y0Yjwu)
2019-06-07 09:25:04.293: <FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"
2019-06-07 09:25:04.334039+0800 Test CRM[8099:2487371] <FIRAnalytics/WARNING> The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at http://goo.gl/9vSsPb
2019-06-07 09:25:04.334 Test CRM[8099:] <FIRAnalytics/WARNING> The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at http://goo.gl/9vSsPb
2019-06-07 09:25:04.342537+0800 Test CRM[8099:2487286] app become active
2019-06-07 09:25:04.347266+0800 Test CRM[8099:2487385] <FIRAnalytics/INFO> Firebase Analytics enabled
2019-06-07 09:25:04.347 Test CRM[8099:] <FIRAnalytics/INFO> Firebase Analytics enabled
2019-06-07 09:25:04.415064+0800 Test CRM[8099:2487384] [Firebase/Core][I-COR000019] Clearcut post completed.
2019-06-07 09:25:04.415 Test CRM[8099] <Debug> [Firebase/Core][I-COR000019] Clearcut post completed.
2019-06-07 09:25:04.786194+0800 Test CRM[8099:2487286] Connected to FCM.
2019-06-07 09:25:05.226283+0800 Test CRM[8099:2487286] Got Native app preferences: {
    appId = ec40c7ab;
    binaryVersion = "0.0.1";
    binaryVersionCode = "0.0.1";
    binaryVersionName = "0.0.1";
    channel = Production;
    disabled = 0;
    host = "https://api.ionicjs.com";
    maxVersions = 2;
    minBackgroundDuration = 30;
    updateMethod = background;
}
2019-06-07 09:25:05.226338+0800 Test CRM[8099:2487286] No custom config found
2019-06-07 09:25:05.226346+0800 Test CRM[8099:2487286] initing updates key
2019-06-07 09:25:05.226399+0800 Test CRM[8099:2487286] Initialized App Prefs: {
    appId = ec40c7ab;
    binaryVersion = "0.0.1";
    binaryVersionCode = "0.0.1";
    binaryVersionName = "0.0.1";
    channel = Production;
    disabled = 0;
    host = "https://api.ionicjs.com";
    maxVersions = 2;
    minBackgroundDuration = 30;
    updateMethod = background;
    updates =     {
    };
}
2019-06-07 09:25:05.233121+0800 Test CRM[8099:2487286] Got app info: {
    binaryVersionCode = "0.0.1";
    binaryVersionName = "0.0.1";
    bundleName = "my.thebigday.testcrm";
    bundleVersion = "0.0.1";
    dataDirectory = "file:///var/mobile/Containers/Data/Application/E0B01748-5A32-4A48-A506-CC568DD778F2/Library/NoCloud/";
    device = "6CB52167-F002-41B9-B4E7-5A762C29F5F0";
    platform = ios;
    platformVersion = "12.0";
    version = "0.0.1";
}
2019-06-07 09:25:05.252103+0800 Test CRM[8099:2487286] FCMPlugin.js: is created
2019-06-07 09:25:05.252187+0800 Test CRM[8099:2487286] Ionic Native: deviceready event fired after 671 ms
2019-06-07 09:25:05.256377+0800 Test CRM[8099:2487286] subscribe To Topic marketing
2019-06-07 09:25:05.256457+0800 Test CRM[8099:2487286] get Token
2019-06-07 09:25:05.256517+0800 Test CRM[8099:2487286] view registered for notifications
2019-06-07 09:25:05.328924+0800 Test CRM[8099:2487286] c9g0ESENVSA:APA91bF7b998UUiVl2a6PNwDzJwBWfaQmcbT-3zPpT31LHualW8R8G-s9_fn9_1KEr2Z4-NUTb6LyA5Uurwp9uuJT3Oo8uD3IeXKMNgn2He5jSZ12kGfcyCY3-zCFaumFd8PXeBOZ_0i
2019-06-07 09:25:05.340589+0800 Test CRM[8099:2487286] Cordova view ready
2019-06-07 09:25:05.354665+0800 Test CRM[8099:2487286] FCMPlugin Ready OK
vip20 commented 4 years ago

Same issue here

jasvindersingh-evon commented 4 years ago

Yes many people are facing the same issue, but there is no solution provided by the plugin creator.

Macfa commented 4 years ago

+1 same