feat(app): open chats from pipelines://chat/<id> notification links
The app routes pipelines://chat/<id> to that chat, alongside the existing pipelines://run/<id>, and Android registers the chat host so a tapped ntfy notification opens the app on it.
This commit is contained in:
@@ -32,15 +32,17 @@
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
<!-- The server publishes `pipelines://run/<id>` as a notification's
|
||||
click URL; it opens that run (lib/application/app_router.dart
|
||||
routeLocation). It only opens a run; it starts nothing. -->
|
||||
<!-- The server publishes `pipelines://run/<id>` and
|
||||
`pipelines://chat/<id>` as a notification's click URL; each
|
||||
opens that run or chat (lib/application/app_router.dart
|
||||
routeLocation). It only opens it; it starts nothing. -->
|
||||
<meta-data android:name="flutter_deeplinking_enabled" android:value="true" />
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:scheme="pipelines" android:host="run" />
|
||||
<data android:scheme="pipelines" android:host="chat" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<!-- Don't delete the meta-data below.
|
||||
|
||||
Reference in New Issue
Block a user