Commit 05c95b5
authored
feat: IAMs now display when triggers added before first fetch (#1635)
* feat: IAMs now display when triggers added before first fetch
- Addresses issue where in-app messages wouldn't display on cold starts if their triggers were added very early (before IAM fetch completed).
- Tracks triggers added before first fetch completes, then applies the isTriggerChanged flag to matching messages when they are received from the server, ensuring redisplay logic works correctly.
* test: add tests for early trigger tracking feature
Add comprehensive test coverage for the early trigger tracking feature that enables IAMs to display when triggers are added before the first fetch completes on cold start.1 parent 6be4cf7 commit 05c95b5
5 files changed
Lines changed: 498 additions & 1 deletion
File tree
- iOS_SDK/OneSignalSDK
- OneSignal.xcodeproj
- OneSignalInAppMessagesTests
- OneSignalInAppMessages/Controller
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
1310 | 1311 | | |
1311 | 1312 | | |
1312 | 1313 | | |
| 1314 | + | |
1313 | 1315 | | |
1314 | 1316 | | |
1315 | 1317 | | |
| |||
2168 | 2170 | | |
2169 | 2171 | | |
2170 | 2172 | | |
| 2173 | + | |
2171 | 2174 | | |
2172 | 2175 | | |
2173 | 2176 | | |
| |||
4313 | 4316 | | |
4314 | 4317 | | |
4315 | 4318 | | |
| 4319 | + | |
4316 | 4320 | | |
4317 | 4321 | | |
4318 | 4322 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
152 | 158 | | |
153 | 159 | | |
154 | 160 | | |
| |||
218 | 224 | | |
219 | 225 | | |
220 | 226 | | |
| 227 | + | |
| 228 | + | |
221 | 229 | | |
222 | 230 | | |
223 | 231 | | |
| |||
404 | 412 | | |
405 | 413 | | |
406 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
407 | 432 | | |
408 | 433 | | |
409 | 434 | | |
| |||
806 | 831 | | |
807 | 832 | | |
808 | 833 | | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
809 | 841 | | |
810 | 842 | | |
811 | 843 | | |
| |||
0 commit comments