{"action":"created","issue":{"url":"https://api.github.com/repos/CrossGeeks/PushNotificationPlugin/issues/50","repository_url":"https://api.github.com/repos/CrossGeeks/PushNotificationPlugin","labels_url":"https://api.github.com/repos/CrossGeeks/PushNotificationPlugin/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/CrossGeeks/PushNotificationPlugin/issues/50/comments","events_url":"https://api.github.com/repos/CrossGeeks/PushNotificationPlugin/issues/50/events","html_url":"https://github.com/CrossGeeks/PushNotificationPlugin/issues/50","id":300572294,"number":50,"title":"iOS OnNotificationOpened","user":{"login":"edmckee","id":349146,"avatar_url":"https://avatars1.githubusercontent.com/u/349146?v=4","gravatar_id":"","url":"https://api.github.com/users/edmckee","html_url":"https://github.com/edmckee","followers_url":"https://api.github.com/users/edmckee/followers","following_url":"https://api.github.com/users/edmckee/following{/other_user}","gists_url":"https://api.github.com/users/edmckee/gists{/gist_id}","starred_url":"https://api.github.com/users/edmckee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edmckee/subscriptions","organizations_url":"https://api.github.com/users/edmckee/orgs","repos_url":"https://api.github.com/users/edmckee/repos","events_url":"https://api.github.com/users/edmckee/events{/privacy}","received_events_url":"https://api.github.com/users/edmckee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-27T10:27:09Z","updated_at":"2018-02-27T21:41:57Z","closed_at":null,"author_association":"NONE","body":"I upgraded to the version 1.3 in order to control the registering of notifications.  \r\nThis code was working before in iOS, and is working in Android, but now isn't working in iOS.\r\nAll notifications that are opened come in as OnNotificationReceived.\r\nThis is my App.xaml.cs\r\n`            CrossPushNotification.Current.OnNotificationReceived += (s, p) =>\r\n            {\r\n                System.Diagnostics.Debug.WriteLine(\"Received\");\r\n                NotificationProvider.OnNotificationReceived(JObject.FromObject(p.Data));\r\n            };\r\n\r\n            CrossPushNotification.Current.OnNotificationOpened += (s, p) =>\r\n            {\r\n                System.Diagnostics.Debug.WriteLine(\"Opened\");\r\n                NotificationProvider.OnNotificationOpened(JObject.FromObject(p.Data), p.Identifier);\r\n            };`\r\n\r\nThis is my AppDelegate.cs\r\n'            LoadApplication(new App());\r\n            PushNotificationManager.Initialize(options, false);\r\n'\r\n`        public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)\r\n        {\r\n            PushNotificationManager.DidRegisterRemoteNotifications(deviceToken);\r\n        }\r\n\r\n        public override void FailedToRegisterForRemoteNotifications(UIApplication application, NSError error)\r\n        {\r\n            PushNotificationManager.RemoteNotificationRegistrationFailed(error);\r\n\r\n        }\r\n        // To receive notifications in foregroung on iOS 9 and below.\r\n        // To receive notifications in background in any iOS version\r\n        public override void DidReceiveRemoteNotification(UIApplication application, NSDictionary userInfo, Action<UIBackgroundFetchResult> completionHandler)\r\n        {\r\n            PushNotificationManager.DidReceiveMessage(userInfo);\r\n        }`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CrossGeeks/PushNotificationPlugin/issues/comments/369036287","html_url":"https://github.com/CrossGeeks/PushNotificationPlugin/issues/50#issuecomment-369036287","issue_url":"https://api.github.com/repos/CrossGeeks/PushNotificationPlugin/issues/50","id":369036287,"user":{"login":"edmckee","id":349146,"avatar_url":"https://avatars1.githubusercontent.com/u/349146?v=4","gravatar_id":"","url":"https://api.github.com/users/edmckee","html_url":"https://github.com/edmckee","followers_url":"https://api.github.com/users/edmckee/followers","following_url":"https://api.github.com/users/edmckee/following{/other_user}","gists_url":"https://api.github.com/users/edmckee/gists{/gist_id}","starred_url":"https://api.github.com/users/edmckee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edmckee/subscriptions","organizations_url":"https://api.github.com/users/edmckee/orgs","repos_url":"https://api.github.com/users/edmckee/repos","events_url":"https://api.github.com/users/edmckee/events{/privacy}","received_events_url":"https://api.github.com/users/edmckee/received_events","type":"User","site_admin":false},"created_at":"2018-02-27T21:41:57Z","updated_at":"2018-02-27T21:41:57Z","author_association":"NONE","body":"I did revert back to version 1.2.6 and the OnNotificationOpened worked with no application changes except the new CrossPushNotification.Current.RegisterForPushNotifications().  \r\nI also tried 1.2.8-beta and that didn't work either.  So either I need to do something different with 1.3.0 or something isn't quite right.\r\nThanks again"}}
{"actor":{"display_login":"edmckee"}}