Hawk
Posts: 0
Joined: Mon Aug 04, 2014 11:23 am

Questions about Push Notifications

Hello,

I would like you to help me to understand the following:
1)Is any limit to the number of devices IDs I can past in the query builder with "include" parameter?

Image

I'm pasting them in the following format code["deviceID_1" , "deviceID_2", ... "deviceID_n"]/code

2) I need to register devices along with their user IDs, (eventually I want to send based on user ID, but I will map it to the device ID). My understanding, I cannot rely on the default device registration in this case (where the device id is inserted in to devices collection automatically upon launching the App). Am I correct?
If so, then I will need to register the device using REST service like in this tutorial (https://devcenter.appery.io/documenta...). My question is, assuming the user deleted the App, how I'm going to delete the device ID record from my custom table?
I know it can be done via unregistering the device. But how to trigger that? How to know that the user is deleting the App?

Many thanks for your help

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Questions about Push Notifications

Hello,

1) There is no limit, but better solution is to paste them based on some custom field of channel type.
2) You should add in Devices collection custom field “userId", in app add REST service to update device, when user is logging in you execute it with "userId”.

Thereby, when user deletes app, token will become invalid and system will remove this device record from database in some time.

Hawk
Posts: 0
Joined: Mon Aug 04, 2014 11:23 am

Questions about Push Notifications

Hi Alena,

In response to point number 1. I tried to copy past a string longer than 5248 characters, and Appery displayed empty error message as follows:

Image

Up to that length, no error message is appearing:

Image

Would you please advise what is causing the error message?
I'm using Google Chrome (I tried Firefox and it hangs).

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Questions about Push Notifications

Hello Hawk,

It looks like Appery.io UI bug.
Please send push notification via Servercode or application.

Return to “Issues”