Thomas5731102
Posts: 0
Joined: Fri Mar 07, 2014 10:18 am

Troubles using "Push notification" event on start screen

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

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Troubles using "Push notification" event on start screen

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?

Kevin Preston
Posts: 0
Joined: Wed Oct 09, 2013 12:18 pm

Troubles using "Push notification" event on start screen

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

Return to “Issues”