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

  • eisleyhead

    eisleyhead

    11 Ocak 2006
  • How To Cook That

    How To Cook

    16 NİSAN 2011
  • Miles Fisher

    Miles Fisher

    8 NİSAN 2009