Page 3 of 6

read push device token

Posted: Thu Nov 28, 2013 1:09 pm
by Maryna Brodina

Hello! Could you clarify what exactly have you tried and what doesn't work?


read push device token

Posted: Thu Nov 28, 2013 3:40 pm
by laura6372139

I have tried this:

https://getsatisfaction.com/apperyio/...

But I don't know to save all push messages with localStorage.

thaks!


read push device token

Posted: Thu Nov 28, 2013 4:25 pm
by Maryna Brodina

"On Push Notification event add Run JavaScript action" in this code save message to localStorage. In localStorage you can save strings only. So if you want to store data structure (arrays for example) you can use JSON.stringify to save to localStorage and JSON.parse to read from localStorage . Here is an example of reading from localStorage https://getsatisfaction.com/apperyio/...


read push device token

Posted: Thu Nov 28, 2013 5:49 pm
by laura6372139

Hello Maryna:

what javascritp i put on push notifications event?

thanks!
Laura


read push device token

Posted: Thu Nov 28, 2013 6:04 pm
by Maryna Brodina

Sorry, we don't have sample JS code. We can guide you, but custom JS is outside the scope of our support. Please decide in what format you need to save data and write code to save data into localStorage.


read push device token

Posted: Thu Nov 28, 2013 6:54 pm
by laura6372139

Hi Maryna!

I want that when notifications, I can read it on a page.

It is possible?

If you can help me.

Thanks!


read push device token

Posted: Thu Nov 28, 2013 7:01 pm
by Maryna Brodina

Yes, it's possible. Please see my reply above.


read push device token

Posted: Fri Nov 29, 2013 9:16 am
by laura6372139

ok! thanks!

I go to try!!!


read push device token

Posted: Mon Dec 02, 2013 10:35 am
by laura6372139

Hi Marina!

Hello:

you could tell me how to make my JSON to save push notifications?

I have seen the link but not be very well where I have to do.

Do I need to create a collection?

There is a manual that can follow.

I'm sorry, I'm a little lost.

Thanks!


read push device token

Posted: Mon Dec 02, 2013 12:20 pm
by Maryna Brodina

Hello! You don't need to create any collection. You have to work with localStorage.