Questions tagged [phonegap-pushplugin]

[DO NOT USE THIS TAG - Use phonegap-plugin-push instead] This plugin is for use with Cordova, and allows your application to receive push notifications on Android, iOS and WP8 devices.

Description:

[DEPRECATED] Use phonegap-plugin-push instead.

This plugin is for use with Cordova, and allows your application to receive push notifications on both Android and iOS devices. The Android implementation uses Google's GCM (Google Cloud Messaging) service, whereas the iOS version is based on Apple APNS Notifications. Support for Windows Phone 8 was added recently.

Installation:

Repository:

GitHub: Cordova Push Notifications Plugin for Android, iOS and WP8

313 questions
5
votes
2 answers

How to handle Push notification when application is resumed?

Trying to handled push Notification using PushPlugin. Following is my code. onNotificationGCM: function(e) { switch( e.event ) { case 'registered': if ( e.regid.length > 0 ) { …
5
votes
3 answers

Device is not defined error pops up when launching my Phonegap Push notification app

I used the example source code from (https://github.com/phonegap-build/PushPlugin/tree/master/Example/www). Problem is that, when I install my app and launch it my android phone (or android SDK emulator), it fails to register device to Android GCM.…
user3432056
  • 325
  • 1
  • 5
  • 14
4
votes
1 answer

Push notification on click event does not work when app is in background Ionic 3

I am using phonegap-plugin-push for push notification in Ionic 3 I received notification, but while clicking on notification I didn't get any response. I want to redirect to a selected page while clicking on notification. Below is my code. public…
4
votes
1 answer

FCM give success but Notification is not received by device in Ionic V1

I am using FIREBASE CLOUD MESSAGING service with my ionic product and phonegap-plugin-push cordova plugin to get push notification from PHP BACK END. When I am trying to get push notification then php end is getting result with success as…
4
votes
1 answer

phonegap-push-plugin doesn't work in iOS

I am having problems with my project. I have an Ionic Project and I'm using phonegap-plugin-push to send push notifications. On Android works well, but on iOS doesn't work. Do not appears the alert asking if I want to receive notifications and the…
4
votes
1 answer

Custom sound using ionic push notifications

I am trying to implement custom sound for my push notifications in Ionic application. I copied the sound file to www/ also set plugin options as follows //In app.run $ionicPush.init({ "debug": true, "onNotification":…
Nikhil
  • 1,166
  • 2
  • 17
  • 35
4
votes
0 answers

Unexpected Top-Level Exception in Cordova

I have a Cordova application which has the Facebook and PushNotification plugins installed. When I try to build my application I get the following error: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define…
Nehil Mistry
  • 1,101
  • 2
  • 22
  • 51
4
votes
1 answer

Ionic Push Android push notification returning "undefined" message

I've been trying to get Android push notifications working for my app for a little while now (iOS already completed) and have everything sorted out besides just getting the notification to actually show up on the Android device. Registering the…
parchambeau
  • 1,141
  • 9
  • 34
  • 56
4
votes
0 answers

Android pushNotificationReceived event not firing when app is in foreground

I'm using the push plugin with ngCordova, and I'm not getting any pushNotificationReceived events firing when the Android app is in the foreground. The event fires when I do a device registration and it also seems to work for iOS - it's only on…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
4
votes
3 answers

only getting string "OK" instead of the device/registration id from cordova push plugin using Android

I've set up the push notification plugin and am calling the register method, but it's only returning a string "OK" instead of a device id. How do I get the registered device id? $window.plugins.pushNotification.register( function…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
4
votes
1 answer

PushPlugin register goes to errorhandler showing 'Class not found' with cordova 4.0.0 for android platform

I'm building a hybrid app using Cordova (version 4.0.0) for Android. I have added PushPlugin (https://github.com/phonegap-build/PushPlugin) to the project. While registering it goes to errorhandler and displays 'Class not found'. I have tried…
4
votes
2 answers

Cordova only executes plugins after resume event

I'm using Cordova 3.5.0 on iOS. My application loads, the 'deviceReady' event is fired, but no plugin actions are executed until I put my app in the background (by going to the homescreen). When I go back into my app, the 'resume' handler gets…
4
votes
1 answer

Cordova/Phonegap/Ionic - Receiving Push message via PushPlugin and save data to localStorage even when user dismisses the notification

I have set up an Ionic Framework project which receives GCM push notifications. I want to save the incoming notifications in the window.localStorage of the app. This is what I have tried so far: function onNotificationGCM(e) { switch( e.event ) { …
4
votes
0 answers

detect notifications if app is launched directly

using PhoneGap and the pushPlugin for notifications, is there a way to detect the notification when app is launched directly? i.e, if someone clicks on the notification, the app launches and i can detect the notification info with the…
rpsep2
  • 3,061
  • 10
  • 39
  • 52
3
votes
2 answers

How to open a specific page when a push notification is clicked in Ionic 3 while app is in background?

I have integrated PhoneGap push notifications plugin. I am able to receive notifications in Android and i am able to open a specific page when app is in the foreground. I would like to open a specific page when a user clicks on the notifications…
Zakir
  • 95
  • 1
  • 10
1
2
3
20 21