Page 6 of 6

read push device token

Posted: Tue Apr 29, 2014 6:19 pm
by irfan

i followed Push notification in action video tutorial for notification which i successfully created
http://docs.appery.io/tutorials/sendi...

now i was searching how to save push message n local storage within device for user to view once he open notification inside app so i followed this post and i follow the post up replied by

Hi Laura,

1) On page 'Notificaciones' remove service 'sendpush'
2) Create new REST service 'savedMessagesSrv' with the following settings:

.....

But after i did wqhat she told i couldn't achieved reuslt i wanted


read push device token

Posted: Tue Apr 29, 2014 8:12 pm
by Maryna Brodina

Could you clarify if you want to save messages in localStorage or DB?


read push device token

Posted: Tue Apr 29, 2014 8:25 pm
by irfan

i wana show the list of received messages by user on app screen lets say i call this pay received message history??

every latest message shows on the top of list

what u think i should use

One more question just poped up? is how can i save the send push device id and reply using that id to only that specific devicuser

Scenarios

A --- B
Send to
B----A
How???


read push device token

Posted: Wed Apr 30, 2014 2:19 am
by Alena Prykhodko

Hi Irfan,

  1. With "push notification" event you can recieve only last notification if app is closed. If app is opened you can recieve all push messages.

    That's why building a list is not a good idea.

    But you can use push notifications as a trigger, an event which invoke the service.

    This service can recieve all dated information from server side.

  2. You can not pass through the push additional data. Only text.

    So it's a bad idea to use push as chat. Commonly push are used to send trigger events. After it has been recieved all futher information should be recieved from server side.

    So if you want to make this chat, you should implement it without push. And use push only to notify user about new message and if user opened app - show him this message (or message list).


read push device token

Posted: Wed Apr 30, 2014 9:42 am
by irfan

how can i pick an specific device id from database and send push notification to only the one i picked and its all doing from an app not from server console only app


read push device token

Posted: Wed Apr 30, 2014 9:53 am
by Kateryna Grynko