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

  • Best Quality Cartoons

    Best Quality

    10 ŞUBAT 2014
  • Jon Reed

    Jon Reed

    14 AĞUSTOS 2006
  • Kyler Briskey

    Kyler Briske

    20 ŞUBAT 2011