phonegap-pushplugin

PhoneGap/Cordova app notifications

痴心易碎 提交于 2019-12-10 11:29:37
问题 I am new to PhoneGap/Cordova, i am looking to add some notifications to my app. Push notification - so when a new article is released on app it will alert the users. Local Notifications - On set intervals (date and time) I can prompt the user of the latest articles on my app. I had done a lot of searching but unable to find a working example that I can import straight into a project and then modify. I have tried the following plugin in but was unable to get it working https://github.com

Cordova Push Notifications (PhoneGap PushPlugin) not firing ecb callback (onNotificationAPN)

孤街醉人 提交于 2019-12-09 10:04:41
问题 I'm using the Cordova Push Notifications Plugin 1.3.4 with my Cordova/Phonegap App. Unfortunately, when receiving a push notification, the ecb callback in my JavaScript is never fired and I can't handle the push notification (not even when the app is running in foreground). I'm using the example code from the demo: pushNotification.register(tokenHandler, errorHandler, {"badge": "true", "sound": "true", "alert": "true", "ecb": "onNotificationAPN"}); The registration is successful, but the

PushPlugin not found, or is not a CDVPlugin

三世轮回 提交于 2019-12-09 07:32:27
I am developing an app using Cordova, Angular and Ionic. I have a problem with the phonegap push plugin and I've searched a lot but no solutions found. I use cordova 5.4.1 and phonegap-plugin-push 1.5.3. When I run the app on iPad or emulator from Xcode, logs throws this error: ERROR: Plugin 'PushPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. [CDVCommandQueue executePending] [Line 159] FAILED pluginJSON = [ "PushPlugin938856013", "PushPlugin", "register", [{ "ecb":"onNotificationAPN", "alert":"true", "badge":"true", "sound":"true" }] ] I've reinstalled the

PushPlugin not found, or is not a CDVPlugin

大憨熊 提交于 2019-12-08 04:15:58
问题 I am developing an app using Cordova, Angular and Ionic. I have a problem with the phonegap push plugin and I've searched a lot but no solutions found. I use cordova 5.4.1 and phonegap-plugin-push 1.5.3. When I run the app on iPad or emulator from Xcode, logs throws this error: ERROR: Plugin 'PushPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml. [CDVCommandQueue executePending] [Line 159] FAILED pluginJSON = [ "PushPlugin938856013", "PushPlugin", "register", [

phonegap-plugin-push on(“notification”) event is not firing when app is in background

只谈情不闲聊 提交于 2019-12-08 02:27:43
问题 I am using following plugin for push notification in Ionic2 http://ionicframework.com/docs/native/push/ Expected Behaviour: When app is closed, And notification received, And when user tap the notification, on("notification") event should fire after app opens. Actual Behaviour: I am getting notification successfully. But When Application is in background or closed, at that time when I receive notification and I tap the notification, on("notification") event is not firing. Cordova version 7.0

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

给你一囗甜甜゛ 提交于 2019-12-07 09:59:46
问题 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 various suggestion like Added plugin reference in xml. Actually plugin reference is already there in config.xml file. Directly install plugin using CLI (tried cordova plugin add https://github.com/phonegap-build/PushPlugin.git as well as cordova plugin

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

扶醉桌前 提交于 2019-12-06 07:19:48
问题 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. All the time error pops-up - "Device is not defined". I dont know exactly how I can catch error, why it fails to register device. Steps that I preformed is: – Created Phonegap project – Installed following 3 plugins (cordova-plugin-device.git,

PhoneGap/Cordova app notifications

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 05:59:51
I am new to PhoneGap/Cordova, i am looking to add some notifications to my app. Push notification - so when a new article is released on app it will alert the users. Local Notifications - On set intervals (date and time) I can prompt the user of the latest articles on my app. I had done a lot of searching but unable to find a working example that I can import straight into a project and then modify. I have tried the following plugin in but was unable to get it working https://github.com/katzer/cordova-plugin-local-notifications/ Steps for enabling push notifications in project. create a

“ecb” doesn't work whit Cordova and PushPlugin

本小妞迷上赌 提交于 2019-12-05 04:50:07
问题 I've tried to register my device using pushNotification, using a demo. It doesn't work. Print "Cordova PushNotification Plugin Demo" and "registering android" and look the alert "OK" (successHandler function works). The problem is that doesn't work the "ecb". Why? Can you help me? The plugin that I've installed with Cordova are: PushPlugin, Device, Notification, InAppBrowser and Network Information. I've tried the app on my LG L9 and on emulator. Same problem. This is the code: <script type=

Cordova PushPlugin: Android won't play push sound while app not running

风格不统一 提交于 2019-12-04 15:18:23
I'm using the PushPlugin for cordova, and in android, I can't make the push notification play a sound while the app is not running or in background (the banner in status bar is presented ok). Here's the function that gets called on android push notifications- function onNotification(e) { . . . case 'message': { var myMedia = new Media("/android_asset/www/res/raw/tritone.mp3"); myMedia.play({ numberOfLoops: 2 }) the sound plays fine while app is running in foreground. This is the 'e' param value of the function "onNotification(e)" after a push is received while I'm in foreground (which does