Skip to content

[iOS] onNotification not triggered when app was closed and come to foreground #12

@avencat

Description

@avencat

Hi,
I have an issue on iOS, indeed, the onNotification callback is not called when the app is launched and it was not on background or anything, just cold start with a click on a notification.

For information, I do have PushNotification.appStart() on my root componentDidMount method. And this is working when the app is in background and I click on a notification.

[EDIT] It works if I use a

setTimeout(() => {
  PushNotification.appStart();
}, 100);

on my componentDidMount (same for PushNotification.setApplicationIconBadgeNumber(0))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions