Questions tagged [clbeaconregion]

25 questions
7
votes
1 answer

Unable to detect Beacon when Device already in Beacon range & then we turn on Bluetooth & application is killed

I have implemented Beacon with local notification. Every thing works fine for the case when bluetooth in ON & then device enters the beacon range & app is in "Not running" state. But, when device is already in Beacon range & then Bluetooth is turned…
user928622
  • 185
  • 1
  • 12
4
votes
1 answer

Region Monitoring not working in iOS if region don't have major

In my iOs app i am trying to monitor some beacon region on different parameter as follows: > Method 1 - Region With Only UUID and Identifier : In above scenario am starting monitoring beacon region with following code where only uuid and…
BhavikKama
  • 8,566
  • 12
  • 94
  • 164
4
votes
2 answers

CLLocationManager requestStateForRegion with "When In Use" location access error code 4

I am trying to implement iBeacon ranging for an iOS app. [locationManager requestAlwaysAuthorization]; CLBeaconRegion * region = [self regionFromUUID:uuid]; [locationManager startMonitoringForRegion:region]; In order to determine if the device is…
n8yn8
  • 4,467
  • 4
  • 19
  • 20
4
votes
1 answer

CLBeaconRegion, how to turn off warning: Turn On Bluetooth to Allow * to Connect to Accessories

We have a project that is using CoreLocation regions to monitor iBeacon region entering/exiting in the app background. CLBeaconRegion (CLRegion), CLBeacon, etc. CLLocationManager returns callbacks when a CLBeacon (iBeacon) region is entered. It…
Miro
  • 5,307
  • 2
  • 39
  • 64
4
votes
2 answers

difference between didEnterRegion and didRangeBeacons

What is the exact difference between didEnterRegion and didRangeBeacons in terms of use case i mean when i should implement didEnterRegion/didExitRegion and when should i implement didRangeBeacons ? What are the each delegate method's exact…
Mihir Mehta
  • 13,743
  • 3
  • 64
  • 88
3
votes
1 answer

UIBackGround modes & iBeacons: app rejected

Apple rejected an iBeacon app because I checked "Location updates" in background mode. I made it quite obvious that the app monitors for iBeacons, this should also work in the background. Apple's response: "...Your app declares support for location…
Mathijs
  • 1,258
  • 1
  • 10
  • 27
2
votes
1 answer

Unable to range beacon with infinite time in Background mode, even after set "allowsBackgroundLocationUpdates" to TRUE

I am using CLLocationManager object to start beacon ranging as per below code. Also enable the Background mode from Target -> Capabilities. CLLocationManager *locationManager = [[CLLocationManager alloc] init]; locationManager.delegate =…
Gautam Sareriya
  • 1,833
  • 19
  • 30
2
votes
1 answer

CLPeripheralManager.startAdvertising does not accept return value of CLBeaconRegion.peripheralDataWithMeasuredPower

According to the Swift 2.0 documentation for CLBeaconRegion, it should still be possible to pass the output of the peripheralDataWithMeasuredPower: method to the startAdvertising: method of CLPeripheralManager. Getting Beacon Advertisement Data -…
PassKit
  • 12,231
  • 5
  • 57
  • 75
2
votes
2 answers

Beacon manager didenter didexit region methods are repeatedly called

I am monitoring 3 regions . But did enter region and didexitregion methods are repeated triggered even though app is inside the region. I need notifications only when app enters or exits any of the 3 region. Is this happening because i am testing…
Manu Jose
  • 131
  • 2
  • 18
1
vote
0 answers

DidEnterRegion and DidExitRegion are being called several times when monitor beacons

Here is my simple code, where I'm trying to monitor enter/exit events. The problem I faced: DidEnterRegion and DidExitRegion are being called several times: the first one - when it actually happens and another calls - when I come to background and…
1
vote
1 answer

iOS Bluetooth CBPeripheralManager Dictionary Key Support

In the CBPeripheralManager documentation, the startAdvertising method receives a dictionary containing the data you would like to advertise. According to the documentation, CBPeripheralManager.startAdvertising only accepts two possible keys in its…
1
vote
1 answer

plist stored value is different while accessing in Objective-c

I have maintained beacon information in plist and when I initialized the CLBeaconRegion, I am getting different Major and Minor values for the region. After doing NSLog I came to know that Major and Minor values holding in an NSString are giving me…
Simant
  • 3,142
  • 4
  • 32
  • 61
1
vote
3 answers

DidEnterRegion only called if requestAlwaysAuthorization is called. Beacons

didEnterRegion and didExitRegion are only called after I request and allow Always Authorization for CoreLocation Even if I request WhenInUseAuthorization didExit and didEnter won't be called How am I supposed to trigger ranging of beacons if I can't…
YichenBman
  • 5,011
  • 8
  • 46
  • 65
0
votes
1 answer

Can you apply time restrictions for ibeacon notifications when exiting a region?

I have implemented iBeacon into an app so that it will wake the app briefly from a suspended or killed state. A push notification is sent which would prompt the user to open the app if they wish to. The problem is, when a user exits then enters a…
0
votes
1 answer

Does stopMonitoringForRegion stops only the duplicated region or also the original region as well?

I am working on a beacon monitoring project and currently I am investigating the stopMonitoringForRegion method. What I am doing is, duplicate the original region and start a new monitoring for it. After 30 - 60 seconds, I stop the copied…
thus
  • 1,326
  • 1
  • 14
  • 23
1
2