From 1703ff539b8681047f7900c4ef41370d4f6525ea Mon Sep 17 00:00:00 2001 From: Christian Petrov Date: Sun, 14 Sep 2025 16:40:24 +0200 Subject: [PATCH] Add support for universal links (iOS) and app links (Android) This commit adds the `continueWebActivity` event to the App class, allowing developers to react to universal links on iOS [1] and app links on Android [2]. The event includes a parameter `webpageURL` containing the URL that was used to launch the app, including path and query parameters. [1]: https://developer.apple.com/documentation/xcode/supporting-universal-links-in-your-app [2]: https://developer.android.com/training/app-links --- doc/api/app.json | 9 +++++++++ src/tabris/App.js | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/api/app.json b/doc/api/app.json index b6d509ffd..535338660 100644 --- a/doc/api/app.json +++ b/doc/api/app.json @@ -145,6 +145,15 @@ "platforms": { "ios": false } + }, + "continueWebActivity": { + "description": "Fired when the app is launched via a universal link (iOS) or app link (Android). This event allows the app to handle universal/app links opened in another app.", + "parameters": { + "webpageURL": { + "description": "The URL that was used to launch or resume the app, including path and query parameters.", + "type": "string" + } + } } }, "methods": { diff --git a/src/tabris/App.js b/src/tabris/App.js index e2f470d7e..8c7577020 100644 --- a/src/tabris/App.js +++ b/src/tabris/App.js @@ -234,7 +234,8 @@ NativeObject.defineEvents(App.prototype, { terminate: {native: true}, keyPress: {native: true}, backNavigation: {native: true}, - certificatesReceived: {native: true} + certificatesReceived: {native: true}, + continueWebActivity: {native: true} }); export function create() {