pebble-watchpebble-sdkpebble-js

How do Pebble JS watchapp receive message from Android APP


I wanna make a wathcapp with Pebble.js but I found that Pebble.js can only send a message. There is no method can I receive a message from my Android APP?


Solution

  • It is important to understand that Pebble.js apps are already running on the phone. You cannot use AppMessage to communicate with an Android app.

    You can however use a Web server inside your app and connect to it from the JavaScript (with ajax() calls or a WebSocket).