{"action":"created","issue":{"url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/727","repository_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase","labels_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/727/labels{/name}","comments_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/727/comments","events_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/727/events","html_url":"https://github.com/arnesson/cordova-plugin-firebase/issues/727","id":330865909,"node_id":"MDU6SXNzdWUzMzA4NjU5MDk=","number":727,"title":"iOS can't receive PN. FIRMessagingDelegate's-messaging:didReceiveMessage: not implemented","user":{"login":"gyss","id":2237167,"node_id":"MDQ6VXNlcjIyMzcxNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/2237167?v=4","gravatar_id":"","url":"https://api.github.com/users/gyss","html_url":"https://github.com/gyss","followers_url":"https://api.github.com/users/gyss/followers","following_url":"https://api.github.com/users/gyss/following{/other_user}","gists_url":"https://api.github.com/users/gyss/gists{/gist_id}","starred_url":"https://api.github.com/users/gyss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyss/subscriptions","organizations_url":"https://api.github.com/users/gyss/orgs","repos_url":"https://api.github.com/users/gyss/repos","events_url":"https://api.github.com/users/gyss/events{/privacy}","received_events_url":"https://api.github.com/users/gyss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-09T08:24:21Z","updated_at":"2018-06-11T07:22:24Z","closed_at":null,"author_association":"NONE","body":"Hi, I've repeated several times the setup of this plugin in my Cordova project.\r\nAndroid works fine, but in iOS I can't get any push notification. Debugging on XCode I get:\r\n\r\n```\r\nStarting Firebase plugin\r\n[CDVTimer][firebaseplugin] 0.484943ms\r\n4.13.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.\r\n4.13.0 - [Firebase/Crash][I-CRA000004] Successfully initialized\r\n4.13.0 - [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40200000 started\r\n4.13.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)\r\n4.13.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:\r\nhttps://firebase.google.com/docs/cloud-messaging/ios/client#method_swizzling_in_firebase_messaging\r\n4.13.0 - [Firebase/Messaging][I-FCM002023] The object <AppDelegate: 0x102357ab0> does not respond to -messaging:didReceiveRegistrationToken:, nor -messaging:didRefreshRegistrationToken:. Please implement -messaging:didReceiveRegistrationToken: to be provided with an FCM token.\r\n2018-06-09 10:03:25.144498+0200 PS-Staging[1198:318633] THREAD WARNING: ['FirebasePlugin'] took '10.833984' ms. Plugin should use a background thread.\r\n*** FIREBASE PUSH TOKEN: xxx\r\n4.13.0 - [Firebase/Messaging][I-FCM002023] The object <FirebasePlugin: 0x1017a13c0> does not respond to -messaging:didReceiveRegistrationToken:, nor -messaging:didRefreshRegistrationToken:. Please implement -messaging:didReceiveRegistrationToken: to be provided with an FCM token.\r\n4.13.0 - [Firebase/Messaging][I-FCM002019] FIRMessaging received data-message, but FIRMessagingDelegate's-messaging:didReceiveMessage: not implemented\r\n4.13.0 - [Firebase/Messaging][I-FCM002019] FIRMessaging received data-message, but FIRMessagingDelegate's-messaging:didReceiveMessage: not implemented\r\n```\r\n\r\nEvery time I trigger a PN from Firebase I get this log in XCode: `FIRMessaging received data-message, but FIRMessagingDelegate's-messaging:didReceiveMessage: not implemented`\r\n\r\nMy setup is:\r\nXCode 9.4\r\niOS 11.4\r\nCordova 7.1.0\r\ncordova-ios 4.5.4\r\nios-deploy 1.9.2\r\ncordova-plugin-firebase 1.0.5"},"comment":{"url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/comments/396146692","html_url":"https://github.com/arnesson/cordova-plugin-firebase/issues/727#issuecomment-396146692","issue_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/727","id":396146692,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjE0NjY5Mg==","user":{"login":"pdxwebdev","id":490176,"node_id":"MDQ6VXNlcjQ5MDE3Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/490176?v=4","gravatar_id":"","url":"https://api.github.com/users/pdxwebdev","html_url":"https://github.com/pdxwebdev","followers_url":"https://api.github.com/users/pdxwebdev/followers","following_url":"https://api.github.com/users/pdxwebdev/following{/other_user}","gists_url":"https://api.github.com/users/pdxwebdev/gists{/gist_id}","starred_url":"https://api.github.com/users/pdxwebdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdxwebdev/subscriptions","organizations_url":"https://api.github.com/users/pdxwebdev/orgs","repos_url":"https://api.github.com/users/pdxwebdev/repos","events_url":"https://api.github.com/users/pdxwebdev/events{/privacy}","received_events_url":"https://api.github.com/users/pdxwebdev/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T07:22:23Z","updated_at":"2018-06-11T07:22:23Z","author_association":"NONE","body":"In xcode, put a breakpoint in the \r\n`didRegisterForRemoteNotificationsWithDeviceToken`  in `AppDelegate+FirebasePlugin.m`\r\nDoes it stop there?\r\nIf not. The next step is to make sure `grantPermission` is being called in `FirebasePlugin.m`\r\n`grantPermission` will execute this line:\r\n`[[UIApplication sharedApplication] registerForRemoteNotifications];`\r\nThat should cause `didRegisterForRemoteNotificationsWithDeviceToken` to be called later.\r\n\r\nAlso, if `grantPermission`  in `AppDelegate+FirebasePlugin.m` is not called then your permissions for the app will be wrong as well. You'll see in notification settings for your app that only badge is available."}}
{"actor":{"display_login":"pdxwebdev"}}