diff --git a/src/android/ForegroundService.java b/src/android/ForegroundService.java index 3219b0e..be85163 100644 --- a/src/android/ForegroundService.java +++ b/src/android/ForegroundService.java @@ -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()); diff --git a/www/background-mode.js b/www/background-mode.js index 6205e4c..0028913 100644 --- a/www/background-mode.js +++ b/www/background-mode.js @@ -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' };