Latest 2.0.0
License MIT
Platforms ios 8.0

Build Status  

NSData+APNSToken adds apns device token method to NSData.

Use it

Copy the NSData+APNSToken class into your project or add this line to your Podfile:

pod 'NSData+APNSToken'

Quick API overview

After that you can get the apns token as a string from your app delegate:

import NSData_APNSToken

func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
  let apnsToken : String = deviceToken.apnsToken()


Feedback are welcome

Please fill an issue for any feedback or if you missed any other convenience method.

Latest podspec

    "name": "NSData+APNSToken",
    "version": "2.0.0",
    "summary": "Category for NSData that converts APNS device tokens into simple NSString Objects",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Adar Porat": "[email protected]"
    "source": {
        "git": "",
        "tag": "2.0.0"
    "social_media_url": "",
    "platforms": {
        "ios": "8.0"
    "source_files": "Source"

Pin It on Pinterest

Share This