Search code examples
androidpebble-watchpebble-sdk

Start Pebble app from a watchapp


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?


Solution

  • 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>