ドキュメントを使用して、アプリケーションで都市飛行船を使用したプッシュ通知を使用しています
私は次のようにコードを書きます
NSMutableDictionary *takeOffOptions = [[[NSMutableDictionary alloc] init] autorelease];
[takeOffOptions setValue:launchOptions forKey:UAirshipTakeOffOptionsLaunchOptionsKey];
[UAirship takeOff:takeOffOptions];
[[UIApplication sharedApplication]
registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeSound |
UIRemoteNotificationTypeAlert)];
しかし、コンソールに次のエラーログが表示されます。
did Fail To Register For Remote Notifications With Error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0xce2a310
ドキュメントを2回確認し、コードを実装しました
都市飛行船のサイトでは、「デバイストークンが見つかりません」というメッセージが表示されますが、何が問題なのか.