Skip to content

Commit

Permalink
Remove obsolete local-notification plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wioux committed Jan 25, 2018
1 parent 1aa03c7 commit cdb87f2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion config.xml
Expand Up @@ -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>
1 change: 0 additions & 1 deletion hooks/after_platform_add/010_install_plugins.js
Expand Up @@ -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',
Expand Down
2 changes: 0 additions & 2 deletions package.json
Expand Up @@ -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",
Expand Down Expand Up @@ -83,7 +82,6 @@
"plugins": {
"cordova-plugin-x-socialsharing": {},
"cordova-plugin-appavailability": {},
"de.appplant.cordova.plugin.local-notification": {},
"phonegap-plugin-push": {},
"cordova-plugin-whitelist": {}
}
Expand Down
8 changes: 0 additions & 8 deletions www/js/services/push.js
Expand Up @@ -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;
Expand Down
9 changes: 0 additions & 9 deletions www/js/services/push/gcm.js
Expand Up @@ -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
Expand Down

0 comments on commit cdb87f2

Please sign in to comment.