derek82511 / cordova-azure-notification-hubs

Register and receive push notifications via Azure Notification Hub.
MIT License
10 stars 30 forks source link

Fix - Handle dismissed notifications #14

Open michael92 opened 5 years ago

michael92 commented 5 years ago

Description

There was a problem with dismissing notification when application was in the background. When someone cleared notifications, the application started automatically. Dismissed notification was handled in a wrong way by code from phonegap-plugin-push. This pull request resolves the problem.

Related Issue

phonegap-plugin-push issue: https://github.com/phonegap/phonegap-plugin-push/issues/1665

Solution

I added code from pull request to phonegap-plugin-push: https://github.com/phonegap/phonegap-plugin-push/pull/1816 and https://github.com/phonegap/phonegap-plugin-push/commit/118b1a454eebc9e5b053f40be3f1a3af253d783e