Estimote / iOS-Fleet-Management-SDK

Estimote Fleet Management SDK for iOS
https://developer.estimote.com
MIT License
1.18k stars 398 forks source link

SIGABRT crash when using nearablemanager #225

Closed Luxilia closed 4 years ago

Luxilia commented 8 years ago

I get a SIGABRT crash when trying to use the nearableManager in any way, for ranging or monitoring of nearables.

FREObject startNearableListening(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[]) {
    @autoreleasepool {
        NSString *event = @"Nearable";
        NSString *code = @"Nearable listener started";
        //NSString *code = notImplemented;
        dispatchEvent(event, code);
        if(locationExtension.nearableManager != nil){
            @try{
                [locationExtension.nearableManager startMonitoringForIdentifier: @"32961b8de61e7106"];
            }
            @catch(NSException * e){
                NSLog(@"Exception: %@", e);
            }
            @finally{
                NSLog(@"finally");
            }
        }

    }
    return nil;
}

This is the function that crashes. As you can see, I'm checking that the manager is not nil, and I even threw the call into a try/catch block to catch any exception, but it still enters (so not nil) and just crashes upon start of monitoring.