I am using App42Sample I want send push messages to multiple devices at once.

0 votes

In the App42 sample I have the below code which works fine with my device.But I am not able to send push notification to other devices as gmail ID is hardcoded in my code.Do we need to change just the gmail ID or the project No which Util.registerWithApp42 needs to be changed for each device.

App42API.initialize(
               this,
               "dsfsdff345345gdfgdfgdfgdfgf",
               "fsdfssssssssssssss);
 
App42API.setLoggedInUser(gmail) ;
       Util.registerWithApp42("34534534534543");
asked Feb 11, 2015 in App42 Cloud API-BaaS by ajay.kalkoti (10 points)

1 Answer

0 votes

Hey Ajay, As you have mentioned that Gmail ID is hardcoded in your project. In this case multiple devices are registered on AppHQ for Push Notification with same Gmail ID (userId).

So Whenever you send Push Notification from AppHQ, it will send to that device only and it's difficult for you to filter devices as all have same userId. It's good practice to use unique userId.

Let me know if further query is concern.

Thanks

Vishnu

answered Feb 11, 2015 by Vishnu Garg (674 points)
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
...