Max Stolbinsky
Posts: 0
Joined: Fri Aug 23, 2013 9:09 pm

Push notification handler in the app.

Hi! I need to add the custom handler for push notifications inside the app. This handler has to read custom field of notification and save it in local storage.
As far as I understood I need to use event 'Push notification' from the main app screen. But it seems this way is not working.
Could you advice how to get it work? thanks!

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Push notification handler in the app.

Hi,

[quote:]
This handler has to read custom field of notification and save it in local storage.
[/quote]
Please clarify what exactly field do you want to read? Try to use "Push registration success" event.

Max Stolbinsky
Posts: 0
Joined: Fri Aug 23, 2013 9:09 pm

Push notification handler in the app.

No, 'Push registration success' is called when push plugin is initialized. I need to handle case when the app received push notification.

Example: app is getting push notification with ID of updated page. We save this id and when user clicks on popup and app opens we check this stored id and open exactly this updated page.

Do you see what i mean?

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

Push notification handler in the app.

Hello! You receive push message in app on "Push registration success" event. The message itself is in data.aps.alert. Add this event on main app page, in this event check what data you get and decide what you need to do next depending on this data (navigate to the page you need).

Return to “Issues”