SORU
8 EKİM 2009, PERŞEMBE


Eğer kullanıcı push bildirimleri etkin varsa iPhone belirlemek

Bir kullanıcı, ayarlar ile, ya da benim uygulama için kendi itme bildirimleri etkin devre dışı olup olmadığını belirlemek için arıyorum.

CEVAP
8 EKİM 2009, PERŞEMBE


enabledRemoteNotificationsTypes çağrı ve maske kontrol edin.

ex:

UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
if (types == UIRemoteNotificationTypeNone) 
   // blah blah blah

iOS8 ve üstü:

[[UIApplication sharedApplication] isRegisteredForRemoteNotifications]

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Joseph Herscher

    Joseph Hersc

    14 Mart 2007
  • PremiumBeat.com - Royalty Free Music

    PremiumBeat.

    16 Kasım 2008
  • vgeller1

    vgeller1

    22 Kasım 2009