Skip to content

Custom Action Handler not invoked for specific flows #470

@FDavidse20

Description

@FDavidse20

We have set up push notifications with Custom Action (for the Open action).
We've implemented the necessary methods and followed the steps from the documentation for iOS and Android.

For iOS it's working flawlessly, (test) push notifications can be received and interacted with.
For Android it is working sort of.
Push notifications can be received and interacted with.

That means that the action handler is invoked when pressing a push notification.
And the performSomeAction() is called.

val config = IterableConfig.Builder() .setAutoPushRegistration(false) .setPushIntegrationName(pushIntegrationName) .setCustomActionHandler { action, _ -> action.type?.let { //do something, open a detail page in the app based on the data send in the action performSomeAction() } true } .build() IterableApi.initialize( application, apiKey, config )

However, there is a very specific flow in which that function is no longer called.

Steps to reproduce:

  • Run app
  • log in (push notifications are enabled, email is set, etc.)
  • receive push notification (doesn't matter if user is interacting with the app, or if the app is in the background)
  • open push notification
  • app opens (if not already opened) and custom action handler is executed and performSomeAction() called
  • hard close the app
  • receive push notification
  • open push notification
  • app opens and custom action handler is executed and performSomeAction() called
  • Everything still going well, as expected, but now:
  • receive push notification
  • open push notification
  • app opens (if not already opened) and custom action handler is NOT executed and performSomeAction() NOT called

in other words, after hard closing the app, the flow will only work perfectly once more, after that something is broken.

I've tried all sorts of things debugging, but frankly haven't got a clue.

I hope you can help me, thank you.
Filip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions