Skip to content

Instantly share code, notes, and snippets.

@takahirohonda
Last active September 15, 2019 01:15
Show Gist options
  • Save takahirohonda/8812939b43ac9ac68f58260013fcad17 to your computer and use it in GitHub Desktop.
Save takahirohonda/8812939b43ac9ac68f58260013fcad17 to your computer and use it in GitHub Desktop.
my-twa-config-AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.mdhsitecorequiz.twa.sitecorecertificationexamquiz">
<application
android:allowBackup="true"
android:icon="@mipmap/sitecore_quiz_icon"
android:label="Sitecore Quiz"
android:roundIcon="@mipmap/sitecore_quiz_icon"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<meta-data
android:name="asset_statements"
android:resource="@string/asset_statements"/>
<activity
android:name="android.support.customtabs.trusted.LauncherActivity"
android:theme="@style/Theme.LauncherActivity">
<!-- Edit android:value to change the url opened by the TWA -->
<meta-data
android:name="android.support.customtabs.trusted.DEFAULT_URL"
android:value="https://mydatahack.github.io/sitecore-exam-prep/" />
<!-- This intent-filter adds the TWA 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 TWA to handle Intents to open
airhorner.com.
-->
<intent-filter android:autoVerify="true">
<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="mydatahack.github.io"/>
</intent-filter>
</activity>
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment