Deep linking settings
This commit is contained in:
parent
5b00ffb439
commit
c6cd93d779
|
|
@ -36,14 +36,14 @@
|
|||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
<category android:name="android.intent.category.LEANBACK_LAUNCHER" /> <!-- Google TV -->
|
||||
</intent-filter>
|
||||
<!-- flet: deep linking {% if cookiecutter.options.deep_linking_url %} -->
|
||||
<!-- flet: deep linking {% if cookiecutter.options.deep_linking.scheme and cookiecutter.options.deep_linking.host %} -->
|
||||
<meta-data android:name="flutter_deeplinking_enabled" android:value="true" />
|
||||
<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="{{ cookiecutter.options.deep_linking_url.scheme }}"
|
||||
android:host="{{ cookiecutter.options.deep_linking_url.netloc }}" />
|
||||
<data android:scheme="{{ cookiecutter.options.deep_linking.scheme }}"
|
||||
android:host="{{ cookiecutter.options.deep_linking.host }}" />
|
||||
</intent-filter>
|
||||
<!-- flet: end of deep linking {% endif %} -->
|
||||
</activity>
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@
|
|||
<key>NSAllowsArbitraryLoads</key>
|
||||
<true />
|
||||
</dict>
|
||||
<!-- flet: deep linking {% if cookiecutter.options.deep_linking_url %} -->
|
||||
<!-- flet: deep linking {% if cookiecutter.options.deep_linking.scheme and cookiecutter.options.deep_linking.host%} -->
|
||||
<key>FlutterDeepLinkingEnabled</key>
|
||||
<true />
|
||||
<key>CFBundleURLTypes</key>
|
||||
|
|
@ -59,10 +59,10 @@
|
|||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
<key>CFBundleURLName</key>
|
||||
<string>{{ cookiecutter.options.deep_linking_url.netloc }}</string>
|
||||
<string>{{ cookiecutter.options.deep_linking.host }}</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>{{ cookiecutter.options.deep_linking_url.scheme }}</string>
|
||||
<string>{{ cookiecutter.options.deep_linking.scheme }}</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
|
|
|
|||
Loading…
Reference in New Issue