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

Bug: Push notification callback on Android not triggerd from cold start #239

Closed
malua opened this issue May 2, 2024 · 4 comments · Fixed by #243 or danielsogl/awesome-cordova-plugins#4814

Comments

@malua
Copy link

malua commented May 2, 2024

Hey there,

We just discovered that push notifications in on Android when the App is completely closed won't trigger the onPushNotification callback.

This definitely worked in the past and it still works if the App is in the background. But when the app is killed nothing is triggered.

I found this undocumented event onCleverTapPushNotificationTappedWithCustomExtras from an old PR a5f4921, which is connected to the same (but old) issue #84.
But it is not triggered as well.

We haven't changed anything in our setup, still using Capacitor 5 with which it definitely worked.
We call ActivityLifecycleCallback.register(this); in the CustomApplicationClass.

@Override
  public void onCreate() {
    //Clevertap
    ActivityLifecycleCallback.register(this);

    super.onCreate();
}

Do you have any idea what could be the problem?

Thanks and all the best,
Lukas

@malua
Copy link
Author

malua commented May 17, 2024

Ok I tested with older versions of the clevertap-cordova plugin:

The last version which works is 2.6.2. Starting from 2.7.0 it does not work anymore. So I am pretty sure this is a bug in either the Android SDK or the clevertap-cordova SDK.

@Anush-Shand
Copy link
Contributor

@malua This issue wasn’t reproducible on the sample app agnostic of the version. Can the reproduction steps be shared?

@malua
Copy link
Author

malua commented Jul 15, 2024

I replied in the support ticket.

@malua
Copy link
Author

malua commented Aug 13, 2024

Thank you so much! <3
I can confirm that it works for us.

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