这是indexloc提供的服务,不要输入任何密码
Skip to content

QuimeraKoke/Bluapp-SDK-iOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS SDK Bluapp

  1. Copiar el directorio sdkbeacons a su proyecto.

  2. Incluir los siguientes framework en su proyecto.

    CoreLocation CoreBluethool

    libkontakt-ios-sdk.a (va dentro del directorio)

  3. En el info.plist en la sección “Required background modes” añadir

App communicates using CoreBluetooth App shares data using CoreBluetooth App downloads content from the network App registers for location updates

  1. En appdelegate.h importar el modulo BluappManager, agregando la siguiente linea al inicio del código #import "BluappManage.h"

  2. En appdelegate.m sobreescribir sus dos métodos idFinishLaunchingWithOptions y didReceiveLocalNotification

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

    bluapp= [BluappManage alloc]; [bluapp startWithCustomer:@"suCuentaDeveloper@bluapp.cl"]; //Adquiera una cuenta para usar este SDK

    NSUUID *oNSUUID = [[UIDevice currentDevice] identifierForVendor]; [bluapp setToken:[oNSUUID UUIDString]];

  • (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification { NSMutableDictionary *r = [[NSMutableDictionary alloc] init];

    if ( application.applicationState == UIApplicationStateActive ) { [r setObject:@YES forKey:@"show"]; [r setObject:notification.userInfo forKey:@"userInfo"]; } else { [r setObject:@NO forKey:@"show"]; [r setObject:notification.userInfo forKey:@"userInfo"]; [bluapp reciveRemoteNotification:r andshow:FALSE]; } }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published