Unique User ID for cross-platform Push Notification

0 votes

Hello, I'm trying to integrate Push Notification for my game. The doc says I need to provide User ID to App42's server and I've done the step without problem with userId = "testid".

But what value should I use to identify uniqe ID? What I need to do is to notify player's every device. The situation is, the player log in to facebook (API) on iphone, then he register the push notification. Then he login to the same facebook account to iPad and register to push notification too. What User ID should this player use so that he receive push notification on both iPhone and iPad (Android too). Is it allowed to register the same User ID(maybe facebook id or email) with different Device ID (from Apple's/Google's Push Service) so that my own server can send message to one User ID, and the App42 server will send the message to every device?

Thanks

Karnpot

asked Feb 24, 2014 in App42 Cloud API-BaaS by kanpot2002 (10 points)
edited Feb 24, 2014 by kanpot2002

1 Answer

0 votes
You can use facebook user id as unique identifier in this case. Since one use can have multiple device registered and on every device he will get different token, this will work in your scenario.
answered Feb 24, 2014 by ajay123 (899 points)
Thanks! I will try.
Sorry but I think it don't work
The error message is here

03-03 21:01:46.822: I/Unity(14192): EDITEOR---com.shephertz.app42.paas.sdk.csharp.App42Exception: {"httpErrorCode":"400", "appErrorCode":"1700", "message":"BAD REQUEST", "details":"User by the name '626195480' already registered with the device 'APA91bFkg2Cdwe8VeAVsgYjZQSb3kuZ-FBShhoB_vsRi_1wqcG_NUKclYQx36PrQTq5sPyH2NpGTfH4kLSRP2mTFQOIJRFYZs6ZM24Q8aRzuN2QMWODz-u8C24qIZ8PumIm84zGgeyMReUzMRCF6MNO7e5UQlQtdUw'"}
 
Looks like you can't register the same id more than 1 time.
If you have any suggestion please help.
If App42's push service doesn't allow this, maybe I need to move to some new service like pushwoosh

Thanks
Karnpot
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...