if (device.platform == 'android' || device.platform == 'Android') { pushNotification.registerDevice({ alert: true, badge: true, sound: true, projectid: "81*", appid: "-***" }, function (status) { alert("Success"); loadHeadnFoot(); pushToken = status; navigator.splashscreen.hide(); alert('push token: ' + status); }, function (status) { alert('ERROR : '+JSON.stringify(status)); //navigator.splashscreen.hide(); }); }

I got the alert Success. But token is coming as undefined. Please check.

Checked in local environment and build.pg.com. Same effect.

asked 21 May '14, 06:24
vishnuraj910's gravatar image

vishnuraj910
112

edited 22 May '14, 11:10

shader's gravatar image

shader
3.9k7

<gap:plugin name="com.pushwoosh.plugins.pushwoosh" version="3.0.2"/>

This is the plugin which I'm using

permanent link
answered 21 May '14, 06:26
vishnuraj910's gravatar image

vishnuraj910
112

That's really weird. Am I correct that status variable is undefined? Do you have any console logs from the device?

permanent link
answered 22 May '14, 11:13
shader's gravatar image

shader
3.9k7

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×447
×165
×49
×16

question asked: 21 May '14, 06:24

question was seen: 1,174 times

last updated: 11 Jun '14, 13:43