我使用 PushSharp 发送推送通知。
我调用 PushService 对象的方法 StopAllServices 让它发送消息。
我假设在 PushService.StopAllServices 完成后,我得到了所有通知对象的响应。
之后我杀死了实例化 PushService 对象的线程。
PushService = New PushService()
...
...
...
PushService.StopAllServices(True)
...
'the thread dies here
我注意到有时我在回调函数中没有得到响应。
可能是 StopAllServices 方法不等待所有响应(来自 APNS/GCM)吗?
我需要收到所有通知对象的响应。如何做到这一点?我会很高兴的 sugestions