Search code examples
javascriptandroidpebble-watchpebble-sdkpebble-js

Pebble JS SDK: how to catch & react on an external app notification


I have a weather app which sends a notification about an upcoming rain. This is a standalone app, runs on Android/iOS.

Is there a way to catch a notification from the app and show some info on the watch screen with Pebble JS SDK?


Solution

  • You can use Android's NotificationListenerService. There is more information on how to use this in it's documentation, found here.