Skip to content

Commit 5fcde14

Browse files
Minor doc change re: in-app message migration.
1 parent aec38c1 commit 5fcde14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,9 @@ To customize the time delay between successive in-app messages (default value of
390390

391391
If you are already using in-app messages, then you will have to make the following changes to your code:
392392

393-
1. `spawnInAppNotification` is no longer needed. In-app messages will be displayed automatically. Remove all `spawnInAppNotification` calls.
394-
2. Stop polling for in-app messages. The SDK will issue a callback using `config.inAppDelegate` [as explained above](#overriding-whether-to-show-or-skip-a-particular-in-app-message).
395-
3. Remove calls to 'IterableAPI.getInAppMessages()' and use `IterableAPI.inAppManager.getInAppMessages()` instead.
393+
1. `spawnInAppNotification` is no longer needed and will fail to compile. In-app messages are now displayed automatically.
394+
2. Stop polling for in-app messages using a timer etc. The SDK will issue a callback using `config.inAppDelegate` [as explained above](#overriding-whether-to-show-or-skip-a-particular-in-app-message).
395+
3. If you want to handle all in-app messages manually, as before these changes, define an `inAppHandler` on `IterableConfig` that always returns `InAppShowResponse.skip` to never show in-app messages automatically, and use `getInAppManager().getMessages()` to get the messages and `getInAppManager().showMessage(message)` to show a specific message.
396396

397397

398398
### Tracking custom events

0 commit comments

Comments
 (0)