sdonly
sdonly
  • 发布:2022-05-17 15:55
  • 更新:2022-05-17 16:06
  • 阅读:321

安卓本地离线打包,无法被外部程序唤醒,浏览器唤醒被拦截

分类:uni-app
    没有做过原生安卓开发,对scheme配置没有经验。  

AndroidManifest.xml按照离线打包说明进行了配置,<data android:scheme="testscheme" />测试了很多种scheme命名,
离线打包程序安装成功并且也可以成功运行,但无法通过浏览器唤醒调用。
web端调用配置 testscheme://
请问下,大家有配置成功的吗,该做些什么调整?

    <activity  
        android:name="io.dcloud.PandoraEntry"  
        android:configChanges="orientation|keyboardHidden|keyboard|navigation"  
        android:label="@string/app_name"  
        android:launchMode="singleTask"  
        android:hardwareAccelerated="true"  
        android:theme="@style/TranslucentTheme"  
        android:screenOrientation="user"  
        android:windowSoftInputMode="adjustResize" >  
        <intent-filter>  
            <action android:name="android.intent.action.MAIN" />  
            <category android:name="android.intent.category.LAUNCHER" />  
        </intent-filter>  
    </activity>  
    <activity  
        android:name="io.dcloud.PandoraEntryActivity"  
        android:launchMode="singleTask"  
        android:configChanges="orientation|keyboardHidden|screenSize|mcc|mnc|fontScale|keyboard|smallestScreenSize|screenLayout|screenSize"  
        android:hardwareAccelerated="true"  
        android:permission="com.miui.securitycenter.permission.AppPermissionsEditor"  
        android:screenOrientation="user"  
        android:theme="@style/DCloudTheme"  
        android:windowSoftInputMode="adjustResize">  
        <intent-filter>  
            <category android:name="android.intent.category.DEFAULT" />  
            <category android:name="android.intent.category.BROWSABLE" />  
            <action android:name="android.intent.action.VIEW" />  
            <data android:scheme="testscheme" />  
        </intent-filter>  
    </activity>
2022-05-17 15:55 负责人:无 分享
已邀请:
FullStack

FullStack - 【插件开发】【专治疑难杂症】【ios上架、马甲包、白包、过审、已成功上架过几百个】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=22130】【非诚勿扰】QQ:543610866

可以解决

  • sdonly (作者)

    谢谢

    2022-05-27 17:22

要回复问题请先登录注册