...
VIZpinSDK.Framework
contains a class VIZpinSDK
. Following code snippet shows creating an object and initializing your app with the app constants. APP_VERSION should display <major.minor.patch> in numeric format.
Code Block | ||
---|---|---|
| ||
sdk = [[VIZpinSDK alloc] init]; sdk.apiServer = @"<https://YOUR_SANDBOX_HERE.force.com/VIZpin/services/apexrest/sdk";> sdk.APP_ID = @"YOUR_APP_ID_HERE"; sdk.APP_NAME = @"OEM AppName"; sdk.APP_KEY = @"YOUR_APP_KEY_HERE"; sdk.APP_KEY_VERSION = @"1.1"; sdk.APP_VERSION = @"OEM AppVersion_1.0.0"; VPUser* user = [[VPUser alloc] init]; user.phone = @"USER_PHONE_NUMBER"; user.password = @"USER_PASSWORD"; user.bluetooth = VIZpinSDK.BLE_MODE; [sdk initialize:user]; // Use this on an app start where you have cached user credentials // or [sdk initialize:nil]; // Use this on a fresh install where you have no cached user credentials |
...