Not seeing custom data in notification

Comments

4 comments

  • Avatar
    Max Konev

    How do you send your custom data? Is it JSON based? What is your username in the control panel?

    When iOS notification is clicked your app starts and of course it could receive the payload of the notification.

  • Avatar
    Kestonh

    The custom data is JSON based- I'm just sending a couple of ids to use in the app {"g":1,"t":88} as an example.

    My username is dpulavarthi.

  • Avatar
    Max Konev

    If you do stringify the whole payload what do you see? ex: navigator.notification.alert(JSON.stringify(event.notification));

  • Avatar
    Kestonh

    Not sure what happened, but once I backed up to outputting event.notification I started seeing the u array in the payload. it seems to be working properly now. Thanks for the quick response.

Please sign in to leave a comment.