Buzztouch geo location not working compiled in xcode 6 - ios

I upgraded to xcode 6, compiled a new app, discovered that the geo location is not working, and am searching for a work around.
There is no option in the phone's settings for the newly compiled app to choose a privacy/location services option "Never" or "always.
The older apps compiled in xcode5 still have this option.
UPDATE
Problem solved. Compiled in BT 3.0
- Added this code in BT_screen_customURL.m under the //appDelegate comment (line 64)
if ([appDelegate.rootLocationMonitor.locationManager respondsToSelector:#selector(requestAlwaysAuthorization)])
[appDelegate.rootLocationMonitor.locationManager requestAlwaysAuthorization];
Added these as string messages to info.plist
NSLocationAlwaysUsageDescription
NSLocationWhenInUseUsageDescription
Additonal informaton: https://www.buzztouch.com/forum/thread.php?tid=DA308929DBC29D1DB83B7A8&currentPage=1
Also, the link provided by Alberto below was helpful.

Your app is write in Objective C?
add the following lines:
kCLAuthorizationStatusAuthorizedAlways <- For background battery-killers.
kCLAuthorizationStatusAuthorizedWhenInUse <- For sensible apps.
in your plist
For more information: http://www.splinter.com.au/2014/09/14/ios8-corelocation/
Best,
Alberto

Related

ITMS-90842: Invalid SDK usage with AppClip and Flutter

Until I upload myapp to appstore
I have this issue:
Please correct the following issues, then upload again.
ITMS-90842: Invalid SDK usage - App clip
'Runner.app/AppClips/RunnerAppClip.app' uses the SDK selector
'requestAlwaysAuthorization', which is not supported. Ensure your app clip is
using supported SDK features.
I am used location permission but how exclude specific location from AppClip
You can include/exclude specific lines of code from your App Clip target using a Swift Compilation Flag.
To do this you can open the Build Settings of your App Clip target and add some custom flag like APPCLIP.
Then in your code...
#if !APPCLIP
//Location code that uses `requestAlwaysAuthorization`
#endif

Geofencing events not working on simulator (Xamarin.ios)

I have a problem with firing geofence events on Xamarin.ios . I remember I used to have it working using the same methods in the past. Right now it doesn't work somehow.
I'm using the following code to start monitoring:
CLLocationManager locMan = new CLLocationManager();
locMan.RequestWhenInUseAuthorization();
locMan.RequestAlwaysAuthorization();
locMan.RegionEntered += (sender,
e) => { Console.WriteLine("You've entered the region"); };
locMan.RegionLeft += (sender, e) => { Console.WriteLine("You've left
the region"); };
CLCircularRegion aRegion2 = new CLCircularRegion(new
CLLocationCoordinate2D(30.432, 97.7360), 100, "apple test");
locMan.StartMonitoring(aRegion2);
And that's one demo project that I'm trying to test the geofence events on but not working :
https://github.com/aproram/Xamarin_ios_geofence_issue_demo
I'm testing the location change from the simulator menu (Debug->locaiton->custom location). Sometimes I get this message in the console output while changing the location:
[Client] #Spi, Interrupted
Development environment:
Visual Studio v8.1
Xamarin.iOS Version: 12.10.0.153
xCode 10.1
Simulator iphone 6s (ios 12.1)
One thing to mention, I tried testing geofencing with an xCode SWIFT project and the events were fired. So I'm not sure if the problem is with my C# code or VS..
stack overflow post
I don't know if this is the issue you are running into, but you need to make sure you have all three of the description keys in your info.plist for anything > iOS 11. That may be why it used to work, but doesn't work now.
The keys are as follows:
NSLocationAlwaysAndWhenInUseUsageDescription
NSLocationAlwaysUsageDescription
NSLocationWhenInUseUsageDescription
There is a WWDC video talking about the changes in CoreLocation coming in iOS 13 so this may change yet again (I don't remember the details of that offhand).
iOS 13 CoreLocation Video

iOS8 - Simulator - How to get Locations simulated

My App tracks your location.
With iOS8 I had to change how it was starting location services.
I got this working with
[self.locationManager requestAlwaysAuthorization];
and adding NSLocationAlwaysUsageDescription to the plist file.
The app now gets your location when run on a device, but not in the simulator.
Any clues on how to get this to work in the simulator? It used to!!!
In the iOS Simulator, select Debug > Location, then choose your location.
I decided to post this in case anyone else had the same issue. I got the simulator to respond to location changes again by adding NSLocationWhenInUseUsageDescription back into the plist file. I had removed it since my app needs the Always permission instead of WhenInUse. By adding this back to the plist the simulator is now happy. I did not have this issue on the physical device, just the simulator.

Cannot get user's location with NSLocationWhenInUseUsageDescription

I'm using Xcode 6 beta (6A215l). I've referred this question and updated my code to:
use NSLocationWhenInUseUsageDescription in the .plist file,
call requestWhenInUseAuthorization in the source code
but neither didUpdateLocations: nor didFailWithError: was called. If I use NSLocationAlwaysUsageDescription and requestAlwaysAuthorization, my app works.
Does anyone have the same problem? I wonder if I should try with Xcode 6 beta 2..
In fact, if you want to use the requestWhenInUseAuthorization in your app and gets the didUpdateLocations: and didFailWithError: delegate methods to be called, you need to set in your .plist file BOTH NSLocationAlwaysUsageDescription and NSLocationWhenInUseUsageDescription keys, to make it work.
Theses texts will then be displayed in the Settings/Privacy/Location Services/App section of your device.

geocoder gives wrong address in ios 5

For 5.0, i use the clgeocoder and clplacemark, but i get "1 stockton street" everytime. I believe 1 stockton st is the address of an apple store in s.f. The Mk classes work for the same program for younger version simulators.
Why is the 5.0 simulator defaulting to the store's location?
Check out the Location Simulation section in the release notes for Xcode 4.2
You can also simulate movement using a GPX file, check this out Simulate Location including movement in Xcode 4.2 / iOS5
Earlier versions of iOS simulator have no location while iOS 5 Simulator have the ability to simulate location (note the location arrow at the bottom of xCode screen). I don't know how you simulate location changes in your code, but it may happen, that simulator activity interrupts your location changes chain.

Resources