This repository was archived by the owner on Jul 22, 2020. It is now read-only.
Releases: Iterable/objc-sdk
Releases · Iterable/objc-sdk
Release list
5.0.3
5.0.2
5.0.2
Fixed
- The new email is now persisted when
updateEmail:is called - SDK now ensures that only one in-app message can be shown at a time
5.0.1
5.0.1
Fixed
- Fixed
spawnInAppNotificationto not block the current thread when creating the in-app notification
5.0.0
5.0.0
Added
- Added support for push action buttons
- Added a new SDK initialization method that takes
IterableConfigobject with configuration options - User ID/email is now decoupled from SDK initialization. It can be changed by calling
setEmail:orsetUserId:on theIterableAPIinstance. - Added automatic detection of APNS/APNS_SANDBOX, as long as both
pushIntegrationNameandsandboxPushIntegrationNameare set inIterableConfig - The SDK now stores attribution data within 24 hours of opening the app from a push notififcation or from a Universal Link in an email
- Added two delegates:
IterableUrlDelegateandIterableCustomActionDelegatethat can be used to customize URL and custom action handling for push notifications
Changed
- Old initialization methods (
sharedInstanceWithApiKey:) are now deprecated - Old
registerTokenmethods are now deprecated
Fixed
- Added safety checks for cases when email or userId is nil
Migration Notes
- Replace
[IterableAPI sharedInstanceWithApiKey:...]with the following:
IterableConfig *config = [[IterableConfig alloc] init];
config.pushIntegrationName = "myPushIntegration_Prod";
config.sandboxPushIntegrationName = "myPushIntegration_Dev";
config.urlDelegate = self; // If you want to handle URLs coming from push notifications
[IterableAPI initializeWithApiKey:@"YOUR API KEY" launchOptions:launchOptions config:config];- Since both pushIntegrationName and sandboxPushIntegrationName are now set in the configuration, call
[[IterableAPI sharedInstance] registerToken:token]when registering the token, and it will choose the correct integration name automatically. [IterableAPI clearSharedInstance]will do nothing if you initialize the SDK with the new initialization method. If you were previously calling[IterableAPI clearSharedInstance]to reinitialize the API with a new user, just callsetEmail:orsetUserId:instead.- User email/userId is now persisted, so you'll only need to call
setEmail:orsetUserId:when the user logs in or logs out. - The SDK now tracks push opens automatically, as long as calls to
userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:are passed to it. See README for instructions. Once it is set up, remove all direct calls totrackPushOpen:.
4.4.7
4.4.6
4.4.6
Added
- Added the
updateEmailfunction to update the user's email.
Fixed
- SDK methods now properly handle 4xx and 5xx status codes, calling onFailure with the error message received from the server.
Fixed artifacts for Deeplink Manager
Fixed getAndTrackDeeplink logic to not follow redirects
4.4.4
Changed
- Changed logic for
getAndTrackDeeplinkto not follow re-directs and return the first url redirect location instead.