29537

In iOS 8 Beacon not detecting

iBeacon suddenly stopped working in iOS8. Before it was working fine in previous iOS 8 versions. Anybody help me to come out from this problem?

What is the problem, Thanks

Answer1:

What you need to do is to add request permission for accessing location services in the code, like the following:

if([self.locationManager respondsToSelector:@selector(requestAlwaysAuthorization)]) { [self.locationManager requestAlwaysAuthorization]; }

Also, in your app info.plist(AppName-info.plist), add the key "NSLocationAlwaysUsageDescription" by clicking on the '+' sign besides "Information Property List". Select its type as 'String', and add any string value that can be displayed in the alert to access location permission. I hope this solves your issue.

<hr>

*Note: If you are building your own beacon sdk and integrating in the app, then please add key value pair in the info.plist of the app, and not that of the sdk. David Young's link also point in the right direction, but the problem was that you were adding key value pairs in the sdk's info.plist

Answer2:

You need to implement a new permissions model for beacons on iOS 8 building with XCode 6. See here: See here:

Location Services not working in iOS 8

Answer3:

just add following in to your viewdidload its works for me..

[locationManager requestWhenInUseAuthorization]; [locationManager requestAlwaysAuthorization];

Recommend

  • How to continue monitoring iBeacon when screen is off in iOS?
  • Android Runtime GPS Location - Blackberry Device - not working
  • How to disable location service programmatically?
  • AsyncTask NullPointerException
  • can't figure out how to embed my current location in message body correctly using CLPlacemark
  • iOS 7 Significant location change launch after termination
  • IOS UIImageView displays with black background
  • Run react-native app created using react-native-cli in expo
  • Android GPS not working in service
  • In iOS 8 Beacon not detecting
  • Can I access the active version on SAP Cloud Platform of HTML5 apps through a api?
  • AngularJS: accessing scope variables in $routeProvider
  • Latitude & Longitude Not Retrieved
  • iOS 4.0 contentScaleFactor and scale - how to handle in 3.1.3?
  • Google Chrome does not open application on Deep Link on Android
  • Detecting Ctrl + Return or Ctrl + Enter presses
  • How to check does method systemFontOfSize(fontSize: weight:) exist in iOS
  • How do I remove gloss from an iPhone app icon?
  • access an alertView's calling view
  • TextView shadow not showing up in preview - although working on real device
  • Existing App: upgrade from iOS 4.2 to iOS 5.0
  • Phoenix on Heroku: error R10
  • cant create handler inside thread that has not called looper.prepare
  • iPhone — MKReverseGeocoder.adminstrativeArea — getting state abbreviation
  • What's the need of Informal Protocols?
  • respondsToSelector - not working
  • iOS custom UTI in UIDocumentPickerViewController initWithDocumentTypes
  • CFBundleDevelopmentRegion not works as expected
  • triggering user space with kernel
  • sweetalert2 inputoptions from file in select example
  • New Firebase failed: First argument must be a valid firebase URL and the path can't contain “.”
  • JSON encode and decode on PHP
  • Building Qt project for C++11 standard
  • Exception “firebase.functions() takes … no argument …” when specifying a region for a Cloud Function
  • How to rebase a series of branches?
  • Is calc() supported in html email?
  • req.body is undefined - nodejs
  • Symfony2: How to get request parameter
  • Akka Routing: Reply's send to router ends up as dead letters
  • Is there a mandatory requirement to switch app.yaml?