Page 1 of 1

Troubles using "Push notification" event on start screen

Posted: Fri Mar 07, 2014 10:18 am
by Thomas5731102

Hello,

I've managed to create an app with GCM notifications working.
Now I would like to manage the content of the notification before it displays in the notification bar.

Therefore, I added a "Push notification" event on the start screen, but it seems to not be doing anything.

I've added a javascript action as simple as follow:

alert("Push notification received");

Then I send a notification, my device receives it (I can see it in the notification bar), but no alert shows up on the start screen page. Even tought I'm currently using the application on the main page.

Any clue ?

My idea in the end is to be able to:

  • catch the notification

  • extract notification message (containing json)

  • parse the json message in order to extract data

  • query a remote service to fetch the appropriate message information

  • build a message and display it in the notification bar

    Maybe it's too ambitious, I don't know. Please tell me :)

    Thank you.
    Thomas


Troubles using "Push notification" event on start screen

Posted: Fri Mar 07, 2014 11:35 am
by Nikita

Hello,

Please provide the following information:
OS version and device's model on which you test your app
And how do you send a push notification?


Troubles using "Push notification" event on start screen

Posted: Fri Mar 07, 2014 12:20 pm
by Kevin Preston

Thomas,
Have a look at this https://getsatisfaction.com/apperyio/...

there seems to be a problem with V2.0 libraries. I would be interested to know if you do manage to 'catch the notification' and modify it before it is displayed in the notification bar as I understood this was not possible.
Kevin


Troubles using "Push notification" event on start screen

Posted: Fri Mar 07, 2014 6:13 pm
by Maryna Brodina

Hello!
Please take a look here https://getsatisfaction.com/apperyio/...