最近项目中有需求使用WebSocket,所以需要保持app一直运行不被挂起,于是使用了background-mode插件。可是在提交AppStore审核的时候,被拒绝了。原因是:Your app declares support for audio in the UIBackgroundModes key in your Info.plist, but we were unable to play any audible content when the app was running in the background.
有没有更好的方式来解决这样的问题?你们有没有成功解决的案例?