Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open app automatically when killed/closed with notification-data fcm #591

Closed
shomid opened this issue Feb 23, 2021 · 2 comments
Closed

open app automatically when killed/closed with notification-data fcm #591

shomid opened this issue Feb 23, 2021 · 2 comments

Comments

@shomid
Copy link

shomid commented Feb 23, 2021

I want to open app(ionic5) is killed/closed with notification-data.

json for api fcm-google is below:

{
"to": "ca2KNRcxSz2waPUzY1SogM:APA91bH1hopX7x55urxeubs4Y0UQvYAoQtMaciLymjSxN0ht9AshWwXo4fkXpKmASHjyCG2Q8B8pw0X_0PtgfKByWVRPV2ARVQ85OWK8q06XZkYxAeLhIZvpISab9CemfU47CW5IagVE",
"data": {
    "force-start": "1",
    "forceStart":"1",
    "no-cache": "1",
    "body": "Test",
    "title": "Test",
    "sound": "default",
    "icon": "default",
    "badge": 56
},
"priority": "high"
}

I use forceStart in json but not work.

where is the problem from ?

@shomid
Copy link
Author

shomid commented Feb 26, 2021

No one to guide?

@dpa99c
Copy link
Owner

dpa99c commented Mar 19, 2021

There is not sufficient information in your issue to diagnose any specific problem - you didn't even say which platform this relates to (iOS or Android).
However, based on your reference to force-start I presume you are referring to what is not a standard Firebase feature but is specific to phonegap-plugin-push which uses it to trigger an intent if the app is not already running on Android.

This plugin does not yet contain such equivalent functionality, however this is an open issue (#235) to integrate the AutoStarter library for Android to resolve this.

@dpa99c dpa99c closed this as completed Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants