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

Initialize phonegap application when launch from the background

I use a push plugin in my application. When I click on notification my application open in which we're left (like as: third page) of my application. I need every time when application starts it's state from initialize state (home page or application…
user4809193
2
votes
4 answers

How to handle push notifications with Cordova as they arrive and the app is closed

Can I somehow detect push notification arrival and handle it using cordova when notification arrives and app is closed at that time? I am using cordova com.clone.phonegap.plugins.pushplugin but when notification arrives and app is closed then the…
2
votes
1 answer

How to connect PushPlugin + Parse on cordova android

Has anyone had any experience using the PushPlugin library (https://github.com/phonegap-build/PushPlugin) on a Cordova app when using Parse.com as their notifications on android? I followed their readme, which registers for the GCM sender, but that…
2
votes
1 answer

How to handle push notification in firebase

I'm developing a real time chat application using firebase and phonegap,I need to handle push notifications when application is not running.Please guide me to handle push notification at my backend server for firebase changes. thanks
Xien Lua
  • 41
  • 3
2
votes
2 answers

Cordova - Dismissing a notification will lose the data inside it

Im experiencing a bad behavior using cordova on android, while developing with ionic framework, together with ngCordova plugins. With the PushPlugin plugin, Im able to receive notifications using GCM. When the app is in background and a…
buddy123
  • 5,679
  • 10
  • 47
  • 73
2
votes
1 answer

Phonegap: GCM Push Notification registration call returns OK but device is not even connected to the internet

I have followed this tutorial and I have the following code: onDeviceReady I execute: var pushNotification = window.plugins.pushNotification; pushNotification.register(app.successHandler,…
Lilás
  • 1,111
  • 1
  • 16
  • 29
2
votes
4 answers

Android PushNotifications with PushPlugin on emulator

I've been following this sample to get android pushNotifications (with GCM) working on an android emulator. After $cordovaPush.register(config) I get Ok as response. But it never runs my callback [$scope.$on('$cordovaPush:notificationReceived']. And…
2
votes
1 answer

Change State when User Selects Notification from iOS Notification Center in Cordova

I'm attempting to open an iOS/Ionic/Cordova app at a specific message/state (given an ID), when a user clicks on a message push notification in the notification center. Is there a way to tell, using Cordova, if the app has been opened through the…
2
votes
1 answer

Parse.com push notifications not shown in background on android

I'm using Parse.com with an Ionic app and the PushPlugin and trying to implement Parse's Push Notifications through GCM with a custom Sender ID. When I'm sending a message to all devices, or using the REST API with cURL, iOS notifications trigger…
2
votes
1 answer

How to use Windows Phone push notification launch page in a Phonegap App?

I have a Phonegap App in which I have implemented push notifications with PushPlugin. When the user taps the received notification, I'm showing a local notification which contains a link(button) to a specific page based on the payload of the push…
2
votes
1 answer

Can I get more than 4kb of data from a website database to an Android phone using GCM?

Hey I am planning to do my final year project on PhoneGap. The idea is to build a prescription viewer app along with a pill reminder. The patient will consult a doctor, who will upload the prescription (medicine, dosage, time) to a website. From the…
V V
  • 23
  • 2
2
votes
1 answer

Find out if notification was received while app was in background

When I bring my cordova app to the foreground I want to check if a notification was received, while the app was in the background. Is there a way to catch pending notifications? Does anyone have an idea on how to achieve this? I started with the…
sebvst
  • 753
  • 1
  • 13
  • 20
2
votes
2 answers

Can't find variable: device

I'm stuck in this phonegap project. Everything works perfect on Android and iOS <= 7 but fails on iOS >= 8.0. A popup-window appears with the message: "Can't find variable: device" This is the message i get: This is my HTML:
2
votes
0 answers

Phonegap : PushPlugin badge issue version 2.4.0

I have an issue with push plugin version 2.4.0 In ios 8, it works pretty well, but in ios 6 and ios 7, badge count is not showing up. I can receive push on these devices, only the badge count is missing. Interestingly, i could see the badge coming…
2
votes
1 answer

PushPlugin not found for iOS PhoneGap

I just installed PhoneGap 3.5 and the PushPlugin using the PhoneGap CLI. I created a project using the PhoneGap CLI. In the receivedEvent method of index.js, I added these lines: var pushNotification =…
Mike_G
  • 16,237
  • 14
  • 70
  • 101