forked from phonegap/phonegap-plugin-push
-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ios): on notification event payload & stop background task (#301)
* feat(ios)!: match Android's behavior for actionCallback * fix(ios): refactor & update fallback handler notId - refactored didReceiveRemoteNotification - refactored didReceiveNotificationResponse - updated fallback handler notId to "pushplugin-handler-<time>" to be unique. Creating a unique fallback notId ensures each notification stores and executes its own completionHandler, preventing newer notifications from overwriting existing ones. * fix(ios)!: crash from stopBackgroundTask * fix(ios): send generated notId to front-end for push.finish stopBackgroundTask * feat(ios): didReceiveNotificationResponse Inactive State - skip finish when notId is null
- Loading branch information
Showing
1 changed file
with
100 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters