Page 1 of 1

How to add push notification to top of the screen!

Posted: Sun Aug 23, 2015 3:38 am
by A.W.H.

Hello, I want to add functionality that does this:

When the user gets a push notification within the app, it appears at the top of the screen, the same way as when they receive a push notification when the app is not open.

How do I change the location of the alert banner?

Thanks!


How to add push notification to top of the screen!

Posted: Sun Aug 23, 2015 8:05 am
by Serhii Kulibaba

Hello,

You can write any your custom logic on "Push notification" event. E.g. open dialog and show a push message there.
You can read a push message on "Push notification" event from the variable data.aps.alert