Page 1 of 1

Questions about Push Notifications

Posted: Wed Jul 01, 2015 4:36 am
by Hawk

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


Questions about Push Notifications

Posted: Thu Jul 02, 2015 10:25 am
by Alena Prykhodko

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.


Questions about Push Notifications

Posted: Mon Aug 03, 2015 4:40 am
by Hawk

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).


Questions about Push Notifications

Posted: Wed Aug 05, 2015 1:49 pm
by Serhii Kulibaba

Hello Hawk,

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