Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello, I'm building a app based on Phonegap and PushPlugin. #62

Closed
awesomejerry opened this issue Aug 12, 2014 · 2 comments
Closed

Hello, I'm building a app based on Phonegap and PushPlugin. #62

awesomejerry opened this issue Aug 12, 2014 · 2 comments

Comments

@awesomejerry
Copy link

I always get the success message, but my phone never receives a notification. Here's my code
var regId = "XXXX";
var gcm = require('node-gcm');

// create a message with default values
var message = new gcm.Message();

// or with object values
var message = new gcm.Message({
    collapseKey: 'demo',
    timeToLive: 3,
    data: {
        key1: 'message1',
        key2: 'message2'
    }
});

var sender = new gcm.Sender('AIzaSyDIWlkp-Z5xvjpR8cLtg5_-MgcUI_7HRPs');
var registrationIds = [];

// At least one required
registrationIds.push(regId);

sender.send(message, registrationIds, 4, function (err, result) {
    console.log(result);
});

Thanks

@silentjohnny
Copy link
Contributor

Without more details, it's pretty hard to help you out. For starters:

  • what platform are you using it on
  • can you provide some code snippets from your app
  • any debug log from XCode or ADB?

Cheers

@hypesystem
Copy link
Collaborator

No response for like... forever... closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants