{"action":"created","issue":{"url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/498","repository_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase","labels_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/498/labels{/name}","comments_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/498/comments","events_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/498/events","html_url":"https://github.com/arnesson/cordova-plugin-firebase/issues/498","id":279131797,"node_id":"MDU6SXNzdWUyNzkxMzE3OTc=","number":498,"title":"[iOS] onNotificationOpen doesn`t work, if App is in Background","user":{"login":"wo-github","id":25742551,"node_id":"MDQ6VXNlcjI1NzQyNTUx","avatar_url":"https://avatars1.githubusercontent.com/u/25742551?v=4","gravatar_id":"","url":"https://api.github.com/users/wo-github","html_url":"https://github.com/wo-github","followers_url":"https://api.github.com/users/wo-github/followers","following_url":"https://api.github.com/users/wo-github/following{/other_user}","gists_url":"https://api.github.com/users/wo-github/gists{/gist_id}","starred_url":"https://api.github.com/users/wo-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wo-github/subscriptions","organizations_url":"https://api.github.com/users/wo-github/orgs","repos_url":"https://api.github.com/users/wo-github/repos","events_url":"https://api.github.com/users/wo-github/events{/privacy}","received_events_url":"https://api.github.com/users/wo-github/received_events","type":"User","site_admin":false},"labels":[{"id":920639030,"node_id":"MDU6TGFiZWw5MjA2MzkwMzA=","url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/labels/component:%20messaging","name":"component: messaging","color":"f9d0c4","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-12-04T20:10:16Z","updated_at":"2018-12-27T06:20:15Z","closed_at":"2018-05-04T18:29:17Z","author_association":"NONE","body":"On iOS the onNotificationOpen Event isn`t called, if the app is closed.\r\nThe code:\r\n\r\n```\r\ninitRemotenotification() {\r\n        let that = this;\r\n        this.firebase.grantPermission();\r\n        this.firebase.getToken().then(token => {\r\n                this.appVersion.getVersionNumber().then(version => {\r\n                    this.authService.getUserInfo().then(user => {\r\n                        this.pushProvider.registerPush(token, this.device.platform, this.device.uuid, version, user);\r\n                    });\r\n                });\r\n            },\r\n            function (err) {\r\n                \r\n            }\r\n        );\r\n\r\n        this.firebase.onTokenRefresh().subscribe(token => {\r\n                this.appVersion.getVersionNumber().then(version => {\r\n                    this.authService.getUserInfo().then(user => {\r\n                        this.pushProvider.registerPush(token, this.device.platform, this.device.uuid, version, user);\r\n                    });\r\n                });\r\n            },\r\n            function (err) {\r\n               \r\n            }\r\n        );\r\n\r\n        this.firebase.onNotificationOpen().subscribe(notification => {\r\n                this.processAdditionalData(notification);\r\n            }, error => {\r\n               \r\n            }\r\n        );\r\n    }\r\n```\r\n\r\nOn Android the onNotificationOpen Event fires, if you clicked on the message in the notification bar. On iOS only the app will be open and the homescreen will be shown. The initRemotenotification) function is called, but the onNotificationOpen Event isn`t fired. This work only if the app is in the list of open apps, if you double click on the home button. If the app isn`t in this list, the event will not be fire.\r\nHow could I get the message data in iOS, if the app isn`t in the list of open apps?\r\n\r\nPlugin Version: 0.1.24\r\nionic Version: 3.9.2"},"comment":{"url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/comments/450084258","html_url":"https://github.com/arnesson/cordova-plugin-firebase/issues/498#issuecomment-450084258","issue_url":"https://api.github.com/repos/arnesson/cordova-plugin-firebase/issues/498","id":450084258,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDA4NDI1OA==","user":{"login":"shivamethical","id":25656553,"node_id":"MDQ6VXNlcjI1NjU2NTUz","avatar_url":"https://avatars2.githubusercontent.com/u/25656553?v=4","gravatar_id":"","url":"https://api.github.com/users/shivamethical","html_url":"https://github.com/shivamethical","followers_url":"https://api.github.com/users/shivamethical/followers","following_url":"https://api.github.com/users/shivamethical/following{/other_user}","gists_url":"https://api.github.com/users/shivamethical/gists{/gist_id}","starred_url":"https://api.github.com/users/shivamethical/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivamethical/subscriptions","organizations_url":"https://api.github.com/users/shivamethical/orgs","repos_url":"https://api.github.com/users/shivamethical/repos","events_url":"https://api.github.com/users/shivamethical/events{/privacy}","received_events_url":"https://api.github.com/users/shivamethical/received_events","type":"User","site_admin":false},"created_at":"2018-12-27T06:20:15Z","updated_at":"2018-12-27T06:20:15Z","author_association":"NONE","body":"Hi i am getting this issue and i have not local notification plugin !"}}
{"actor":{"display_login":"shivamethical"}}