Skip to content

Commit

Permalink
Vending: Remove BROWSABLE category
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Feb 26, 2024
1 parent 948fd47 commit a628117
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions vending-app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
~ SPDX-License-Identifier: Apache-2.0
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android">

<permission
android:name="com.android.vending.CHECK_LICENSE"
Expand Down Expand Up @@ -97,11 +98,20 @@

<data android:scheme="market" />
</intent-filter>
<intent-filter android:priority="-100">
<!--
Play Store website opens this via intent:// URI if BROWSABLE category is added.
If the only other valid or the configured default retriever of the intent is the web browser itself,
this would cause an infinite loop of redirects between the redirector and the web browser opening
the Play Store website.
To prevent this, we remove the BROWSABLE category. This ensure best possible compatibility without running
into the aforementioned issue.
-->
<intent-filter
android:priority="-100"
tools:ignore="AppLinkUrlError">
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="http" />
<data android:scheme="https" />
Expand Down

0 comments on commit a628117

Please sign in to comment.