Register device for push notifications through GCM

Hi Clef,

At the moment we haven’t added the ability to use Push without an account (i.e. email), so as of now this is still required.

But as I mentioned else where we are looking at making this optional.

I believe we have a guide for Push Notifications that is getting prepped for release.

The Corona Cloud part is actually very small, the main bulk of the work is actually with your Push provider Apple and GCM to get the certificates and profiles created.

On the CC side, its only a matter of:

  • Enabling the service on the Corona Cloud Portal
  • Uploading your certificates
  • Register the device with Corona Cloud in your client code with https://docs.coronalabs.com/api_web/api/pushNotification/registerDevice.html or with function cloudCore.registerDevice ( deviceToken ) using framework-cloud lua library.
  • You can use the Portal to send notifications, or it is handled automatically for you for example in Multiplayer

Thanks

-Mohamed

Hi ,

 we have completed the first two steps described above. In 3rd step you mentioned about device-registration…Can you please provide more information on this (in terms of how etc.)

Just to be sure - we are trying on iOS and not Android.

rgds

Clef…

cloudCore.registerDevice ( deviceToken )  What is the deviceToken? 

To confirm, is it a requirement that every email address registered by/as a user needs to be verified?  We are looking at using just the push system currently (same as the op), and do not want to have to create a user login UI.  However, if we create fake emails as suggested in this thread, and every email address has to be verified we would never be able to use the system.  We could not possibly open every email account created, then each verfication email, followed by clicking the verification link for every user we have.  Thank you in advance for any clarification provided.

hi Mohamed,

Is this discussion conclusive? Is there any changes that enables Push Notificcation on iOS device without e-mailI IDs?

Can you please share the latest info on getting Push Notification to work?

rgds

Clef

Hi Clef,

At the moment we haven’t added the ability to use Push without an account (i.e. email), so as of now this is still required.

But as I mentioned else where we are looking at making this optional.

I believe we have a guide for Push Notifications that is getting prepped for release.

The Corona Cloud part is actually very small, the main bulk of the work is actually with your Push provider Apple and GCM to get the certificates and profiles created.

On the CC side, its only a matter of:

  • Enabling the service on the Corona Cloud Portal
  • Uploading your certificates
  • Register the device with Corona Cloud in your client code with https://docs.coronalabs.com/api_web/api/pushNotification/registerDevice.html or with function cloudCore.registerDevice ( deviceToken ) using framework-cloud lua library.
  • You can use the Portal to send notifications, or it is handled automatically for you for example in Multiplayer

Thanks

-Mohamed

Hi ,

 we have completed the first two steps described above. In 3rd step you mentioned about device-registration…Can you please provide more information on this (in terms of how etc.)

Just to be sure - we are trying on iOS and not Android.

rgds

Clef…

Wow I have been away from this thread for a while :slight_smile:

Can I just register all devices that run my app to only ONE email and use that email to get the “auth_token” and then simply use the typical device_id and platform values if I do a simple curl request? Does each “user” have to have a unique email even though we do not use scores, multiplayer or anything except push notifications?

I was wondering about the same thing. I hope one of the staff has an answer for us 

@mustafamsy I just tried this with a friend and I can confirm that using one Corona Cloud account on 2 devices does work properly with push notifications. I am just wondering if this will scale fine to thousands of users under one account. Can any one from Corona Staff give us an answer to this?

Bump to my last question.

From my experience you cannot have multiple email addresses per one device registration.  It sounds like from your testing that you can have multiple devices per email address, which should be allowed, but I would not feel comfortable putting 10,000 on one email address. 

It’s easy enough to hide the email/login process by creating a gmail account for your app, then use email addresses like:

yourappname+somerandomvalueforuser@gmail.com and keep it 1:1

This is true Rob. I’ve seen this posted many times “Somename” + appname @gmail.com or something similar. How is this actually formatted? Say I have email “myapp@gmail.com”. How do i register the user? Is it with “someuser+myapp@gmail.com” or is the format different? Also do I need to do something in Gmail settings to enable this?

myapp+someuser@gmail.com

cloudCore.registerDevice ( deviceToken )  What is the deviceToken? 

To confirm, is it a requirement that every email address registered by/as a user needs to be verified?  We are looking at using just the push system currently (same as the op), and do not want to have to create a user login UI.  However, if we create fake emails as suggested in this thread, and every email address has to be verified we would never be able to use the system.  We could not possibly open every email account created, then each verfication email, followed by clicking the verification link for every user we have.  Thank you in advance for any clarification provided.

Wow I have been away from this thread for a while :slight_smile:

Can I just register all devices that run my app to only ONE email and use that email to get the “auth_token” and then simply use the typical device_id and platform values if I do a simple curl request? Does each “user” have to have a unique email even though we do not use scores, multiplayer or anything except push notifications?

I was wondering about the same thing. I hope one of the staff has an answer for us 

@mustafamsy I just tried this with a friend and I can confirm that using one Corona Cloud account on 2 devices does work properly with push notifications. I am just wondering if this will scale fine to thousands of users under one account. Can any one from Corona Staff give us an answer to this?

Bump to my last question.