phonegap-pushplugin

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

核能气质少年 提交于 2019-12-04 13:57:44
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, cordova-plugin-media.git, PushPlugin). – Registered App in Google Android GCM and retrieved my Goolge

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

孤者浪人 提交于 2019-12-04 04:53:50
问题 I have followed this tutorial and I have the following code: onDeviceReady I execute: var pushNotification = window.plugins.pushNotification; pushNotification.register(app.successHandler, app.errorHandler,{"senderID":"824841663931","ecb":"app.onNotificationGCM"}); The Handlers: // result contains any message sent from the plugin call successHandler: function(result) { alert('Callback Success! Result = '+result) }, errorHandler:function(error) { alert(error); }, onNotificationGCM: function(e)

“ecb” doesn't work whit Cordova and PushPlugin

妖精的绣舞 提交于 2019-12-03 22:16:03
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="text/javascript" charset="utf-8" src="cordova.js"></script> <script type="text/javascript" charset="utf

PushPlugin TypeError: Object #<Object> has no method ''exec

孤者浪人 提交于 2019-12-03 18:16:23
问题 Background I installed PushPlugin. According to the docs I used automatic installation. But when I run cordova run android , JavaScript returns the error, 'Cannot read property pushNotification of undefined' If I add <script type="text/javascript" charset="utf-8" src="PushNotification.js"></script> then the error changes to the one in this question's title. This is how my HTML loads the scripts <script type="text/javascript" src="cordova.js"></script> <script src="js/libs/jquery-1.10.2.js"><

PhoneGap Push Plugin Not working on android 4.0.4 and below

大城市里の小女人 提交于 2019-12-02 20:57:35
问题 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 link: https://github.com/phonegap-build/PushPlugin here is the video of the problem: http://www.youtube.com/watch?v=R2wdFDQc1aI working well on my galaxy s3 though: 来源: https://stackoverflow.com/questions/23620218/phonegap-push-plugin-not-working-on-android-4-0-4-and-below

Ionic page transition not working to page with push feature

↘锁芯ラ 提交于 2019-12-02 11:53:18
问题 I implemented android push reception in my app, and it works well as long as the app starts at that page. But if you navigate to the inbox page where the push notifications are implemented the transition doesn't work. The transition worked well without the push implementation. I wonder if someone has had a similar problem implementing features. .controller('BuzonMenuCtrl', function($scope, $window, $state, $ionicPlatform) { $scope.botonBuzon = function(){ $state.go('buzon'); }; }) .controller

PhoneGap Push Plugin Not working on android 4.0.4 and below

落爺英雄遲暮 提交于 2019-12-02 09:44:25
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 link: https://github.com/phonegap-build/PushPlugin here is the video of the problem: http://www.youtube.com/watch?v=R2wdFDQc1aI working well on my galaxy s3 though: 来源: https://stackoverflow.com/questions/23620218/phonegap-push-plugin-not-working-on-android-4-0-4-and-below

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

廉价感情. 提交于 2019-12-02 05:34:51
问题 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 =

Ionic page transition not working to page with push feature

会有一股神秘感。 提交于 2019-12-02 04:03:46
I implemented android push reception in my app, and it works well as long as the app starts at that page. But if you navigate to the inbox page where the push notifications are implemented the transition doesn't work. The transition worked well without the push implementation. I wonder if someone has had a similar problem implementing features. .controller('BuzonMenuCtrl', function($scope, $window, $state, $ionicPlatform) { $scope.botonBuzon = function(){ $state.go('buzon'); }; }) .controller('BuzonCtrl', function($scope, $rootScope, $window, $ionicActionSheet, $ionicPopup, $state, $http,

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

跟風遠走 提交于 2019-12-02 03:03:11
I have followed this tutorial and I have the following code: onDeviceReady I execute: var pushNotification = window.plugins.pushNotification; pushNotification.register(app.successHandler, app.errorHandler,{"senderID":"824841663931","ecb":"app.onNotificationGCM"}); The Handlers: // result contains any message sent from the plugin call successHandler: function(result) { alert('Callback Success! Result = '+result) }, errorHandler:function(error) { alert(error); }, onNotificationGCM: function(e) { switch( e.event ) { case 'registered': if ( e.regid.length > 0 ) { console.log("Regid " + e.regid);