probable close #104

live-activity-data
Andreas Shimokawa 2015-08-31 17:31:32 +02:00
parent 95b65265b4
commit face7cceea
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,12 @@ public class PebbleReceiver extends BroadcastReceiver {
LOG.info("non PEBBLE_ALERT message type not supported");
return;
}
if (!intent.hasExtra("notificationData")) {
LOG.info("missing notificationData extra");
return;
}
String notificationData = intent.getStringExtra("notificationData");
try {
JSONArray notificationJSON = new JSONArray(notificationData);