Automatic population of sensor capability of wear os device


I was working with the DataLayer for Wear OS connections with an android app, when I noticed that the Listener would not fire when listening for a custom defined capability. Interestingly, the error was a 4006 capability duplicate, the cap. "accelerometer" already existed, though nowhere else added with addLocalCapability, and not in res/wear.xml either. After changing the name, it worked. Does Wear OS auto-populate capabilities for sensors that was by chance identically named with the one I defined?

0
Jun 15 at 7:04 PM
User AvatarLangtec
#android#kotlin#google-datalayer

No answer found for this question yet.