Commit cf88ef41 authored by Bob Easterday's avatar Bob Easterday
Browse files

Fix some assumptions about payload content.

parent 0b4aa1dd
Loading
Loading
Loading
Loading
+1 −1
Changes for plugin.xml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
    xmlns:android="http://schemas.android.com/apk/res/android"
    id="com.phonegap.plugins.PushPlugin"
    version="2.1.0">
    version="2.1.1">

    <name>PushPlugin</name>
	<author>Bob Easterday</author>
+1 −1
Changes for src/android/com/plugin/gcm/GCMIntentService.java: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ public class GCMIntentService extends GCMBaseIntentService {
				extras.putBoolean("foreground", false);

                // Send a notification if there is a message
                if (extras.getString("message").length() != 0) {
                if (extras.getString("message") != null && extras.getString("message").length() != 0) {
                    createNotification(context, extras);
                }
            }