Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用 Pebble.js 制作一个 wathcapp,但我发现 Pebble.js 只能发送消息。有没有什么方法可以从我的 Android APP 接收消息?
重要的是要了解 Pebble.js 应用程序已经在手机上运行。您不能使用 AppMessage 与 Android 应用程序进行通信。
但是,您可以在应用程序中使用 Web 服务器并从 JavaScript 连接到它(通过ajax()调用或 WebSocket)。
ajax()