You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2020. It is now read-only.
- Added a new SDK initialization method that takes `IterableConfig` object with configuration options
22
+
- User ID/email is now decoupled from SDK initialization. It can be changed by calling `setEmail:` or `setUserId:` on the `IterableAPI` instance.
23
+
- Added automatic detection of APNS/APNS_SANDBOX, as long as both `pushIntegrationName` and `sandboxPushIntegrationName` are set in `IterableConfig`
24
+
- 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
25
+
- Added two delegates: `IterableUrlDelegate` and `IterableCustomActionDelegate` that can be used to customize URL and custom action handling for push notifications
26
+
27
+
#### Changed
28
+
- Old initialization methods (`sharedInstanceWithApiKey:`) are now deprecated
29
+
- Old `registerToken` methods are now deprecated
30
+
31
+
#### Fixed
32
+
- Added safety checks for cases when email or userId is nil
33
+
34
+
#### Migration Notes
35
+
1. Replace `[IterableAPI sharedInstanceWithApiKey:...]` with the following:
config.urlDelegate = self; // If you want to handle URLs coming from push notifications
41
+
[IterableAPI initializeWithApiKey:@"YOUR API KEY" launchOptions:launchOptions config:config];
42
+
```
43
+
2. 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.
44
+
3. `[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 call `setEmail:` or `setUserId:` instead.
45
+
4. User email/userId is now persisted, so you'll only need to call `setEmail:` or `setUserId:` when the user logs in or logs out.
46
+
5. 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 to `trackPushOpen:`.
0 commit comments