Use AppMessage in watchface

Hello,

I tried writing my first watchface for pebble time 2. I want it to communicate with a companion app. When I run it in the emulator i can send AppMessages to the watchface like so:

pebble send-app-message --emulator emery --app-uuid 8047c3ec-ee69-418d-b0f1-3da7371aee63 --uint 10000=2

This works fine. But when i try this from the android companion app I get an error:
FailedDifferentAppOpen

I don’t think that it’s a problem on the side of the android app because I also installed a watchapp for test purpose on the watch that receives the messages from the same app just fine.

So are watchfaces not expected to work with AppMessage? If so, why does it work on the emulator?

Thanks!

Watchface definitely support appmessages. What happens if you send it from PKJS instead?

Thanks for your answer.

I already tried PKJS and it worked. That made me choose another route in my code that I like better anyway.

But what’s odd: I just checked out the code that didn’t work for both the android app and the watchface and tried it again - works fine now :person_shrugging: . Exactly the same code that I tried to fix for half a day…

I can’t reproduce it any longer.

Thanks!