phonegap-pushplugin

push notification doesn't show up on status bar

≡放荡痞女 提交于 2019-12-02 02:41:49
问题 i'm using phonegap with phonegap-plugin-push , and i tried the example that comes with the plugin , i tested it on my phone ( Galaxy s4 , Android 5.0.1 ) , when i send notification while application is on i got vibration and the message is showing inside the cards div as mentioned in index.js but i got no notification on status bar , if the application is on background i got also no notification on status bar but i got vibration. i wonder why i have no notification popup on status bar. i use

Error - Some official plugins have to be updated if using PhoneGap >= 4.0.0. Plea

情到浓时终转凉″ 提交于 2019-12-02 02:14:15
I Got Error When Compile my Phonegapp App Error - Some official plugins have to be updated if using PhoneGap >= 4.0.0. Please upgrade the version of any plugins that may include the following file: GoogleMaps.java - You can fix this here Compile Log: https://snipplr.com/view/329573/compile-log/ and config.xml Given Below. please help why can i do? <?xml version="1.0" encoding="utf-8" ?> <widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" xmlns:android = "http://schemas.android.com/apk/res/android" id = "kmrs.m6obil6e.app" versionCode = "25" version = "2.5">

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

我与影子孤独终老i 提交于 2019-12-01 01:01:44
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 notification center? From the docs , the callback is the point of entry for your notification. Any calls you make (or variables you set) inside the callback will only be possible if the app has been opened through the notification center 来源: https://stackoverflow.com/questions/28507469/change-state-when-user-selects-notification-from-ios-notification

ionic set badge after push notification

对着背影说爱祢 提交于 2019-11-30 23:12:17
I'm using IONIC Framework and I'd like to set the badge of my application after I'm getting push notification. Is there a way to do it when my application is closed? it is for others who will run into the same problem. I believe your talking about making badge visible with the updated badge number you've received from server. First thing to enable it in code in init method of Push like this var push = PushNotification.init({ android: { senderID: senderID, icon: 'pushicon', sound: "true", iconColor: "#ED8B00" }, browser: { pushServiceURL: 'url' }, ios: { alert: "true", **badge: "true",** sound:

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

亡梦爱人 提交于 2019-11-30 19:10:22
问题 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 notification center? 回答1: From the docs, the callback is the point of entry for your notification. Any calls you make (or variables you set) inside the callback will only be possible if the app has been opened through the notification center 来源:

ionic set badge after push notification

余生颓废 提交于 2019-11-30 17:34:03
问题 I'm using IONIC Framework and I'd like to set the badge of my application after I'm getting push notification. Is there a way to do it when my application is closed? 回答1: it is for others who will run into the same problem. I believe your talking about making badge visible with the updated badge number you've received from server. First thing to enable it in code in init method of Push like this var push = PushNotification.init({ android: { senderID: senderID, icon: 'pushicon', sound: "true",

Detect uninstall event in phonegap app

亡梦爱人 提交于 2019-11-30 10:24:29
When a user installs my app I register his registration ID (android) or device token (iOS) and send push notifications that work fine. But now I want to remove the user from the server when the app is uninstalled. How can I accomplish this in Phonegap: get an event after which i can unregister the user registration id (android) or device token (ios)? Note: I am using PushPlugin Ajoy AFAIK, you cannot know when your app is uninstalled. For your android app, observe the response GCM returns when you send a notification. If it sends a NotRegistered message, you can remove that id from your server

Detect uninstall event in phonegap app

六眼飞鱼酱① 提交于 2019-11-29 14:56:40
问题 When a user installs my app I register his registration ID (android) or device token (iOS) and send push notifications that work fine. But now I want to remove the user from the server when the app is uninstalled. How can I accomplish this in Phonegap: get an event after which i can unregister the user registration id (android) or device token (ios)? Note: I am using PushPlugin 回答1: AFAIK, you cannot know when your app is uninstalled. For your android app, observe the response GCM returns

Background Firebase Push Notifications in Cordova

一曲冷凌霜 提交于 2019-11-29 08:51:31
I am using a phonegap-plugin-push for receiving notifications in Cordova Application. I am deploying on android Marsh-mellow for testing. I want to see and store the contents of the Notifications received through Firebase Console when the app is in background. Here is my Code - document.addEventListener("deviceready",onDeviceReady,false); function onDeviceReady(){ var push = PushNotification.init({ "android": {"senderID": "91254247XXXX"}}); push.on('registration', function(data) { console.log(data.registrationId); //document.getElementById("gcm_id").innerHTML = data.registrationId; }); push.on

Background Firebase Push Notifications in Cordova

孤人 提交于 2019-11-28 02:12:03
问题 I am using a phonegap-plugin-push for receiving notifications in Cordova Application. I am deploying on android Marsh-mellow for testing. I want to see and store the contents of the Notifications received through Firebase Console when the app is in background. Here is my Code - document.addEventListener("deviceready",onDeviceReady,false); function onDeviceReady(){ var push = PushNotification.init({ "android": {"senderID": "91254247XXXX"}}); push.on('registration', function(data) { console.log