Skip to content

Commit 5dc1357

Browse files
Merge pull request #53 from Iterable/feature/minor-doc-change
[MOB-xxx] - Minor doc change re: in-app message migration.
2 parents aec38c1 + 3a6735b commit 5dc1357

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`. It should return `InAppShowResponse.skip` to prevent in-app messages from showing automatically. It can call `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)