ionic-team / ionic-team/capacitor-plugins

Get push notification that open the app from cold boot

Open
#1,488 9 comments 0 reactions 0 assignees View on GitHub
platform: ios
Dominant language
Java
Stars
678
Forks
685
Avg merge
4d 22h
Merged PRs (30d)
3

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.