For any issues contact iOS lead Gabriel: gabriel@xmodesocial.com

XMode SDK is a Cocoapod and requires iOS 9.1+.

  1.  Add GJPG to your podfile, and make sure use_frameworks! is included.

    use_frameworks!


        target 'YOUR_TARGET_HERE' do

pod 'GJPG', '1.5.2'

end

  1. In AppDelegate.m, add:

    #include <GJPG/GJPG.h>

    (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    [[GJPG sharedInstance] startWithApiKey:@"YOUR-API-KEY-HERE"];

    NOTE: This will trigger the location permissions dialogue, so you may want to put this call after you have requested permissions from within your app.
    XMode requires that you offer the user the choice to have location always on.

 

  1. Add an entry in your info.plist

    <key>NSBluetoothPeripheralUsageDescription</key>
    <string>We use Bluetooth to enhance your location while in background</string>


    NOTE: this text will actually never be seen by the user because we use BlueTooth only for location, but Apple will reject your app without it.

  1. Add these to your info.plist. Replace the text with whatever you think will help your users understand why they should share location.

    <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
    <string>This allows us to use your location to provide you certain features like tracking movement more accurately, plus some other cool stuff.</string>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>This allows us to use your location to provide you certain features like tracking movement more accurately, plus some other cool stuff.</string>

  1. In the Notes section of your app entry in itunesconnect, add this text so your app will be approved.

    We use Beacons In Space as a beacon SDK. We are using both startMonitoringForRegion: and startRangingBeaconsInRegion: for our beacon use. Beacons are meant to enhance location in the app. There is no direct UI effect though, only better location. The app does NOT use Bluetooth or CoreBluetooth directly. iBeacon only uses CoreLocation for region monitoring.

  1. Disable bitcode for your project.

    XMode relies on a number of libraries that don’t currently don’t support bitcode, so it must be turned off for your project. If this is a problem, please contact us.