We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d644083 commit 9c84fa5Copy full SHA for 9c84fa5
example/android_source/src/org/kviktor/example/ExampleActivity.java
@@ -69,6 +69,12 @@ public static String sendNotification(String data) {
69
m_notificationManager.notify(1, notification);
70
71
Log.i(TAG, "sendNotification finished");
72
- return "{\"json_key\":5}";
+
73
+ try {
74
+ return new JSONObject().put("success", true).toString();
75
+ } catch(JSONException e) {
76
+ // should really not happen
77
+ return "{}";
78
+ }
79
}
80
0 commit comments