mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-14 19:44:53 +00:00
Re-add ticker
This commit is contained in:
parent
ef779d8f32
commit
a63e750487
@ -153,6 +153,7 @@ public class ForegroundService extends Service {
|
||||
Notification.Builder notification = new Notification.Builder(context)
|
||||
.setContentTitle(settings.optString("title", ""))
|
||||
.setContentText(settings.optString("text", ""))
|
||||
.setTicker(settings.optString("ticker", ""))
|
||||
.setOngoing(true)
|
||||
.setSmallIcon(getIconResId());
|
||||
|
||||
|
@ -55,9 +55,10 @@ exports._isActive = false;
|
||||
exports._defaults = {
|
||||
title: 'App is running in background',
|
||||
text: 'Doing heavy tasks.',
|
||||
ticker: 'Running in background',
|
||||
resume: true,
|
||||
silent: false,
|
||||
icon: "icon"
|
||||
icon: 'icon'
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user