iterable-android-sdk icon indicating copy to clipboard operation
iterable-android-sdk copied to clipboard

Custom Action Handler not invoked for specific flows

Open FDavidse20 opened this issue 2 years ago • 4 comments

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

FDavidse20 avatar Sep 15 '22 12:09 FDavidse20

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...

Ayyanchira avatar Sep 15 '22 16:09 Ayyanchira

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?

FDavidse20 avatar Oct 06 '22 10:10 FDavidse20

Hi @Ayyanchira , could you please address this issue?

dmitry-funda avatar Mar 23 '23 14:03 dmitry-funda

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

tnortman-jabra avatar Apr 14 '23 15:04 tnortman-jabra