アプリをプッシュ通知用に準備しようとしました。次のコードをアプリ デリゲートに挿入しましたが、デバイス (iPhone 3Gs - iOS 5.1.1) でアプリを実行すると、アプリは正常に起動しますが、「プッシュ アラート」はホワイトアウトされます。許可された通知をユーザーに要求します!!!
誰か助けてくれませんか??
ドイツからよろしく!
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[application registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge|
UIRemoteNotificationTypeAlert|
UIRemoteNotificationTypeSound];
// Override point for customization after application launch.
return YES;
}