Skip to content

@capacitor/push-notifications bring app to fron on message receive #738

Open
@donmb1

Description

@donmb1

Feature Request

Plugin

@capacitor/push-notifications

Description

With FCM and native code it is somehow possible to bring an app to front when it receives a message. This makes sense to include it into @capacitor/push-notifications plugin as a method which can get fired on pushNotificationReceived

Platform(s)

Android

Preferred Solution

A method which brings the App to foreground after a push notification was received.

Alternatives

Alternatively this feature also makes sense to be added to @capacitor/app
So its isolated from push notifications and can fire on any event in the app

Additional Context

In our use case the app is in background and the user interacts with another app. Now an alarm comes in and the user has to check the app to see which alarm they received. The app should come to foreground as its an important message which a standard push notification is not suitable for.

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