我試圖發送推送到IOS APN與pushsharp nuget
。PushSharp iPhone推送通知Doent工作
push.RegisterAppleService(new ApplePushChannelSettings(false, applecert, ""), serviceSettings);
AppleNotification notif = new AppleNotification().ForDeviceToken(deviceToken)
.WithAlert(message)
.WithBadge(1)
.WithSound("default");
push.QueueNotification(notif);
//wait for queue to finish
push.StopAllServices(true);
一次得手......現在即時通訊的愈來愈此異常:
您已經選擇了開發/測試區(不生產)服務器,但 您的證書沒有出現是發展/ Sandbox 證書!請檢查以確保您擁有正確的證書!
請幫助我。
您是否正在測試開發模式或生產模式? – Dhruv
你的代碼似乎沒問題。我敢打賭,你的證書必須有問題。嘗試使用密碼重新生成它。我有兩個證書(生產和開發),但我告訴Pushsharp,這兩個都是生產。有沙盒的問題... – rolo1091