Created
March 18, 2023 17:05
-
-
Save milansurelia/ad6c8d1e8e658b310890d4619337ab4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
package="com.example.twa.myapplication"> | |
| |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" | |
android:roundIcon="@mipmap/ic_launcher_round" | |
android:supportsRtl="true" | |
android:theme="@style/AppTheme" | |
tools:ignore="GoogleAppIndexingWarning"> | |
<activity | |
android:name="com.google.androidbrowserhelper.trusted.LauncherActivity"> | |
| |
<!-- Edit android:value to change the url opened by the Trusted Web Activity --> | |
<meta-data android:name="android.support.customtabs.trusted.DEFAULT_URL" | |
android:value="https://airhorner.com" /> | |
| |
<!-- This intent-filter adds the Trusted Web Activity to the Android Launcher --> | |
<intent-filter> | |
<action android:name="android.intent.action.MAIN" /> | |
<category android:name="android.intent.category.LAUNCHER" /> | |
</intent-filter> | |
| |
<!-- | |
This intent-filter allows the Trusted Web Activity to handle Intents to open | |
pwaexample.com. | |
--> | |
<intent-filter> | |
<action android:name="android.intent.action.VIEW"/> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<category android:name="android.intent.category.BROWSABLE"/> | |
| |
<!-- Edit android:host to handle links to the target URL--> | |
<data | |
android:scheme="https" | |
android:host="pwaexample.com"/> | |
</intent-filter> | |
</activity> | |
</application> | |
</manifest> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment