2013-05-28 2 views
0

좋은 날,iOS 도시 비행선 등록 취소 알림

Urban Airship의 iOS 용 API는 등록 할 수 있습니다. 기본적으로는 전혀 알림을 수신하는 장치를 해제 등록 할 수있는 API가있을 것 나던, 그러나 단지

[[UAPush shared] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | 
                UIRemoteNotificationTypeSound | 
                UIRemoteNotificationTypeAlert)]; 

입니다. 내가 무엇을 할 수 있을지? 내가 "비활성"별칭 계정에 "등록"할 수 있음을 의미하지만 이것은 나쁨으로 보입니다.

+0

충분히 page.Is에 대해 말씀입니까? –

답변

0

사용 다음은이

[[UIApplication sharedApplication] unregisterForRemoteNotifications]; 
[[UAirship shared] unRegisterDeviceToken]; 

같은이 방법 unregisterForRemoteNotifications 사과 문서 앱 설정에서 중지 할 수 있습니다 통지를 잡이 방법

Unregister for notifications received from Apple Push Service. 
- (void)unregisterForRemoteNotifications 
Discussion 

You should call this method in rare circumstances only, such as when a new version of the application drops support for remote notifications. Users can temporarily prevent applications from receiving remote notifications through the Notifications section of the Settings application. Applications unregistered through this method can always re-register. 
Availability 

    Available in iOS 3.0 and later. 

See Also 

    – registerForRemoteNotificationTypes: 
    – enabledRemoteNotificationTypes 

Declared In 
UIApplication.h 
+0

은 도시 비행선을위한 것입니까? –

+0

예이 링크를 확인하십시오 https://support.urbanairship.com/customer/portal/questions/11799-registering-and-unregistering-in-app-preferences – Divyu

+0

고맙습니다 당신이 다 남자 .. 나는 여자애를 의미합니다. – raaj

관련 문제