푸시 알림은 iOS 앱의 멋진 기능입니다. 응용 프로그램이 뜻은 당신이 가진 후 지금 무엇을
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
//Your application registered for push notification i.e. allowed by user.
//You need to take device token and pass it to your webservice and store it in database.
}
- (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error
{
//Your application registered for push notification i.e. not allowed by user.
}
그래서 위임 방법으로 장치 토큰 실패/성공의 생성을 처리 할 응용 프로그램을 알려줍니다
//Your application registeres for push notification using following line
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
로 푸시 알림을 등록해야하는 것처럼 작동 장치 토큰? ..이제 간단하게 푸시 알림을 전송할 수 있습니다. .Net뿐만 아니라 PHP를 사용하여 다른 코드를 찾을 수 있습니다. 주변을 검색하면 많은 정보를 얻을 수 있습니다.
예제가 있습니까? 내가보기를 원한다. – Popeye