美文网首页
Flutter Scheme 使用(浏览器打开App,App内打

Flutter Scheme 使用(浏览器打开App,App内打

作者: 王保全_1098 | 来源:发表于2020-07-15 10:51 被阅读0次

Flutter Scheme 使用(浏览器打开App,App内打开另一个App)
Android 配置

<!-- Deep Links -->
<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <!-- Accepts URIs that begin with YOUR_SCHEME://YOUR_HOST -->
    <data
          android:scheme="[YOUR_SCHEME]"
          android:host="[YOUR_HOST]" />
</intent-filter>

示例:

<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="dynamictheme"/>
  <data 
        android:host="detail"
        android:scheme="dynamictheme"/>
</intent-filter>

相关文章

网友评论

      本文标题:Flutter Scheme 使用(浏览器打开App,App内打

      本文链接:https://www.haomeiwen.com/subject/anldhktx.html