デバイスが既にアプリをアンインストールしている状況をテストしています。
アプリをアンインストールした iPhone に JavaPNS 経由で通知をプッシュしようとすると、成功しましたが、デバイスではメッセージが受信されませんでした。
関連するアプリがデバイスにインストールされていないにもかかわらず、JavaPNS が成功を返すのはなぜですか? どうすればこれを解決できますか?
for (PushedNotification notification : notifications) {
if (notification.isSuccessful()) {
//success
} else {
iPhoneFailedPushed += 1;
String deviceId = notification.getDevice() != null ? notification.getDevice().getDeviceId() : "";
String exception = notification.getException() != null ? notification.getException().getMessage() : "";
/* Add code here to remove invalidToken from database */
if (notification.getResponse() != null)
{
//show error code
}
else
{
//show exception
}
//log fail token
}
}