2***@qq.com
2***@qq.com
  • 发布:2024-07-19 10:09
  • 更新:2024-07-19 10:09
  • 阅读:157

【报Bug】PandoraEntry启动app白屏

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: 正式

HBuilderX版本号: 4.23

手机系统: Android

手机系统版本号: Android 10

手机厂商: 孚恩手持机

手机机型: M12

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
package="uni.UNI2E993F3">
<uses-feature android:name="android.hardware.nfc" android:required="false" />
<uses-permission android:name="android.permission.NFC" />

<!-- Barcode(二维码)  end -->  

<application android:name="io.dcloud.application.DCloudApplication" 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:theme="@style/TranslucentTheme"  
        android:configChanges="orientation|keyboardHidden|screenSize|mcc|mnc|fontScale"  
        android:hardwareAccelerated="true" android:exported="true" android:windowSoftInputMode="adjustResize">  
        <intent-filter>  
            <data android:scheme="hbuilder" />  
            <action android:name="android.intent.action.VIEW" />  

            <category android:name="android.intent.category.DEFAULT" />  
            <category android:name="android.intent.category.BROWSABLE" />  
        </intent-filter>  
        <intent-filter>  
            <data android:mimeType="image/*" />  
            <action android:name="android.intent.action.SEND" />  
            <category android:name="android.intent.category.DEFAULT" />  
        </intent-filter>  
        <intent-filter>  
            <action android:name="android.intent.action.MAIN" />  
            <category android:name="android.intent.category.LAUNCHER" />  
        </intent-filter>  
        <intent-filter>  
            <action android:name="android.nfc.action.TAG_DISCOVERED" />  

            <category android:name="android.intent.category.DEFAULT" />  
        </intent-filter>  
    </activity>  
    <meta-data android:name="dcloud_uninview_background" android:value="true" />  

    <activity android:name="io.dcloud.PandoraEntryActivity" 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:exported="true"  
        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=" " />  
        </intent-filter>  
    </activity>  
    <meta-data android:name="dcloud_appkey" android:value="9d34c57c8a99d565f6614e33a87e4a6e" />  
</application>  

</manifest>

操作步骤:

刷nfc卡

预期结果:

app启动

实际结果:

先白屏然后app才开始启动

bug描述:

功能是接收nfc的广播启动app发现会先白屏然后开始启动app发现会先白屏然后才开始启动app

2024-07-19 10:09 负责人:无 分享
已邀请:

要回复问题请先登录注册