My application can successfully register for push notifications, but I would like to move the pop-up warning to another area of ββthe application.
If I implement the same code from AppDelegate.m to another screen, Other.m , of my application, it never registers:
-(void)buttonTapped { // Register for Push Notifications UIRemoteNotificationType notifyTypes = (UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeBadge); [[UIApplication sharedApplication] registerForRemoteNotificationTypes:notifyTypes]; }
If I included didRegisterForRemoteNotificationsWithDeviceToken in my AppDelegate.m , an instance of the AppDelegate.m method is called from my Other.m , but thatβs not how I want it to work.
Any ideas or suggestions would be appreciated.
ios objective-c iphone apple-push-notifications
Chris
source share