Skip to content

Commit

Permalink
Pushwoosh iOS SDK 6.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
PushwooshCI committed Jan 17, 2024
1 parent 59777c0 commit 9331f58
Show file tree
Hide file tree
Showing 21 changed files with 75 additions and 19 deletions.
9 changes: 9 additions & 0 deletions Documentation/Pushwoosh.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ Pushwoosh class offers access to the singleton-instance of the push manager resp
<tr>
<td><a href="#1a0e0d155a862e9ca4c3839e2c3f8d4115">- (NSString *_Nonnull)getHWID</a></td>
</tr>
<tr>
<td><a href="#1ad7d1b0957e50d70e5ae445a295744350">- (NSString *_Nonnull)getUserId</a></td>
</tr>
<tr>
<td><a href="#1ab614f1fcd98bce58db800a09baf22f6d">- (void)setUserId:(NSString *_Nonnull)userId completion:(void(^)(NSError *_Nullable error))completion</a></td>
</tr>
Expand Down Expand Up @@ -370,6 +373,12 @@ Gets HWID. Unique device identifier that used in all API calls with Pushwoosh. T
----------
#### <a name="1ad7d1b0957e50d70e5ae445a295744350"></a>- (NSString \*<a href="Pushwoosh.md#1aa7caab3e4111d4f4756a1e8d56d01c26">_Nonnull</a>)getUserId
Gets UserId.<br/><br/><br/><strong>Returns</strong> userId. If the userId hasn't been set previously, then the userId is assigned the HWID.
----------
#### <a name="1ab614f1fcd98bce58db800a09baf22f6d"></a>- (void)setUserId:(NSString \*<a href="Pushwoosh.md#1aa7caab3e4111d4f4756a1e8d56d01c26">_Nonnull</a>)userId completion:(void(^)(NSError \*<a href="Pushwoosh.md#1ae9429c76f749caa36e1f798ef3e06c6c">_Nullable</a> error))completion
Set User indentifier. This could be Facebook ID, username or email, or any other user ID. This allows data and events to be matched across multiple user devices. If setUserId succeeds competion is called with nil argument. If setUserId fails completion is called with error.<br/><br/><br/><strong>Parameters</strong><br/>
<table>
Expand Down
9 changes: 8 additions & 1 deletion Framework/Pushwoosh.framework/Versions/A/Headers/Pushwoosh.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.5.6"
#define PUSHWOOSH_VERSION @"6.5.7"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -365,6 +365,13 @@ Unregisters from push notifications.
*/
- (NSString * _Nonnull)getHWID;

/**
Gets UserId.
@return userId. If the userId hasn't been set previously, then the userId is assigned the HWID.
*/
- (NSString * _Nonnull)getUserId;

/**
Returns dictionary with enabled remove notificaton types.
Expand Down
Binary file modified Framework/Pushwoosh.framework/Versions/A/Pushwoosh
Binary file not shown.
Binary file modified Framework/PushwooshGeozones.framework/Versions/A/PushwooshGeozones
Binary file not shown.
10 changes: 5 additions & 5 deletions XCFramework/Pushwoosh.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,34 @@
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>Pushwoosh.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
<string>maccatalyst</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>Pushwoosh.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.5.6"
#define PUSHWOOSH_VERSION @"6.5.7"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -365,6 +365,13 @@ Unregisters from push notifications.
*/
- (NSString * _Nonnull)getHWID;

/**
Gets UserId.
@return userId. If the userId hasn't been set previously, then the userId is assigned the HWID.
*/
- (NSString * _Nonnull)getUserId;

/**
Returns dictionary with enabled remove notificaton types.
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.5.6"
#define PUSHWOOSH_VERSION @"6.5.7"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -365,6 +365,13 @@ Unregisters from push notifications.
*/
- (NSString * _Nonnull)getHWID;

/**
Gets UserId.
@return userId. If the userId hasn't been set previously, then the userId is assigned the HWID.
*/
- (NSString * _Nonnull)getUserId;

/**
Returns dictionary with enabled remove notificaton types.
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</data>
<key>Headers/Pushwoosh.h</key>
<data>
A+GgT1IuLu5/OHhKsBhlKGrqGB0=
NKbTKmTdt103f1ytahLEOgKWh5Y=
</data>
<key>Info.plist</key>
<data>
Expand Down Expand Up @@ -188,11 +188,11 @@
<dict>
<key>hash</key>
<data>
A+GgT1IuLu5/OHhKsBhlKGrqGB0=
NKbTKmTdt103f1ytahLEOgKWh5Y=
</data>
<key>hash2</key>
<data>
+NQIDzZyBTbxCNHCKuCBEZZNdIy1fOzjBdOioVTjsVc=
vkxxrmq0UKesrycGww6u8w8UCG9pF4fAEYMePp+H7s4=
</data>
</dict>
<key>Modules/module.modulemap</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.5.6"
#define PUSHWOOSH_VERSION @"6.5.7"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -365,6 +365,13 @@ Unregisters from push notifications.
*/
- (NSString * _Nonnull)getHWID;

/**
Gets UserId.
@return userId. If the userId hasn't been set previously, then the userId is assigned the HWID.
*/
- (NSString * _Nonnull)getUserId;

/**
Returns dictionary with enabled remove notificaton types.
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion iOS_SDK/Pushwoosh/Pushwoosh.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Pod::Spec.new do |s|

s.name = "Pushwoosh"
s.version = "6.5.6"
s.version = "6.5.7"
s.summary = "Push notifications library by Pushwoosh."
s.platform = :ios

Expand Down
16 changes: 12 additions & 4 deletions iOS_SDK/Pushwoosh/Pushwoosh/Persistence/PWPreferences.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,19 @@ - (instancetype)init {
[[NSUserDefaults standardUserDefaults] removeObjectForKey:KeyUserId];
[_defaults setObject:_userId forKey:KeyUserId];
} else {
_userId = [_defaults objectForKey:KeyUserId];
if ([_defaults objectForKey:KeyUserId]) {
_userId = [_defaults objectForKey:KeyUserId];
} else {
_userId = _hwid;
}
}
} else {
_userId = [[NSUserDefaults standardUserDefaults] objectForKey:KeyUserId];
NSString *userId = [[NSUserDefaults standardUserDefaults] objectForKey:KeyUserId];
if (userId) {
_userId = userId;
} else {
_userId = _hwid;
}
}

_lastRegTime = [[NSUserDefaults standardUserDefaults] objectForKey:KeyLastRegTime];
Expand Down Expand Up @@ -471,8 +480,7 @@ + (NSString *)readProductionAppCodeAndUpdateIfNeeded {
NSString *userDefaultsAppCode = [[NSUserDefaults standardUserDefaults] objectForKey:KeyAppId];

if (userDefaultsAppCode && infoPlistAppCode) {
//Info plist app code updated, we need update cache Info.plist app code and change defaults app code
if (![infoPlistAppCode isEqualToString:saveInfoPlistAppCode]) {
if (![infoPlistAppCode isEqualToString:saveInfoPlistAppCode]) {
if (![userDefaultsAppCode isEqualToString:infoPlistAppCode]) {
[self resetCache];
}
Expand Down
9 changes: 8 additions & 1 deletion iOS_SDK/Pushwoosh/Pushwoosh/Public/Pushwoosh.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#endif

#define PUSHWOOSH_VERSION @"6.5.6"
#define PUSHWOOSH_VERSION @"6.5.7"


@class Pushwoosh, PWMessage, PWNotificationCenterDelegateProxy;
Expand Down Expand Up @@ -365,6 +365,13 @@ Unregisters from push notifications.
*/
- (NSString * _Nonnull)getHWID;

/**
Gets UserId.
@return userId. If the userId hasn't been set previously, then the userId is assigned the HWID.
*/
- (NSString * _Nonnull)getUserId;

/**
Returns dictionary with enabled remove notificaton types.
Expand Down
4 changes: 4 additions & 0 deletions iOS_SDK/Pushwoosh/Pushwoosh/Public/Pushwoosh.m
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ - (NSString *)getHWID {
return [PWPreferences preferences].hwid;
}

- (NSString *)getUserId {
return [PWPreferences preferences].userId;
}

- (NSString *)applicationCode {
return [PWPreferences preferences].appCode;
}
Expand Down
2 changes: 1 addition & 1 deletion iOS_SDK/Pushwoosh/PushwooshXCFramework.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Pod::Spec.new do |s|

s.name = "PushwooshXCFramework"
s.version = "6.5.6"
s.version = "6.5.7"
s.summary = "Push notifications library by Pushwoosh."
s.platform = :ios

Expand Down
Binary file modified iOS_SDK/Pushwoosh/build/XCBuildData/build.db
Binary file not shown.
Binary file not shown.
Binary file modified iOS_SDK/Pushwoosh/buildI/XCBuildData/build.db
Binary file not shown.
Binary file not shown.

0 comments on commit 9331f58

Please sign in to comment.