Device registered but not receiving notifications from dashboard

I am trying to use the push notification system from Corona Cloud, I have successfully registered my device with my app in the Cloud dashboard. When I send a push notification, I get the “Notification is successfully sent” Message. But I am not receiving the notifications on my device. I am doing this with Google GCM and I have not set anything for iOS.

Am I missing something?

Thanks,

Gooner87

not sure, I got push notification working with devices and all, but when trying to send from the dashboard nothing is happening. Just the same thing you are getting. And I have only configured for IOS at the moment. Guessing either something is wrong there or there is something not set up properly on our end. Maybe someone has got it working?

Hi borgb,

So do you have notifications working when a player creates a game and challenges another player? 

At the moment I am logging into Corona Cloud, searching for a friend, creating a match and calling

match:addPlayer( userID , userAlert)

I have debug.enabled(true), so on the console it is telling me the match has started and the the player has been added, but I am not receiving any notification.

Could you show me how you do this? I have been trying to follow the instructions for this thread

http://forums.coronalabs.com/topic/34666-corona-cloud-api-multiplayer-match/

But all the links are broken

Thanks,

Gooner87

do you have a listener set up for notifications? so you can do stuff when you get one:

[lua]

 function onNotification( event )

  

  if event.type == “remote” then

   native.showAlert( “message:”, event.alert, { “OK” } )

  end

  

end

Runtime:addEventListener( “notification”, onNotification )

[/lua]

and have you tried not being in the game on the device? not sure about android but for iOS I get this message if Im not inside the app telling me what has happened. If I am inside I have to have the listener take care of things.

Yes, I have the listener setup, I started with the GooglePushNotification sample from the Corona Sdk, so I played around with that first and have it sending a notification, from one device to another, so I know it can handle the notifications

I then started building the Corona Cloud part on top of this code

hmmm… then Im not sure, havent tried to configure corona cloud with android yet so not sure how that would work. If push notifications works for you normally I would guess the only thing left is the cloud setup of push notifications. Hopefully some corona staff will drop by here :slight_smile:

Thanks for your help borgb, yes hopefully a member of staff can help. Can I ask you, does the match:addPlayer() trigger a push notification for you? Are you able to send a notification from the Corona cloud dashboard? 

match.addPlayer does send a push notifications to me, tells the other player someone has added them to the game. or whatever I put in the userAlert :slight_smile:

But I did some testing now with the setup on the cloud page and I had to have it in development/sandbox mode to work for iOS. Guessing that is because I am running it with the test certificate on the device. 

And I dont get any push notifications from the dashboard.

not sure, I got push notification working with devices and all, but when trying to send from the dashboard nothing is happening. Just the same thing you are getting. And I have only configured for IOS at the moment. Guessing either something is wrong there or there is something not set up properly on our end. Maybe someone has got it working?

Hi borgb,

So do you have notifications working when a player creates a game and challenges another player? 

At the moment I am logging into Corona Cloud, searching for a friend, creating a match and calling

match:addPlayer( userID , userAlert)

I have debug.enabled(true), so on the console it is telling me the match has started and the the player has been added, but I am not receiving any notification.

Could you show me how you do this? I have been trying to follow the instructions for this thread

http://forums.coronalabs.com/topic/34666-corona-cloud-api-multiplayer-match/

But all the links are broken

Thanks,

Gooner87

do you have a listener set up for notifications? so you can do stuff when you get one:

[lua]

 function onNotification( event )

  

  if event.type == “remote” then

   native.showAlert( “message:”, event.alert, { “OK” } )

  end

  

end

Runtime:addEventListener( “notification”, onNotification )

[/lua]

and have you tried not being in the game on the device? not sure about android but for iOS I get this message if Im not inside the app telling me what has happened. If I am inside I have to have the listener take care of things.

Yes, I have the listener setup, I started with the GooglePushNotification sample from the Corona Sdk, so I played around with that first and have it sending a notification, from one device to another, so I know it can handle the notifications

I then started building the Corona Cloud part on top of this code

hmmm… then Im not sure, havent tried to configure corona cloud with android yet so not sure how that would work. If push notifications works for you normally I would guess the only thing left is the cloud setup of push notifications. Hopefully some corona staff will drop by here :slight_smile:

Thanks for your help borgb, yes hopefully a member of staff can help. Can I ask you, does the match:addPlayer() trigger a push notification for you? Are you able to send a notification from the Corona cloud dashboard? 

match.addPlayer does send a push notifications to me, tells the other player someone has added them to the game. or whatever I put in the userAlert :slight_smile:

But I did some testing now with the setup on the cloud page and I had to have it in development/sandbox mode to work for iOS. Guessing that is because I am running it with the test certificate on the device. 

And I dont get any push notifications from the dashboard.