Skip to content

Get push notification that open the app from cold boot #1488

@kevinsimper

Description

@kevinsimper

Feature Request

Plugin

push notification

Description

When the app launches from a push notification from cold, there is no way of reaching that message in capacitorjs

Platform(s)

ios

Preferred Solution

It looks like it is possible to reach with

UIApplicationLaunchOptionsRemoteNotificationKey

https://developer.apple.com/documentation/uikit/uiapplicationlaunchoptionsremotenotificationkey

Alternatives

Additional Context

It make sense that the addEventListener for pushNotificationReceived and pushNotificationActionPerformed can be called if they have not been added.

But also getDeliveredNotifications() is empty if the user clicked the push notification that then launched the app

None of the getState() or getLaunchUrl() indicates the push notification that triggered the app start either.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions