Latest 2.1.9
Homepage https://github.com/inbeacon/InbeaconSdk-IOS
License Copyright Copyright 2016 Inbeacon b.v. All rights reserved.
Platforms ios 9.3
Frameworks UIKit, Foundation, SystemConfiguration, MobileCoreServices, CoreLocation, CoreBluetooth
Authors

Documentation

Read the full documentation

Basic implementation

  1. The Inbeacon SDK is available trough CocoaPods. To install
    it, add the following line to your Podfile: (use version 2.0.x for xCode 7, 2.1.x and higher for xCode 8)

    pod "InbeaconSdk", '~> 2.1'  
  2. Get your client-ID and client-Secret from your inBeacon account page and use these credentials to configure your app.

  3. Add a text item NSLocationAlwaysUsageDescription to the custom iOS target Properties in your plist "info" section.
    NSLocationAlwaysUsageDescription should contain a custom text.

    Without this, the app never asks for permission to use location and inBeacon won’t function!

  4. Edit your AppDelegate.swift / AppDelegate.m

AppDelegate.swift

import UIKit
import InbeaconSdk

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    var window: UIWindow?

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        InbeaconSdk.createWith(clientId: "<your client-ID>", clientSecret:  "<your client-Secret")
        return true
    }

    func application(application: UIApplication, didReceiveLocalNotification notification: UILocalNotification) {
        InbeaconSdk.sharedInstance.didReceiveLocalNotification(notification)
    }
}

AppDelegate.m

#import <InbeaconSdk/InbeaconSdk.h>
...
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *) launchOptions {
    [InbeaconSdk createWithClientID: @"<your client-ID>" andClientSecret: @"<your client-Secret>"]; 
}

- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
    [InbeaconSdk.sharedInstance didReceiveLocalNotification:notification];
}

Latest podspec

{
    "name": "InbeaconSdk",
    "version": "2.1.9",
    "summary": "Inbeacon SDK framework for iOS (Obj-C & Swift)",
    "homepage": "https://github.com/inbeacon/InbeaconSdk-IOS",
    "authors": {
        "Ronald van Woensel": "[email protected]"
    },
    "platforms": {
        "ios": "9.3"
    },
    "source": {
        "git": "https://github.com/inbeacon/InbeaconSdk-IOS.git",
        "tag": "2.1.9"
    },
    "documentation_url": "https://github.com/inbeacon/InbeaconSdk-IOS",
    "vendored_frameworks": "InbeaconSdk.framework",
    "resources": "resources/*",
    "frameworks": [
        "UIKit",
        "Foundation",
        "SystemConfiguration",
        "MobileCoreServices",
        "CoreLocation",
        "CoreBluetooth"
    ],
    "license": {
        "type": "Copyright",
        "text": "      Copyright 2016 Inbeacon b.v. All rights reserved.n"
    }
}

Pin It on Pinterest

Share This