I'm having an issue where I want to have two diffrent WearableListenerServices listening for messages from a wearable app. Both extending WearableListenerService and configured thusly:
<service android:name="no.xx.xx.wear.WearService">
<intent-filter>
<action android:name="com.google.android.gms.wearable.BIND_LISTENER" />
</intent-filter>
</service>
Messages are sent from the wearable app using Wearable.MessageApi.sendMessage(...)
and listened for using WearableListenerService's onMessageReceived(MessageEvent messageEvent)
method.
But it seems messages are then no longer recieved by the when I go from one to two listener services?
So my question is this: Is there a limitation as to how many services can listen for messages over gms in a single companion-wearable app combination?
You can only have one WearableListenerService
. Android Wear doesn't support having more than one.