I have an app that only supports SmartWatch widget (return 1 for getRequiredWidgetApiVersion()) for v1. In v2, I added code to support control and also changed the code to return 1 for getRequiredControlApiVersion().
After v2 installed, I found that I cannot find my app from LiveManager > SmartWatch > Sort applications list.
The problem can be manually fixed by re-installing my app or tapping the "Clear data" for SmartWatch app, but it's not a good solution.
You can easily reproduce the bug by modifying the code of SampleWidgetExtension sample code.
- install SampleWidgetExtension to phone
- LiveManager > SmartWatch > Sort application <= no Sample widget, it's correct.
- change SampleRegistrationInformation.java, return 1 for getRequiredControlApiVersion() and add isDisplaySizeSupported(...) function and return true for it
- install SampleWidgetExtension to phone
- LiveManager > SmartWatch > Sort application <= still no Sample widget, it's incorrect.
- reinstall SampleWidgetExtension
- LiveManager > SmartWatch > Sort application <= you can see Sample widget from the list
It seems that it's the bug of SmartWatch (v1.2.33) app.