3

The Pebble Docs clearly describe how to start a watchapp on the Pebble from an Android app, but I cannot find instructions on how to start an Android app from a watchapp. Is that possible, and how?

Eir
  • 1,003
  • 9
  • 24

1 Answers1

0

It's possible by registering a broadcast receiver for the pebble events, here's the code:

    <receiver android:exported="true" android:name=".MyBroadcastReceiver">
        <intent-filter>
            <action android:name="com.getpebble.action.app.RECEIVE"/>
            <action android:name="com.getpebble.action.app.RECEIVE_ACK"/>
            <action android:name="com.getpebble.action.app.RECEIVE_NACK"/>
        </intent-filter>
    </receiver>
Eir
  • 1,003
  • 9
  • 24