Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

read push device token

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

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

read push device token

I have tried this:

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

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

thaks!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

read push device token

"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/...

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

read push device token

Hello Maryna:

what javascritp i put on push notifications event?

thanks!
Laura

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

read push device token

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.

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

read push device token

Hi Maryna!

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

It is possible?

If you can help me.

Thanks!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

read push device token

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

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

read push device token

ok! thanks!

I go to try!!!

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

read push device token

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!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

read push device token

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

Return to “Issues”