Commit 20e9bb9
committed
Change handling of Identify User 409 conflict
* On Identify User 409 conflict response, no longer fetch user by External ID nor transfer subscription.
* Instead, make a call to CreateUser with the push subscription in the payload.
* If the user has changed since then, make a CreateUser call with just the Identity Model to hydrate the OneSignal ID for any pending updates that need to be sent for the past user.
* Nit: remove an extraneous error log. The SDK already logs that it handles the 409 response. And the Client will already log this error as well.1 parent 454909d commit 20e9bb9
File tree
1 file changed
+5
-7
lines changed- iOS_SDK/OneSignalSDK/OneSignalUser/Source/Executors
1 file changed
+5
-7
lines changedLines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
347 | 346 | | |
348 | 347 | | |
349 | 348 | | |
350 | 349 | | |
351 | 350 | | |
352 | 351 | | |
353 | 352 | | |
354 | | - | |
| 353 | + | |
355 | 354 | | |
356 | | - | |
357 | | - | |
| 355 | + | |
| 356 | + | |
358 | 357 | | |
359 | | - | |
360 | | - | |
361 | | - | |
| 358 | + | |
| 359 | + | |
362 | 360 | | |
363 | 361 | | |
364 | 362 | | |
| |||
0 commit comments