Я делаю веб-сервис для отправки push-уведомлений в приложение IOS. Я пытаюсь использовать Puch Sharp. В Интернете я получаю пример для примера Push Sharp 1.1, но теперь это 2.2.
Это код для версии 1.1. Может кто-нибудь сказать мне, что использовать в версии 2.2 для отправки push-уведомления в приложение IOS.
' ''Configure and start Apple APNS
' '' IMPORTANT: Make sure you use the right Push certificate. Apple allows you to generate one for connecting to Sandbox,
' '' and one for connecting to Production. You must use the right one, to match the provisioning profile you build your
' '' app with!
Dim appleCert() As Byte = File.ReadAllBytes(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "~/DocketTrak_Development.p12"))
' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' ''IMPORTANT: If you are using a Development provisioning Profile, you must use the Sandbox push notification server
' '' (so you would leave the first arg in the ctor of ApplePushChannelSettings as 'false')
' '' If you are using an AdHoc or AppStore provisioning profile, you must use the Production push notification server
' '' (so you would change the first arg in the ctor of ApplePushChannelSettings to 'true')
'_push.StartApplePushService(New ApplePushChannelSettings(False, appleCert, "trakDock3%", False))