-
Notifications
You must be signed in to change notification settings - Fork 1.9k
app closed launch function?? #333
Comments
To launch it where? If the app is closed you don't have access to the webview. Could you elaborate? |
Hello, |
If the app is not running (the plugin's webview is null) it caches the notification payload data see here |
Nicolás, thanks for your quick response. |
I think I see what you mean, but I don't know if that is possible check this link about content-available flag. |
From this changes, I see that the behaviour with "content-available: 1" is the same as now with no "title" and "body" keys. Unfortunately, it does not instantly launch the application if it is closed - the notification gets delivered to JavaScript only on the next app run. |
Yes exactly, I don't know if it is possible to launch it without user interaction. |
Well, Skype somehow does that unless force closed. Now I'm trying to figure out how. |
True, keep us updated with your findings ;) |
Works! :) |
Please do so @EternallLight, then some work will need to be done on the other platforms but it is a good start to begin with! Thanks. |
I've made a fork and committed my changes there. Not sure what branch I have to make a pull request for. Since it's done only for one platform, it might be a good idea to create a separate branch for this, wait until another platforms will be ready, and merge it to the next release branch. |
@EternallLight please just submit a PR for it. Sometimes what is possible for one platform is not possible for another, no sense depriving folks of the new functionality. |
@macdonst I've just submited a pull request, please check it out. |
This thread has been automatically locked. |
hello I wanted to know if it was possible to launch a function of timing and make it run even if the app is closed ?
there is a plugin as it does wotzapp that remains always open to speak!!
thank you
The text was updated successfully, but these errors were encountered: