aboutsummaryrefslogtreecommitdiff
path: root/wearable/wear/SynchronizedNotifications/Wearable/src/main/AndroidManifest.xml
diff options
context:
space:
mode:
Diffstat (limited to 'wearable/wear/SynchronizedNotifications/Wearable/src/main/AndroidManifest.xml')
-rw-r--r--wearable/wear/SynchronizedNotifications/Wearable/src/main/AndroidManifest.xml9
1 files changed, 7 insertions, 2 deletions
diff --git a/wearable/wear/SynchronizedNotifications/Wearable/src/main/AndroidManifest.xml b/wearable/wear/SynchronizedNotifications/Wearable/src/main/AndroidManifest.xml
index 5c4d259d..2bc2fd86 100644
--- a/wearable/wear/SynchronizedNotifications/Wearable/src/main/AndroidManifest.xml
+++ b/wearable/wear/SynchronizedNotifications/Wearable/src/main/AndroidManifest.xml
@@ -41,8 +41,13 @@
</activity>
<service android:name=".NotificationUpdateService">
<intent-filter>
- <action
- android:name="com.google.android.gms.wearable.BIND_LISTENER" />
+ <!-- listeners receive events that match the action and data filters -->
+ <action android:name="com.google.android.gms.wearable.DATA_CHANGED" />
+
+ <!-- filters by Constants.BOTH_PATH ('/both') and
+ Constants.WATCH_ONLY_PATH ('/watch-only') -->
+ <data android:scheme="wear" android:host="*" android:pathPrefix="/both"/>
+ <data android:scheme="wear" android:host="*" android:pathPrefix="/watch-only"/>;
</intent-filter>
<intent-filter>
<action