Commit 9a745a64 authored by madebycm's avatar madebycm
Browse files

Added getString method to setContentTitle and setTicker

ContentTitle and Ticker can now be set from the GCM server via the
"title" field in the "data" parameter (appName is no longer hard coded).
parent 91863c2f
Loading
Loading
Loading
Loading
+2 −2
Changes for src/android/com/plugin/gcm/GCMIntentService.java: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -92,8 +92,8 @@ public class GCMIntentService extends GCMBaseIntentService {
				.setDefaults(Notification.DEFAULT_ALL)
				.setSmallIcon(context.getApplicationInfo().icon)
				.setWhen(System.currentTimeMillis())
				.setContentTitle(appName)
				.setTicker(appName)
				.setContentTitle(getString("title"))
				.setTicker(getString("title"))
				.setContentIntent(contentIntent);

		String message = extras.getString("message");