私のアプリのアップデート後に問題が発生しています。このフォーマットのデバイストークンを取得しています C43461D5-E9CB-4C10-81F8-020327A07A62 通知が機能していません。Apple通知デバイストークンの変更
私はこの形式で通知する前に: 2add70865401171c7ca1d3b3957b719eaf721fef8f8d7a52bc91ef8a872cc004
を私はアプリの通知を許可しなかったし、バックエンドで何も変更していません。 は、それが動作しない理由のいずれかのガイドを行うことができます。デバイストークンを取得didFinishLaunchingWithOptions
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
{
[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
[[UIApplication sharedApplication] registerForRemoteNotifications];
}
else
{
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)];
}
で
コードは:
Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo={NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}, no valid 'aps-environment' entitlement string found for application
あなたdidfinishlaunchのurコードを表示することができます –
また、デバイストークンを取得するコードを表示します。 – ashmi123
「IF([[[UIDevice currentDevice] systemVersion]に従ってFloatValue]> = 8.0) { [[のUIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettingsのsettingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge)カテゴリ:なし]; [のUIApplication sharedApplication ] registerForRemoteNotifications];他の } { [[のUIApplication sharedApplication] registerForRemoteNotificationTypes: (UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)]; は}」 –