- 安卓启动调用注册wmpf异常是什么原因?
error: com.tencent.wmpf.cli.api.WMPFApiException: errType: 1, errCode: -1, errMsg: Error Loading Attributes [图片] CoroutineScope(Dispatchers.IO).launch { try { WMPFBoot.init(application, wmpfDevice) val deviceApi = WMPF.getInstance().deviceApi deviceApi.registerDeviceActivationOutdatedEventListener(object : AbstractOnDeviceActivationOutdatedEventListener() { override fun onInvoke(p0: IPCVoid) { LogHelper.i(TAG, "设备激活已失效,可能超时或被其他设备占用") activiteDevice() } }) isInitFinish = true val miniProgramDeviceApi = WMPF.getInstance().miniProgramDeviceApi val response = miniProgramDeviceApi.registerMiniProgramDevice( confModel.miniProgramAppId, confModel.modelId, wmpfDevice.deviceId, snTicket ) val code = response.code val errMsg = response.errMsg if (code == 0) { LogHelper.i(TAG, "registerMiniProgramDevice success") } else { LogHelper.e(TAG, "registerMiniProgramDevice code: $code fail: $errMsg") } WMPF.getInstance().settingApi.setSetting("configSuicideTimeoutSeconds", "1") WMPF.getInstance().settingApi.setSetting("configSuspendTimeoutSeconds", "1") WMPF.getInstance().settingApi.setSetting("configNoBackground", "true") WMPFLifecycleManager.getInstance().addWMPFLifecycleListener(object : WMPFLifecycleListener { override fun onMiniProgramForeground(appId: String?) { super.onMiniProgramForeground(appId) RouterManager.getPageRouter()?.backToHome() AppExitManager.isAdminExit = true // val intent = Intent( // ApplicationHelp.getApplication(), // WMPFTopCoverService::class.java // ) // intent.putExtra("action", "SHOW") // startService(intent) } override fun onMiniProgramBackground(appId: String?) { super.onMiniProgramBackground(appId) AppExitManager.isAdminExit = false // CoroutineScope(Dispatchers.IO).launch { // (EcsSDKManager.getSingletonSdk() as? XMSDKImpl)?.closeFlashlight() // } // val intent = Intent( // ApplicationHelp.getApplication(), // WMPFTopCoverService::class.java // ) // intent.putExtra("action", "HIDE") // startService(intent) } }) if (deviceApi.isDeviceActivated) { preload() } else { LogHelper.i(TAG, "设备未激活") } } catch (e: WMPFApiException) { LogHelper.i(TAG, "error: $e") } catch (e: IllegalStateException) { LogHelper.i(TAG, "error: $e") } LogHelper.i(TAG, "initWMPF, end") }
02-10 - 设备端WMPF使用了正式版小程序为什么还会跳出扫码确认才能使用?
你好我们现在设备端音视频,小程序已发到生产环境,小程序也是release,但是启动进入后还会出现扫描确认才能使用的问题?是因为我们硬件审核流程还没走完的原因还是什么原因?
2024-12-26 - 设备组创建数量限制问题?
因为创建设备组需要用到该小程序生成的accessToken,微信侧不区分环境。但是我们在测试阶段,会频繁的测试创建设备组问题。目前看硬件后端文档,没有提供删除设备组的接口,那么频繁的创建设备组,微信侧是否有最大创建设备组数量限制或者是风控策略。我们担心在测试阶段频繁创建,导致后面被微信侧限制而使VOIP功能不可用,会不会被限制?
2024-12-19 - 扩容设备组包48001为什么?
设备已注册,设备组已创建,设备已添加设备组,想通过调用对设备组能力扩容到200,报48001是为什么?,已确认access_token正确,设备组id正确 设备组id:g3vFYMkDHzDt26BTE2axsZA 帮忙看一下是什么问题 [图片]
2024-12-13