diff --git a/config.xml b/config.xml index 9273808..e2c5b0e 100644 --- a/config.xml +++ b/config.xml @@ -28,7 +28,6 @@ - diff --git a/hooks/after_platform_add/010_install_plugins.js b/hooks/after_platform_add/010_install_plugins.js index c83cca7..139825e 100755 --- a/hooks/after_platform_add/010_install_plugins.js +++ b/hooks/after_platform_add/010_install_plugins.js @@ -10,7 +10,6 @@ var plugins = { 'com.ohh2ahh.plugins.appavailability': 'https://github.com/ohh2ahh/AppAvailability.git', 'com.ionic.keyboard': 'com.ionic.keyboard', 'com.phonegap.plugins.PushPlugin': 'phonegap-plugin-push@2.0.0', - 'de.appplant.cordova.plugin.local-notification': 'de.appplant.cordova.plugin.local-notification', 'nl.x-services.plugins.socialsharing': 'https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git', 'org.apache.cordova.device': 'org.apache.cordova.device', 'org.apache.cordova.statusbar': 'org.apache.cordova.statusbar', diff --git a/package.json b/package.json index 79a81aa..64f5e93 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "cordova-plugin-device": "^1.1.7", "cordova-plugin-whitelist": "^1.3.3", "cordova-plugin-x-socialsharing": "git+https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git", - "de.appplant.cordova.plugin.local-notification": "^0.8.5", "es6-promise-plugin": "^4.1.0", "express": "4.8.1", "ionic-native": "^2.9.0", @@ -83,7 +82,6 @@ "plugins": { "cordova-plugin-x-socialsharing": {}, "cordova-plugin-appavailability": {}, - "de.appplant.cordova.plugin.local-notification": {}, "phonegap-plugin-push": {}, "cordova-plugin-whitelist": {} } diff --git a/www/js/services/push.js b/www/js/services/push.js index 1e8c99b..bead2af 100644 --- a/www/js/services/push.js +++ b/www/js/services/push.js @@ -40,14 +40,6 @@ var PushNotificationService = function ( 'sound': 'true', 'alert': 'true' }); - } else if (platform === 'ANDROID') { - // Android uses the local notification interface to pop up notifications, so register the click - // handler here. - window.plugin.notification.local.onclick = function (id, state, json) { - if (id === pushConstants.PUSH_RECEIVED_FOREGROUND_NOTIFICATION_ID) { - $state.go('acm.homeTabs.home', {}, {reload: true}); - } - }; } pushConfig.vibrate = true; diff --git a/www/js/services/push/gcm.js b/www/js/services/push/gcm.js index 0e14ca3..d1354ab 100644 --- a/www/js/services/push/gcm.js +++ b/www/js/services/push/gcm.js @@ -24,15 +24,6 @@ var GCMNotificationService = function ( var message = acmUserDefaults.getUserDefault(acmUserDefaults.keys.ACTION); message = acmPushNotificationHelpers.truncateString(message, 140); - // parameter documentation: - // https://github.com/katzer/cordova-plugin-local-notifications#further-informations-1 - window.plugin.notification.local.add({ - smallIcon: 'res://notification_icon', - id: constants.PUSH_RECEIVED_FOREGROUND_NOTIFICATION_ID, - title: acmUserDefaults.getUserDefault(acmUserDefaults.keys.ACTION_TITLE), - message: message, - autoCancel: true - }); $state.go('acm.homeTabs.home', {}, {reload: true}); } else { // If the app's backgrounded, any push notification received redirects the user to the action