APNS-Sharp 1.0.4.4 からアップグレードしようとしていて、現在の NuGet バージョン 2.2.1.0 を使用しています
すべてのイベント、チャネルを登録し、通知を送信した後、何も起こりません。数分待ってもイベントは発生しません。2 週間前の GCM でのテストは機能しましたが、ios 側だけに問題があるようです。
コード短縮:
push = new PushBroker();
push.OnServiceException += push_OnServiceException;
// shortened.. all On* events registered here.
push.OnDeviceSubscriptionExpired += push_OnDeviceSubscriptionExpired;
push.RegisterAppleService(
new ApplePushChannelSettings(
config.Production,
config.Certificate,
config.CertPassword
)
);
...
AppleNotification anot = new AppleNotification()
.ForDeviceToken(token)
.WithTag(id);
if (alert != null) anot.WithAlert(alert);
if (sound != null) anot.WithSound(sound);
if (badge.HasValue) anot.WithBadge(badge.Value);
if (custom != null) anot.WithCustomItem("cc", new object[1] { custom });
notification = anot;
push.QueueNotification(anot);
...
Console.WriteLine("Press ENTER to stop server");
Console.ReadLine();
...
push.StopAllServices(true);
すべてのイベントは、呼び出されるとログに書き込まれますが、呼び出されるイベントはありません。
証明書は機能します - 間違ったパスワードでテストするとエラーが発生します。正しいパスワードはありません。
APNS-Sharp と同じ証明書/トークンを使用して同じテスト通知を送信しようとすると、電話で受信します。
何か案は?