I tried to write KDE Connect client for Garmin, but I can't make registerForPhoneAppMessages to work
Code of the app is here:
MonkeyC
https://gitlab.com/thecyberd3m0n/kdeconnect-android-garmin/-/blob/main/monkeyc/KDEConnectIQ/source/KDEConnectIQApp.mc
Android service:
https://gitlab.com/thecyberd3m0n/kdeconnect-android-garmin/-/blob/main/android/src/org/kde/kdeconnect/BackgroundService.java
Result:
After trying different data, debugging and multiple failures I found another Open Source app
https://github.com/andan67/wormnav
I've compiled both apps, added some logs and problem persists - onPhone never gets logged into watch, callback is never called (onPhone on watch and onMessageStatus on companion app). I can see only registerForPhoneAppMessages. Also no exceptions, nothing.
I've forked wormnav with logs to demonstrate the problem:
https://github.com/thecyberd3m0n/wormnav/blob/master/README.md
Best regards.