Sinch - Calls via remote notification do not start

牧云@^-^@ 提交于 2019-12-24 02:23:50

问题


I've set up everything properly for starting calls from a push notification, however the recipient's SINClient does not invoke the client:didReceiveIncomingCall: method, so it's impossible for the user to answer the call.

I've verified my payloads are identical - the results from the relayRemotePushNotificationPayload: method indicate that it's successful and hasn't timed out - this is the same on each and every call.

The delegates do work as I get an invocation from clientDidStart:, I just don't get didReceiveIncomingCall:. I make sure to invoke relayRemotePushNotificationPayload: after connecting to Sinch, as I invoke this in the callback from clientDidStart:, so I'm absolutely certain that the client is connected to Sinch before this payload is passed.

Is there anything else I should be doing to get this working?


回答1:


If you try not waiting until clientDidStart: but simply invoke relayRemotePushNotificationPayload: directly? The Sinch client will actually automatically start if it's not started as part handling the remote push inside relayRemotePushNotificationPayload:.



来源:https://stackoverflow.com/questions/25451427/sinch-calls-via-remote-notification-do-not-start

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!