Re-add ticker

This commit is contained in:
Sebastián Katzer 2016-08-17 12:03:41 +02:00
parent ef779d8f32
commit a63e750487
2 changed files with 3 additions and 1 deletions

View File

@ -153,6 +153,7 @@ public class ForegroundService extends Service {
Notification.Builder notification = new Notification.Builder(context) Notification.Builder notification = new Notification.Builder(context)
.setContentTitle(settings.optString("title", "")) .setContentTitle(settings.optString("title", ""))
.setContentText(settings.optString("text", "")) .setContentText(settings.optString("text", ""))
.setTicker(settings.optString("ticker", ""))
.setOngoing(true) .setOngoing(true)
.setSmallIcon(getIconResId()); .setSmallIcon(getIconResId());

View File

@ -55,9 +55,10 @@ exports._isActive = false;
exports._defaults = { exports._defaults = {
title: 'App is running in background', title: 'App is running in background',
text: 'Doing heavy tasks.', text: 'Doing heavy tasks.',
ticker: 'Running in background',
resume: true, resume: true,
silent: false, silent: false,
icon: "icon" icon: 'icon'
}; };