I’m new to Objective-C and iOS development, but I was wondering if there was a way to request an Apple Push Notification Device Token from the View Controller and store the token in a string to use later in a Query String sent to my web application.
I’ve been searching, but haven’t been able to find a solution to this. Any help would be appreciated!
You should be able to call
registerForRemoteNotificationTypes:anywhere in your code.But you’ll have to implement
application:didRegisterForRemoteNotificationsWithDeviceToken:in your app delegate.You can register for up to 3 different types of notification. Just remove and add as required.