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
0
votes
1 answer

Phonegap Push plugin throughing 401 error when sending message through PHP

I tried this code. function sendNotification( $apiKey, $registrationIdsArray, $messageData ) { $headers = array("Content-Type:" . "application/json", "Authorization:" . "key=" . $apiKey); $data = array( 'data' => $messageData, …
0
votes
1 answer

avoiding multiple register() calls with phonegap PushPlugin

The PushPlugin plugin for push notifications for mobile apps seems to only let you set the callback to be used via a call to register. But this potentially means that the app will re-register with Google (or whoever) every time the app is opened,…
ben w
  • 2,490
  • 14
  • 19
0
votes
1 answer

JS Global Variable in AngularJS returns undefined

I'm trying to access a value inside some Javascript to use in an AngularJS service. I have stored the value inside a variable successfully but I am having issues getting that variable into my AngularJS service. Here is my code: JS function: …
geolaw
  • 412
  • 1
  • 12
  • 26
0
votes
1 answer

PushPlugin Storing "regid" inside an AngularJS service

I'm using PushPlugin to handle push notifications inside my cordova application. I want to grab the "regid" value from the plugin and store it inside an AngularJS service so that I can send it alongside a userID value using an Ajax request. I want…
geolaw
  • 412
  • 1
  • 12
  • 26
0
votes
2 answers

Phonegap/PushPlugin doesn't trigger notificaition when app is in forefront (processMessage failed: Stack: ReferenceError)

I have successfully implemented PushPlugin and it is triggering push notifications in all states except when the app is in the foreground. Here is the code I am using: function onNotification(e) { $("#app-status-ul").append('
  • EVENT -> RECEIVED: '…
  • geolaw
    • 412
    • 1
    • 12
    • 26
    0
    votes
    1 answer

    Pushplugin- Unable to register the device (IOS)

    I am using Phonegap Pushplugin for my push notifications. Added logs in both methods. didRegisterForRemoteNotificationsWithDeviceToken method never got executed. It is not even failing on didFailToRegisterForRemoteNotificationsWithError. Not sure…
    0
    votes
    0 answers

    Notification is not handled when user clicks on the application icon

    I'm not (yet :)) an expert in iOS development. I use Cordova/PhoneGap to convert my Javascript app into native app. I use PushPlugin in order to handle notifications. The whole works well when user clicks on the notification alert: handled by the…
    0
    votes
    0 answers

    Android notification does not open app - phonegap build 3.4.0, pushplugin 2.1.1

    I created a Ionic/AngularJS app and I am using PushPlugin for Push Notifications. When I am inside the app and receive a notification I receive it and all works well. But when I am out of the app and I receive a notification in the notification bar…
    lulu88
    • 1,694
    • 5
    • 27
    • 41
    0
    votes
    1 answer

    APN and GCM Push Notifications opening a url in cordova app

    Using Cordova PushPlugin and AngularJS I want to receive a push notification and read a URL in the payload and then navigate to that page when the notification is swiped open. How is this accomplished? I tried this, but this is inside of a global…
    0
    votes
    1 answer

    phonegap version 3.3.0 does not work in iphone 4

    i developed app with phonegap.it generate .ipa file with version 3.3.0. but when i installed that app in my iphone 4(IOS 7.1.1) it installed but it does not work it does not load
    user1688401
    • 1,851
    • 8
    • 47
    • 83
    0
    votes
    0 answers

    phonegap local notification from dreawmweaver html5

    Can someone help me with phonegap local notification, I'm trying to implement this with my phonegap htlm5 app and i can't find any examples or tutorials for it? and how to install the plugin in config.xml file as well. Thank you
    0
    votes
    1 answer

    Plugin 'PushPlugin' not found Cordova 3.5

    I am following this tutorial to implement Push Notifications into my PhoneGap application. However I keep getting the following error in XCode: 2014-06-03 22:50:38.425 Clubbed In[336:60b] CDVPlugin class PushPlugin (pluginName: PushPlugin) does not…
    0
    votes
    1 answer

    PushPlugin register function does not give regid

    I have added in config.xml. When I run the app it shows alert "Callback Success! Result = OK" even when phone is not connected to internet then I press OK and nothing else…
    SMUsamaShah
    • 7,677
    • 22
    • 88
    • 131
    0
    votes
    0 answers

    PhoneGap Push Plugin Not working on android 4.0.4 and below

    I could successfully run plugin and saved register id on galaxy s3, note 2, note 3 but it's not working on two different samsung galaxy mini device 2.3.6 and 4.0.4. What could be the solution ? Official plug-in…
    mirza
    • 5,685
    • 10
    • 43
    • 73
    0
    votes
    3 answers

    Android push plugin getting registered but not receiving any message

    I am implementing push-plugin notifications for android in my app , For that i followed several tutorials before actually implementing the phonegap push plugin for android in my app Step 1 ) I got a sample code from GCM site under samples and…
    1 2 3
    20
    21