Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-70170

Custom url handler when opening Qt app on Android

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.11.0, 5.15.3
    • QPA
    • Android
    • Next, 2023wk02FOQtforAndroid

    Description

      It would be nice if custom url handlers can be used to launch Qt application on Android.

      Following intent filter is added to AndroidManifest.xml

      <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="myapp"/>
       </intent-filter>

      Then the custom url scheme handler is set with QDesktopServices::setUrlHandler(). The custom scheme handler works if it is called inside the application with QDesktopServices::openUrl(), but if you click the custom scheme url externally, the application opens, but the scheme handler is not called. It seems that the custom url is not propagated to the application.

      It would be nice if this feature could be implemented. It works on other platforms.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtandroidteam Qt Android Team
              qtcomsupport Qt Support
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes