Provisioning Connection Settings from Afaria

Connection Settings for an application can be provisioned using the Afaria client that is installed on the mobile device.

Syntax

- (NSInteger) setConnectionProfileFromAfaria: (NSURL *) url
appUrlScheme: (NSString *) urlScheme

Parameters

  • url – URL generated by Afaria and is specific to the URL scheme.
  • urlScheme – URL scheme of the application. This is used by the Afaria library to communicate with the Afaria client.

Examples

  • Set Connection Profile Settings
    - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{
    LiteSUPUserManager* userManager = [LiteSUPUserManager getInstance:<application_id>];
    [userManager setConnectionProfileFromAfaria:url appUrlScheme:<url_scheme>];
    }