Skip to content

Commit

Permalink
Temp remove request background location (#366)
Browse files Browse the repository at this point in the history
* remove the call

* bump minor version

* add migration doc

* just comment it out

* add logger import

* Update RadarLocationPremissionManager.m

* Update MIGRATION.md
  • Loading branch information
KennyHuRadar authored Jul 12, 2024
1 parent db7659c commit d07113f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Migration guides

# 3.13.x to 3.14.x
- The `Radar.requestBackgroundLocationPermission` method is disabled in this SDK version as we refine our approach to not introduce spurious permission requirements for apps that don't use background location.

## 3.12.x to 3.13.x
- The `Radar.trackVerified()` method now returns `token: RadarVerifiedLocationToken`, which includes `user`, `events`, `token,`, `expiresAt`, `expiresIn`, and `passed`. The `Radar.trackVerifiedToken()` method has been removed, since `Radar.trackVerified()` now returns a signed JWT.

Expand Down
2 changes: 1 addition & 1 deletion RadarSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'RadarSDK'
s.version = '3.13.5'
s.version = '3.14.0'
s.summary = 'iOS SDK for Radar, the leading geofencing and location tracking platform'
s.homepage = 'https://radar.com'
s.author = { 'Radar Labs, Inc.' => 'support@radar.com' }
Expand Down
4 changes: 2 additions & 2 deletions RadarSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MARKETING_VERSION = 3.13.5;
MARKETING_VERSION = 3.14.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -1095,7 +1095,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MARKETING_VERSION = 3.13.5;
MARKETING_VERSION = 3.14.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
OTHER_CFLAGS = "-fembed-bitcode";
Expand Down
4 changes: 3 additions & 1 deletion RadarSDK/RadarLocationPremissionManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#import "RadarLocationPermissionManager.h"
#import "RadarLocationPermissionStatus+Internal.h"
#import "RadarDelegateHolder.h"
#import "RadarLogger.h"

@interface RadarLocationPermissionManager ()

Expand Down Expand Up @@ -91,7 +92,8 @@ - (void)requestBackgroundLocationPermission {

self.danglingBackgroundPermissionRequest = YES;

[self.locationManager requestAlwaysAuthorization];
[[RadarLogger sharedInstance] logWithLevel:RadarLogLevelWarning type:RadarLogTypeSDKCall message:@"This method is disabled in this SDK version as we refine our approach to not introduce spurious permission requirements for apps that don't use background location."];

if (@available(iOS 14.0, *)) {
RadarLocationPermissionStatus *status = [[RadarLocationPermissionStatus alloc] initWithStatus:self.locationManager.authorizationStatus
backgroundPopupAvailable:NO
Expand Down
2 changes: 1 addition & 1 deletion RadarSDK/RadarUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ + (NSNumber *)timeZoneOffset {
}

+ (NSString *)sdkVersion {
return @"3.13.5";
return @"3.14.0";
}

+ (NSString *)deviceId {
Expand Down

0 comments on commit d07113f

Please sign in to comment.