Skip to content

Commit

Permalink
Merge pull request #914 from OneSignal/fix/always_create_new_player
Browse files Browse the repository at this point in the history
Always create new player ids on app install
  • Loading branch information
emawby authored Apr 12, 2021
2 parents 8dead16 + f1c05ef commit a2091b2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion iOS_SDK/OneSignalSDK/Source/OSUserState.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ THE SOFTWARE.
@property (strong, nonatomic, readwrite, nullable) NSString *deviceOs;
@property (strong, nonatomic, readwrite, nullable) NSNumber *timezone;
@property (strong, nonatomic, readwrite, nullable) NSString *timezoneId;
@property (strong, nonatomic, readwrite, nullable) NSString *adId;
@property (strong, nonatomic, readwrite, nullable) NSString *sdk;
@property (strong, nonatomic, readwrite, nullable) NSString *sdkType;
@property (strong, nonatomic, readwrite, nullable) NSString *externalUserId;
Expand Down
1 change: 0 additions & 1 deletion iOS_SDK/OneSignalSDK/Source/OSUserState.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ - (NSDictionary*)toDictionary {
_deviceOs, @"device_os",
_timezone, @"timezone",
_timezoneId, @"timezone_id",
_adId, @"ad_id",
_sdk, @"sdk",
nil];

Expand Down
1 change: 0 additions & 1 deletion iOS_SDK/OneSignalSDK/Source/OneSignal.m
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,6 @@ + (OSUserState *)createUserState {
userState.deviceOs = [[UIDevice currentDevice] systemVersion];
userState.timezone = [NSNumber numberWithInt:(int)[[NSTimeZone localTimeZone] secondsFromGMT]];
userState.timezoneId = [[NSTimeZone localTimeZone] name];
userState.adId = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
userState.sdk = ONESIGNAL_VERSION;

// should be set to true even before the API request is finished
Expand Down

0 comments on commit a2091b2

Please sign in to comment.