How to Get a Device Token on the iPhone

104 26
    • 1). Open your iPhone application in the Xcode development environment.

    • 2). Enter the following line of code, which requests the iPhone's unique identifier, where it is needed in your application to pull the device token for use by your app:

      NSString* deviceName= [[UIDevice currentDevice] uniqueIdentifier];

    • 3). Save the changes to your edited project.

    • 4). Republish your application to the App Store if your app is published and available there for free download or purchase.

Source...

Leave A Reply

Your email address will not be published.