WearableListenerService, onDataChanged() is not called

前端 未结 7 940
野趣味
野趣味 2020-12-11 01:05

I followed the tutorial to invoke a Wearable activity from phone, posted here How to send notification from handheld to wear to open Activity on wear device. However, I grab

7条回答
  •  执念已碎
    2020-12-11 01:22

    For me, the culprit was this line in the service declaration:

    android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
    

    I'm not exactly sure what about this line causes the service not to receive events, but when it was removed it started functioning properly.

提交回复
热议问题