jbeuckm / TiBeacons

iBeacon advertising and scanning in a Titanium module
Other
135 stars 57 forks source link

CoreLocation: Fence: onClientEventRegionState, invalid state, 0 #22

Open kraigh opened 9 years ago

kraigh commented 9 years ago

I'm getting this error:

[INFO] :   Turning on region monitoring in CLBeaconRegion (identifier:'Slide Car 1', uuid:<__NSConcreteUUID 0x155b1510> B522CE3F-E524-434B-AE00-223D53F820A8, major:(null), minor:(null))
[INFO] :   proxyAppDelegateLocationManagerMethodsTo
[INFO] :   Turning on region monitoring in CLBeaconRegion (identifier:'Slide Car 2', uuid:<__NSConcreteUUID 0x155c1a20> 720858F0-E53A-800D-DC38-3854270D1609, major:(null), minor:(null))
[INFO] :   Did start monitoring region: Slide Car 1
[INFO] :   Did start monitoring region: Slide Car 2
[INFO] :   CoreLocation: Fence: onClientEventRegionState, invalid state, 0
[INFO] :   State UNKNOWN region: Slide Car 1
[INFO] :   CoreLocation: Fence: onClientEventRegionState, invalid state, 0
[INFO] :   State UNKNOWN region: Slide Car 2

My listeners look like:

function toggleMonitoring() {

    if ($.monitoringSwitch.value) {
        TiBeacons.startMonitoringForRegion({
            uuid : "b522ce3f-e524-434b-ae00-223d53f820a8",
            identifier : "Slide Car 1"
        });
        TiBeacons.startMonitoringForRegion({
            uuid : "720858F0-E53A-800D-DC38-3854270D1609",
            identifier : "Slide Car 2"
        });

    } else {

        TiBeacons.stopMonitoringAllRegions();
    }
}

Any suggestions? I'm on Titanium SDK 3.4.0 developing for iOS 8. I have the "latest" version of tibeacons.

lawjeremy commented 9 years ago

@kraigh I also see this error, did you ever find out what was causing it?

WillDent commented 9 years ago

@lawjeremy @kraigh are you guys using any other location modules? Like Appcelerator's Geo Fence?

Thanks!

lawjeremy commented 9 years ago

@WillDent Yes I determined that for me it was a conflict with another location module