Location services popup in app built with old sdk

Prcela

I have the app in the App Store that is built with SDK 7 and with deployment target 7. The iOS 8 has arrived in the mean time and some users use that app on new iOS. Inside application built with iOS 7 I have this line:

[self.locationManager startUpdatingLocation];

Such function call is integrated with system because the system invokes the authorisation popup and asks user to allow usage of location service. That popup has been removed in iOS 8 and there it should be presented manually by invoking function:

[self.locationManager requestWhenInUseAuthorization];

In my iOS 7 app this function is not available, so, in my old app without this request, will user be prompted to allow location usage or not?

How the iOS apps built with old sdk works on device with newer iOS, I mean, what will happen if old iOS app make a call of function that is not deprecated any more, but totally removed on new iOS?

rckoenes

You will need to check the whether the method is vailable and call it, waiting if the authentication to be given.

You can easily dot it like this:

if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined && [self.locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) {
    [self.locationManager requestWhenInUseAuthorization];
}
else {
    [self.locationManager startUpdatingLocation];
}

If you are using the older SDK then 8 your app will work the same a before, but beware that starting feb 2015 Apple requires your app to be build with the iOS 6 SDK and Xcode 6.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Update Google Play services for an old app

From Dev

iOS - accelerometer in background shows location services popup, but we don't need location services

From Dev

iOS - accelerometer in background shows location services popup, but we don't need location services

From Dev

CLLocationManager doesn't show popup if location services were previously disabled

From Dev

iOS Location Services asks on app open

From Dev

Not being prompted to enable Location Services in App

From Dev

JAR/AAR dependency management between SDK and app built using SDK

From Dev

Mac OSX 10.10 AMD APP SDK Location

From Dev

Google Play Services (fused location provider) increases app size significantly?

From Dev

How to stop using the Location Services within my iOS app?

From Dev

Android Geofences (Location Services) - How to trigger in-app events

From Dev

Android app missing status bar icon when accessing location services

From Dev

How to Revoke / Cancel / Unregister "Location Services" inside of the iOS app

From Dev

Turn off Location Services from my Android App

From Dev

UWP: How to check, if a user denied location-services for a specific app?

From Dev

Does Google Location Services' getLastLocation method start the GPS in Android app?

From Dev

Set Vector Drawable in ImageView cause app crash in old SDK

From Dev

How to get an old Google App Engine SDK version

From Dev

How to dereference old Wildfly 9.0.1 deployment artifacts of Spring MVC app built with intelliJ-IDE?

From Dev

Google Location Services Vs Android Location Services

From Dev

Apps and app updates submitted to the App Store must be built with Xcode 5.1.1 or later, and iOS 7 SDK

From Dev

Django app copied to new location is still accessing old files, because it is using the wrong settings.py

From Java

Check if location services are enabled

From Dev

wkwebview with location services

From Dev

Proper location to install services

From Dev

Experimenting with Android location services

From Dev

Location services not updating in background

From Dev

Google Location services Android

From Dev

Location Services permission is empty

Related Related

  1. 1

    Update Google Play services for an old app

  2. 2

    iOS - accelerometer in background shows location services popup, but we don't need location services

  3. 3

    iOS - accelerometer in background shows location services popup, but we don't need location services

  4. 4

    CLLocationManager doesn't show popup if location services were previously disabled

  5. 5

    iOS Location Services asks on app open

  6. 6

    Not being prompted to enable Location Services in App

  7. 7

    JAR/AAR dependency management between SDK and app built using SDK

  8. 8

    Mac OSX 10.10 AMD APP SDK Location

  9. 9

    Google Play Services (fused location provider) increases app size significantly?

  10. 10

    How to stop using the Location Services within my iOS app?

  11. 11

    Android Geofences (Location Services) - How to trigger in-app events

  12. 12

    Android app missing status bar icon when accessing location services

  13. 13

    How to Revoke / Cancel / Unregister "Location Services" inside of the iOS app

  14. 14

    Turn off Location Services from my Android App

  15. 15

    UWP: How to check, if a user denied location-services for a specific app?

  16. 16

    Does Google Location Services' getLastLocation method start the GPS in Android app?

  17. 17

    Set Vector Drawable in ImageView cause app crash in old SDK

  18. 18

    How to get an old Google App Engine SDK version

  19. 19

    How to dereference old Wildfly 9.0.1 deployment artifacts of Spring MVC app built with intelliJ-IDE?

  20. 20

    Google Location Services Vs Android Location Services

  21. 21

    Apps and app updates submitted to the App Store must be built with Xcode 5.1.1 or later, and iOS 7 SDK

  22. 22

    Django app copied to new location is still accessing old files, because it is using the wrong settings.py

  23. 23

    Check if location services are enabled

  24. 24

    wkwebview with location services

  25. 25

    Proper location to install services

  26. 26

    Experimenting with Android location services

  27. 27

    Location services not updating in background

  28. 28

    Google Location services Android

  29. 29

    Location Services permission is empty

HotTag

Archive