easemob / sdkdemoapp3.0_android

Apache License 2.0
312 stars 173 forks source link

Demo在StartServiceReceiver中启动了一个服务EMChatService,导致总是崩溃,需要使用前台服务去启动吗? #395

Open Code6666 opened 4 years ago

Code6666 commented 4 years ago

java.lang.RuntimeException:Unable to start receiver .ease.receiver.StartServiceReceiver: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.hyphenate.chat.EMChatService (has extras) }: app is in background uid UidRecord{604ec63 u0a185 SVC idle procs:2 proclist:16170,16244, seq(0,0,0)}

可以直接把这个StartServiceReceiver 给去掉吗?