only forward incoming chat messages to Pebble App and Gadgetbridge

This commit is contained in:
Andreas Shimokawa 2015-05-08 21:36:20 +02:00
parent d9e5035c08
commit 9e78e3e09d
1 changed files with 5 additions and 1 deletions

View File

@ -85,7 +85,11 @@ public class NotificationService {
i.putExtra("messageType", "PEBBLE_ALERT");
i.putExtra("sender", "Conversations"); /* XXX: Shouldn't be hardcoded, e.g., AbstractGenerator.APP_NAME); */
i.putExtra("notificationData", notificationData);
// notify Pebble App
i.setPackage("com.getpebble.android");
mXmppConnectionService.sendBroadcast(i);
// notify Gadgetbridge
i.setPackage("nodomain.freeyourgadget.gadgetbridge");
mXmppConnectionService.sendBroadcast(i);
}