what's the difference between onPushReceived and onPushAccepted?

Answered

Comments

4 comments

  • Avatar
    Max Kuzakov

    Hello,

    onPushReceived method tells the delegate that the push manager has received a remote notification.

    onPushAccepted method tells the delegate that the user has pressed OK on the push notification.

    You may refer to our SDK API Docs for the detailed information.

    Which particular data that you want to display?

  • Avatar
    lefty

    I want to display the data in the notification. So, when user presses ok it's when the app isn't open? Is onPushReceived called only when app is open and onPushAccepted only when app isn't open? Or is onPushReceived called in both circumstances?

  • Avatar
    Max Kuzakov

    Hello,

    Our SDK developers have informed me that the behaviour of these methods differ in foreground only. Therefore, it will be sufficient to use onPushAccepted method.

    In case you are using both methods, only onPushReceived will be called.

  • Avatar
    lefty

    Ok, thanks. That clears things up

Please sign in to leave a comment.