SORU
22 EYLÜL 2014, PAZARTESİ


Uygulama simgesi rozeti deneniyor ama't kullanıcı izni uygulama rozeti aldı haven : iOS 8 böyle büyük mükafat 6

İOS ile uygulama uyumluluk konsol Günlüğüne aşağıdaki alıyorum 8, kontrol ediyorum"Uygulama simgesi rozeti için çalışıyor ama kullanıcı izni uygulama rozeti için almadım". Kimse bana bu uyarı kurtulmak için yardım lütfen. Ve Evet, benim app Simgesi ve TabBar Simge Rozetleri gösterir.

CEVAP
6 EKİM 2014, PAZARTESİ


AppDelegate benim yaptığım şey işte

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // registering for remote notifications
    [self registerForRemoteNotification];
    return YES;
}


- (void)registerForRemoteNotification {
    if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) {
        UIUserNotificationType types = UIUserNotificationTypeSound | UIUserNotificationTypeBadge | UIUserNotificationTypeAlert;
        UIUserNotificationSettings *notificationSettings = [UIUserNotificationSettings settingsForTypes:types categories:nil];
        [[UIApplication sharedApplication] registerUserNotificationSettings:notificationSettings];
    } else {
        [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
    }
}

#ifdef __IPHONE_8_0
- (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings {
    [application registerForRemoteNotifications];
}
#endif

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Jonathan Leack

    Jonathan Lea

    26 ŞUBAT 2007
  • MofoHifi Records

    MofoHifi Rec

    15 HAZİRAN 2006
  • sghaff1

    sghaff1

    23 Mart 2009