This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #1199: iOS 10 is not firing the 'notification' event after clic…
…king on a notification when the app is in hibernate
- Loading branch information
e711b09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that this works, in my case this event never fires, no matter what.
https://developer.apple.com/reference/uikit/uiapplicationdelegate/1623117-application?language=objc
I understand: since
application:didReceiveRemoteNotification:fetchCompletionHandler
is also defined, the code above will never fire.Distinguishing between user
clicked
and notificationreceived
is hard to solve, I can't find a simple way to fix this.But https://github.com/fechanique/cordova-plugin-fcm/blob/53bd6bfd38320b2b8025604352fb5882ec3bb7ae/src/ios/AppDelegate%2BFCMPlugin.m uses this as well, not sure about this.
e711b09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@menelike did you figure this out? Im seeing the same behavior after upgrading to Cordova 6.5.0 along with this plugin. I tried Lucklyrick's fork but no luck
e711b09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@djett41 sorry, it's been a while and I can not remember how we solved this case
You may try https://github.com/risetechnologies/phonegap-plugin-push/tree/tappedFixiOS at your own risk (we added some undocumented features). I think that risetechnologies@5b54836 was related to this issue, hope it helps
e711b09
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the reply @menelike !! I'm actually using a fork by intercom for push notifications and they bypass most of the logic from your commit thats adds the tapped property if the push notification comes from intercom.. so im not sure if this will work, but I just put in an issue for them as it could possibly be a payload issue on their part