bildirimleri göndermez:PushSharp Ben basit bir kod var
PushBroker pushBroker = new PushBroker();
string path = HttpContext.Current.Server.MapPath("~/" + AppSettings.CertificatePath);
var appleCert = File.ReadAllBytes(path);
pushBroker.RegisterAppleService(
new ApplePushChannelSettings(AppSettings.IsProductionPushNotificationServer,
appleCert,
AppSettings.CertificatePassword));
var notification = new AppleNotification().ForDeviceToken(deviceToken.TrimStart('<').TrimEnd('>'))
.WithBadge(unviewedInvitationCount);
pushBroker.QueueNotification(notification);
Ben sırasıyla Sandbox ile geliştirme ve üretim belgeleriyle ve Üretim sunucusunu kullanmayı deneyin. Ama hiçbir şey olmadı. Müşteri tarafı push bildirimlerini alabilir. Sorun nedir? Şimdiden teşekkürler.
GÜNCELLEME: Ben olaylara abone
.
OnNotificationFailed bu hata hakkında beni der:
{APNS NotificationFailureException -> 5 : Invalid token size -> {"aps":{"badge":1}}}
Ve < içine cihazım jetonu sarın eğer ...> Başka hata alırsınız:
{APNS NotificationFailureException -> 8 : Invalid token -> {"aps":{"badge":1}}}
çok teşekkür ederim. – Neshta
Rica ederim! – Eran
Benim için çalıştı. Benim için sorun "boşluk" oldu. – Raghav