mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-15 03:54:54 +00:00
Merge pull request #214 from Woutwo/master
Move notification to the min-priority list on android
This commit is contained in:
commit
0394315f75
@ -155,6 +155,7 @@ public class ForegroundService extends Service {
|
|||||||
.setContentText(text)
|
.setContentText(text)
|
||||||
.setTicker(settings.optString("ticker", ""))
|
.setTicker(settings.optString("ticker", ""))
|
||||||
.setOngoing(true)
|
.setOngoing(true)
|
||||||
|
.setPriority(Notification.PRIORITY_MIN)
|
||||||
.setSmallIcon(getIconResId());
|
.setSmallIcon(getIconResId());
|
||||||
|
|
||||||
if (bigText || text.contains("\n")) {
|
if (bigText || text.contains("\n")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user