总是得到OnDeviceSubscriptionExpired

时间:2015-07-29 20:08:35

标签: android pushsharp

在向GCM发送推送时,我总是在服务器上获得OnDeviceSubscriptionExpired 我甚至试图从我的Android应用程序取消注册

我总是在我的Android应用中获得相同的注册ID

push.RegisterGcmService(New GcmPushChannelSettings("AI45747erhgedhe4ag"))

Dim and_msg() As String = message.Split(New Char() {":"c}, 2)

push.QueueNotification(New GcmNotification().ForDeviceRegistrationId(q.PushToken.Token).WithJson("{""title"": """ & and_msg(0) & """,""message"": """ & and_msg(1) & """, ""sound"": true,""vibrate"": true}"))

push.StopAllServices(True)

0 个答案:

没有答案