Permalink
Browse files

Remove obsolete local-notification plugin

  • Loading branch information...
wioux committed Jan 25, 2018
1 parent 1aa03c7 commit cdb87f2b2bde6b25324f911b33bd388cf3d6932d
Showing with 0 additions and 21 deletions.
  1. +0 −1 config.xml
  2. +0 −1 hooks/after_platform_add/010_install_plugins.js
  3. +0 −2 package.json
  4. +0 −8 www/js/services/push.js
  5. +0 −9 www/js/services/push/gcm.js
View
@@ -28,7 +28,6 @@
<engine name="android" spec="^6.4.0" />
<plugin name="cordova-plugin-x-socialsharing" spec="git+https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git" />
<plugin name="cordova-plugin-appavailability" spec="git+https://github.com/ohh2ahh/AppAvailability.git" />
<plugin name="de.appplant.cordova.plugin.local-notification" spec="^0.8.5" />
<plugin name="phonegap-plugin-push" spec="^1.10.5" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
</widget>
@@ -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',
View
@@ -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": {}
}
View
@@ -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;
@@ -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

0 comments on commit cdb87f2

Please sign in to comment.