Features: Mobile SDK

Local Storage

Store, manage, and access data on your local device.

Sometimes Local Is Best

Text, graphics, audio, video. It doesn’t make sense to store data for live sport scores locally on the device. But sometimes it does – like messages and notes that you don’t want to lose when the network goes down. Using MAS Storage, you can store as much data on the device as the device allows – securely.

Sometimes Local Is Best

Text, graphics, audio, video. It doesn’t make sense to store data for live sport scores locally on the device. But sometimes it does – like messages and notes that you don’t want to lose when the network goes down. Using MAS Storage, you can store as much data on the device as the device allows – securely.

Industry-Standard Security

If your apps require data encryption/decryption, you call a simple method: MASLocalStorage and security is handled for you. But if your app doesn’t need it (for example, a NewsRead app), it’s just as simple to turn off.

Our local storage uses industry-standard algorithms to encrypt data: AES-256, HMAC+SHA256, and PBKDF2. We also add higher levels of security to guard against brute force password searches.

Industry-Standard Security

If your apps require data encryption/decryption, you call a simple method: MASLocalStorage and security is handled for you. But if your app doesn’t need it (for example, a NewsRead app), it’s just as simple to turn off.

Our local storage uses industry-standard algorithms to encrypt data: AES-256, HMAC+SHA256, and PBKDF2. We also add higher levels of security to guard against brute force password searches.

Control Access to Data

It is easy to control which users and apps can access data. A simple parameter is all you need.

  • MAS_Application

    Everyone using the app can see the data. Data is available only within the app.

  • MAS_USER | MAS_APPLICATION

    Only the user who saves the data can see the data. Data is available only within the app.

 

 

 

Control Access to Data

It is easy to control which users and apps can access data. A simple parameter is all you need.

  • MAS_Application

    Everyone using the app can see the data. Data is available only within the app.

  • MAS_USER | MAS_APPLICATION

    Only the user who saves the data can see the data. Data is available only within the app.

 

 

 



iOS Mobile SDK: Local and Private Cloud Storage

Implementation Highlights

By default, local storage is encrypted and decrypted. However, you can easily disable it if your app doesn’t require it.

Code Samples

Your interaction with the iOS Mobile SDK looks like this:

 

Save an object to local storage using encryption:

Using encryption, saves any object conforming to the NSObjectfrom the Apple’s Foundation library. It uses a password, that is set by parameter in the method, to encrypt the object before saving it in the local storage.

    - (void)saveEncryptedObjectMethod
{
    NSObject *myObject = [[NSObject alloc] init];
    NSString *key = @"someKey";
    NSString *type = @"objectType";

    //
    // Save object to Local Storage
    //
    [MASLocalStorage saveObject:myObject withKey:key type:type mode:MASLocalStorageSegmentApplication password:@"S0m3Pwd!" completion:^(BOOL success, NSError *error) {

        
        //Your code here
    }];
}

Get all objects from local storage:

    - (void)findObjectsMethod
{
    //
    // Find all Local Storage Data by Mode
    //
    [MASLocalStorage findObjectsUsingMode:MASLocalStorageSegmentApplication completion:^(NSArray *objects, NSError *error) {
        
        //Your code here
    }];
}

More code samples:

Chat
What would you like to chat about?
Contact
Call us at +1-800-225-5224
Call us at +1-800-225-5224
Contact Us