File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
iOS_SDK/OneSignalSDK/Source Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ - (void)sendReceiveReceiptCachedWithNotification:(NSString *)notificationId {
4545 NSUserDefaults *userDefaultsShared = [OneSignalSharedUserDefaults getSharedUserDefault ];
4646 let currentSubscriptionState = [[OSSubscriptionState alloc ] initAsFrom ];
4747 let playerId = [currentSubscriptionState userId ];
48- let appId = [userDefaultsShared stringForKey: APP_ID ];
48+ let appId = [userDefaultsShared stringForKey: NSUD_APP_ID ];
4949
5050 [self sendReceiveReceiptWithPlayerId: playerId notificationId: notificationId appId: appId];
5151}
Original file line number Diff line number Diff line change @@ -604,15 +604,15 @@ +(bool)initAppId:(NSString*)appId withUserDefaults:(NSUserDefaults*)userDefaults
604604 }
605605
606606 if (!app_id) {
607- app_id = [userDefaults stringForKey: APP_ID ];
607+ app_id = [userDefaults stringForKey: NSUD_APP_ID ];
608608 if (![settings[kOSSettingsKeyInOmitNoAppIdLogging ] boolValue ])
609609 onesignal_Log (ONE_S_LL_FATAL, @" OneSignal AppId never set!" );
610610 else
611611 return true ;
612- } else if (![app_id isEqualToString: [userDefaults stringForKey: APP_ID ]]) {
612+ } else if (![app_id isEqualToString: [userDefaults stringForKey: NSUD_APP_ID ]]) {
613613 // Handle changes to the app id. This might happen on a developer's device when testing
614614 // Will also run the first time OneSignal is initialized
615- [userDefaults setObject: app_id forKey: APP_ID ];
615+ [userDefaults setObject: app_id forKey: NSUD_APP_ID ];
616616 [userDefaults setObject: nil forKey: USERID];
617617 [userDefaults synchronize ];
618618 }
Original file line number Diff line number Diff line change 3838#define EMAIL_AUTH_CODE @" GT_EMAIL_AUTH_CODE"
3939#define SUBSCRIPTION_SETTING @" ONESIGNAL_SUBSCRIPTION_LAST"
4040#define EMAIL_USERID @" GT_EMAIL_PLAYER_ID"
41+ #define NSUD_APP_ID @" GT_APP_ID"
4142#define USERID @" GT_PLAYER_ID"
4243#define USERID_LAST @" GT_PLAYER_ID_LAST"
4344#define USER_LAST_CLOSED_TIME @" GT_LAST_CLOSED_TIME"
7071#define CACHED_RECEIVED_NOTIFICATION_IDS @" CACHED_RECEIVED_NOTIFICATION_IDS"
7172#define CACHED_UNATTRIBUTED_UNIQUE_OUTCOME_EVENTS_SENT @" CACHED_UNATTRIBUTED_UNIQUE_OUTCOME_EVENTS_SENT"
7273#define CACHED_ATTRIBUTED_UNIQUE_OUTCOME_EVENT_NOTIFICATION_IDS_SENT @" CACHED_ATTRIBUTED_UNIQUE_OUTCOME_EVENT_NOTIFICATION_IDS_SENT"
73- #define APP_ID @" GT_APP_ID"
7474
7575// To avoid undefined symbol compiler errors on older versions of Xcode,
7676// instead of using UNAuthorizationOptionProvisional directly, we will use
You can’t perform that action at this time.
0 commit comments