uniapp安卓离线打包配置scheme url

发布于:2024-07-16 ⋅ 阅读:(172) ⋅ 点赞:(0)

uniapp安卓离线打包配置scheme url

打开 AndroidManifest.xml

搜索 scheme 填入 即可

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="uni.UNI979A394">
    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE\"/>
    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>
    <uses-permission android:name="android.permission.VIBRATE\"/>
    <uses-permission android:name="android.permission.READ_LOGS\"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE\"/>
    <uses-feature android:name="android.hardware.camera.autofocus\"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE\"/>
    <uses-permission android:name="android.permission.CAMERA\"/>
    <uses-permission android:name="android.permission.GET_ACCOUNTS\"/>
    <uses-permission android:name="android.permission.READ_PHONE_STATE\"/>
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE\"/>
    <uses-permission android:name="android.permission.WAKE_LOCK\"/>
    <uses-permission android:name="android.permission.FLASHLIGHT\"/>
    <uses-feature android:name="android.hardware.camera\"/>
    <uses-permission android:name="android.permission.WRITE_SETTINGS\"/>
    <application
        android:allowBackup="true"
        android:allowClearUserData="true"
        android:icon="@drawable/icon"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:supportsRtl="true">
        <activity
            android:name="io.dcloud.PandoraEntry"
            android:exported="true"
            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>
            <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="jiusc" />
            </intent-filter>
        </activity>
        <activity
            android:name="io.dcloud.PandoraEntryActivity"
            android:exported="true"
            android:launchMode="singleTask"
            android:configChanges="orientation|keyboardHidden|screenSize|mcc|mnc|fontScale|keyboard|smallestScreenSize|screenLayout|screenSize|uiMode"
            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="jiusc" />
            </intent-filter>
        </activity>
        <meta-data
            android:name="dcloud_appkey"
            android:value="0eba8a196571615c72a3e67321f40d73" />
    </application>

</manifest>

网站公告

今日签到

点亮在社区的每一天
去签到