Merge pull request #1180 from ashimokawa/development
only forward incoming chat messages to Pebble App and Gadgetbridge (#1179)
This commit is contained in:
commit
c82cdb36f6
|
@ -85,7 +85,11 @@ public class NotificationService {
|
||||||
i.putExtra("messageType", "PEBBLE_ALERT");
|
i.putExtra("messageType", "PEBBLE_ALERT");
|
||||||
i.putExtra("sender", "Conversations"); /* XXX: Shouldn't be hardcoded, e.g., AbstractGenerator.APP_NAME); */
|
i.putExtra("sender", "Conversations"); /* XXX: Shouldn't be hardcoded, e.g., AbstractGenerator.APP_NAME); */
|
||||||
i.putExtra("notificationData", notificationData);
|
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);
|
mXmppConnectionService.sendBroadcast(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue