Commit c83dbb1
committed
Drop insurmountable cached requests in the user executor
* Context: The user executor stops executing requests from its queue once it hits a request that cannot be sent (yet) since these need to go in order and some requests may be waiting on information from the response to previous request.
* When the user executor uncaches any requests, such requests can be:
- Fetch Identity by Subscription - only requires an app_id to be sent
- Create User - only requires app_id to be sent
- Transfer Subscription - requires subscription_id to be sent
- Identify User - requires the OSID of the anonymous user to be sent
* Of those, we already drop transfer subscription requests who are missing the subscription_id and cannot be hooked up to a model to await the subscription _id. Otherwise, this request will forever block.
* In this commit, we add the Identify User request as droppable if it is missing an OSID and it cannot be hooked up to an existing identity model to await the OSID. Otherwise, this request will forever block and remedy calls to `logout` or `login` will just sit in the queue. This scenario leads the SDK to be in a state of having an EUID but forever no OSID, which is needed to make server calls.1 parent 005a7b6 commit c83dbb1
File tree
1 file changed
+6
-0
lines changed- iOS_SDK/OneSignalSDK/OneSignalUser/Source/Executors
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
| |||
0 commit comments