Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Action Handler not invoked for specific flows #470

Open
FDavidse20 opened this issue Sep 15, 2022 · 4 comments
Open

Custom Action Handler not invoked for specific flows #470

FDavidse20 opened this issue Sep 15, 2022 · 4 comments

Comments

@FDavidse20
Copy link

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

@Ayyanchira
Copy link
Member

Thanks for reporting this with detailed steps to repro @FDavidse20. I will check if I can reproduce this and will get back on this one...

@FDavidse20
Copy link
Author

Thanks for reporting this with detailed steps to repro @FDavidse20. I will check if I can reproduce this and will get back on this one...

Hi @Ayyanchira, any updates on this issue?

@dmitry-funda
Copy link

Hi @Ayyanchira , could you please address this issue?

@tnortman-jabra
Copy link
Contributor

Just commenting here to say I have the same issue +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants