4

PushSharp で動作する Android および Apple プッシュ通知がありますが、Apple 通知でカスタム データを送信できません。

これは完全に送信します:

push.QueueNotification(new AppleNotification()
                                   .ForDeviceToken(device.Identifier)
                                   .WithAlert(message)
                                   .WithSound("default")
                                   .WithBadge(7));

これはまったく機能しません:

push.QueueNotification(new AppleNotification()
                                   .ForDeviceToken(device.Identifier)
                                   .WithAlert(message)
                                   .WithSound("default")
                                   .WithCustomItem("incidentId", new[] { 1 })
                                   .WithBadge(7));

後者は、NotificationSent、NotificationFailed、ServiceException などにヒットすることはなく、電話に到達することもありません。

PushSharp バージョン 2.0.4.0 の使用

カスタムデータを追加しようとしている方法に何か問題がありますか?

4

1 に答える 1