Skip to content

OneSignal.Notifications.addClickListener does not fire on push notification tap when app is killed (iOS) #723

Closed
@ObserverMoment

Description

@ObserverMoment

How can we help?

Hi,

Firstly, should it fire when the app boots up when triggered by a push notification click? Or is this listener only triggered when app is open or in background?

If it is not possible to fire this on app load...

How is it possible to deeplink from a push notification into a Flutter app that is completely closed (not open and not in background)?

I am using this package to catch deeplinks as they arrive: https://pub.dev/packages/app_links.

Everything is working as expected when I open a link (either uni link or custom schema format) in all app states (open, background and killed). However, when I tap a push notification the initial link is only present when the app is open or in background, not when closed.

On android I don't seem to have this issue, only on iOS. I am wondering if there is some iOS specific issue with cold starts and push notifications? Or if there is some other way to capture the launch url on app boot that I am missing?

Thanks,

Rich

Code of Conduct

  • I agree to follow this project's Code of Conduct

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