小编mon*_*uiz的帖子

带有重音的Moon-APNS消息

我正在使用此代码将Apple推送通知发送到iPhone:

Public Function SendPush() As String
    Dim rt As String = "Sended!"
    Dim deviceToken As String = "my token"
    Dim message As String = "Parabéns é Campeão!"
    Try

        Dim payLoad As New NotificationPayload(deviceToken, message, 1, "default")
        payLoad.AddCustom("RegionID", "IDQ10150")
        ' 51 is the badge no
        Dim notificationList = New List(Of NotificationPayload)() From { _
         payload _
        }

        Dim push = New PushNotification(True, "apn_developer_identity.p12", "password")
        Dim result = push.SendToApple(notificationList)
    Catch ex As Exception
        rt = "Error!"
    End Try

    Return rt

End Function …
Run Code Online (Sandbox Code Playgroud)

apple-push-notifications ios moonapns

5
推荐指数
1
解决办法
1348
查看次数

标签 统计

apple-push-notifications ×1

ios ×1

moonapns ×1