Skip to content

feat: EventListener on Cold Boot #2037

@kevinsimper

Description

@kevinsimper

Feature Request

Description

There is currently multiple events on resume/pause - appStateChange

but there is no event if the app just starts up.

It would be great if there was a event listener when it is detected that the app is not started from the background, but instead from cold boot.

Platform(s)

ios/android

Preferred Solution

add a event listener for "boot"

add a event to appStateChange with boot

Alternatives

Additional Context

I searched the issues and there is not much information about how to handle cold boot best.

There is a forum topic on the matter, but does not contain actionable information
https://forum.ionicframework.com/t/push-notification-how-to-reliably-detect-when-you-tap-the-notification-vs-tap-the-app-icon/117724/2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions