收藏
回答

调用 deviceApi.registerPushMsgEventListener 报错?

AppID
wxaeb10a56fb5b4b7f

今天调用 deviceApi.registerPushMsgEventListener来注册时候,报如下异常,现在版本用的是wmpf2.20 ,请问怎么解决

E/TAG: Failed to register push message listener: errType: 1, errCode: -1, errMsg: catch: java.lang.IllegalArgumentException: No enum constant com.tencent.wmpf.cli.event.WMPFClientEventHandlerHub.b.PUSH_MSG, stack: java.lang.IllegalArgumentException: No enum constant com.tencent.wmpf.cli.event.WMPFClientEventHandlerHub.b.PUSH_MSG

        at java.lang.Enum.valueOf(Enum.java:257)

        at com.tencent.wmpf.cli.event.WMPFClientEventHandlerHub$b.valueOf(WMPFClientEventHandlerHub.java:74)

        at com.tencent.wmpf.service.task.sync.WMPFRegisterEventHandler.onInvoke(WMPFRegisterEventHandler.kt:1130)

        at com.tencent.wmpf.service.task.sync.WMPFRegisterEventHandler.onInvoke(WMPFRegisterEventHandler.kt:9)

        at com.tencent.wmpf.cli.task.pb.WMPFSyncInvokeDispatcher.invoke(WMPFSyncInvokeDispatcher.java:92)

        at com.tencent.wmpf.cli.task.pb.WMPFSyncInvokeDispatcher.invoke(WMPFSyncInvokeDispatcher.java:21)

        at clo$1$1.run(BaseIPCService.java:94)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)

        at cma$a$1$1.run(IPCThreadPool.java:236)

回答关注问题邀请回答
收藏

1 个回答

  • 高
    10-23

    请参考下 demo 代码使用。

    10-23
    有用
    回复
登录 后发表内容
问题标签