From a63e750487e46202fd99cdb3b613c0256c5f07e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Wed, 17 Aug 2016 12:03:41 +0200 Subject: [PATCH] Re-add ticker --- src/android/ForegroundService.java | 1 + www/background-mode.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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' };