Latest 0.2.0
Homepage https://github.com/Magic-Unique/MobileGestalt
License MIT
Platforms ios 8.0
Dependencies GCDWebServer
Authors

Get iOS device UDID with public API

How it works?

The library use *.mobileconfig file to get device information. You can read the documents by Apple to learn about.

What can we get?

  • UDID
  • IMEI
  • ICCID (I can’t got it but write in the documents by Apple)
  • Products (Like: iPhone8,3)
  • Version (Like: 14G60)

Can use in App Store?

Sorry, I don’t know.

USAGE – QUICK

1. Install

  1. Use CocoaPods pod 'MobileGestalt'
  2. Use Source, drag MobileGestalt to your project

Import

#import <MobileGestalt/MobileGestalt.h>

2. Add URL Scheme

Add an unique URLScheme to your Info.plist.

Such as: mobilegestalt

3. Create a session

MGSessionConfiguration *configuration = [MGSessionConfiguration defaultConfiguration];
configuration.port = 10418;
configuration.portOffset = 3;   // Use port 10418~10421

configuration.port = 0; //  Use random port
self.session = [MGSession sessionWithConfiguration:configuration];

4. Create a request

//  Create a custom request
MGRequest *request = [MGRequest request];
request.attributes = @[MGAttributeUDID, MGAttributeIMEI, MGAttributeICCID, MGAttributeVersion, MGAttributeProduct];
request.displayName = @"Title for Profile";
request.organization = @"Subtitle for Profile";
request.explain = @"Description for Profile";
request.identifier = @"com.unique.mobilegestalt";

//  Create a signed request in remote
MGRequest *request = [MGRequest requestWithMobileConfigURL:aRemoteURL];

//  Create a signed request in local
MGRequest *request = [MGRequest requestWithMobileConfigData:aNSData];

5. Send request

[self.session request:request completed:^(MGRequest *request, MGResponse *response, NSError *error) {
    if (error) {
        NSLog(@"%@", error);
    } else {
        NSLog(@"%@", response.data);
    }
}];

Latest podspec

{
    "name": "MobileGestalt",
    "version": "0.2.0",
    "summary": "Get iOS device UDID with public API",
    "description": "- Use public APIsn- Get iOS device information (UDID, IMEI, Product, Version)n- Use signed profile",
    "homepage": "https://github.com/Magic-Unique/MobileGestalt",
    "license": "MIT",
    "authors": {
        "u51b7u79cb": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Magic-Unique/MobileGestalt.git",
        "tag": "0.2.0"
    },
    "source_files": "MobileGestalt/Classes/**/*.{h,m}",
    "public_header_files": "MobileGestalt/Classes/Public/*.h",
    "dependencies": {
        "GCDWebServer": []
    }
}

Pin It on Pinterest

Share This