Error In Success Callback Phonegap
Contents |
here for a quick overview of the site Help phonegap push plugin Center Detailed answers to any questions you might have
Cordova Push Notification
Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PhoneGap's FileTransfert Success Callback error up vote 1 down vote favorite 1 I'm using PhonGap's FileTransfert method like so var options = new FileUploadOptions(); options.fileKey="file"; options.mimeType="image/jpeg"; //options.chunkedMode = true; var params = new Object(); params.title = title; params.content = content; params.groupId = groupId; options.params = params; var ft = new FileTransfer(); app.loadmask.show(); ft.upload(app.imageURI, app.stores.actionAjaxURL + "&cmd=addActualite", this.onSuccessCreateActualite, this.onFailureCreateActualite, options, true); This goes to the success callback function which is : onSuccessCreateActualite: function(response, options) { /* REINIT FORM VALUES */ app.imageURI = null; console.log("This log appears"); this.titleField.reset(); console.log("This log does not appear"); this.groupSelect.reset(); this.contentField.reset(); this.addBtn.resumeEvents(); this.picturePnl.update("No Picture"); app.stores.actualites.load(); app.loadmask.hide(); app.views.viewport.actualites.setActiveItem( app.views.viewport.actualites.actualitesList, {type:'slide', direction:'right'} ); app.views.viewport.actualites.actualitesList.actuGrid.scroller.scrollTo({ x: 0, y: 0 }); }, And I'm getting this error : Error in success callback: com.phonegap.filetransfer1 = TypeError: 'undefined' is not an object Does anyone knows why ? Thanks cordova file-transfer share|improve this question asked Feb 24 '12 at 11:57 Titouan de Bailleul 10k946100 try inclu
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
Devices 1:1 and Group Chat WebRTC and VOIP signaling iOS and Android Push Notifications Realtime Dashboards Interactive Audience Participation Multiplayer Games Financial Data Streaming Second Screen Sync for Ads, Polls, Trivia Live Blogging and Polling Geolocations and Geofencing Live Auctions iBeacon Technology Network Publish Subscribe Messaging Presence Storage & Playback Stream Controller Mobile Push Notifications Analytics Access Management Security BLOCKS Resources 70+ SDKs Documentation Demos and Sample Data Streams Debug Console Support, Knowledge Base and FAQ's Tutorials Publish / Subscribe Presence Storage and Playback Stream Controller Access Manager Get Started Login Solutions Internet of Things Home Automation and Device Signalling Tracking and Dispatch Connected Car Wearables and Connected Devices Remotely Control Devices 1:1 and Group Chat WebRTC and VOIP signaling iOS and Android Push Notifications Realtime Dashboards Interactive Audience Participation Multiplayer Games Financial Data Streaming Second Screen Sync for Ads, Polls, Trivia Live Blogging and Polling Geolocations and Geofencing Live Auctions iBeacon Technology Products Network Publish Subscribe Messaging Presence Storage & Playback Stream Controller Mobile Push Notifications Analytics Access Management Security BLOCKS Developers 70+ SDKs Documentation Demos and Sample Data Streams Debug Console Support, Knowledge Base and FAQ's Tutorials Publish / Subscribe Presence Storage and Playback Stream Controller Access Manager Pricing Customers Blog Support Network Status Home › PubNub Developer Community › Question and Answer Phonegap Android GCM Push Notification: Error: PnMessage is undefined Shaunak_Das December 2014 edited December 2014 in Question and Answer I am building chat application in phonegap using GCM and Pubnub. I referred this article http://www.pubnub.com/blog/sending-android-push-notifications-via-gcm-javascript-using-phonegap/ My browser console is showing PnMessage is undefined. I have checked in pubnub.js file. It is defined there. So what is the issue then? These are my files:- index.html
This is a Heading
This is a paragraph.
index.js var pubnub; function onLoad(){ pubnub = PUBNUB.init({ subscribe_key: 'sub-c-2dc2f5b4-8d29-...........', publish_key: 'pub-c-124ec6e8-c.......' }); pubnub.publish({ channel: 'Doctor', message: {"message":"phonegap o