Skip to content

Commit

Permalink
Replaced DeviceDetails with the LocalDevice in the most critical …
Browse files Browse the repository at this point in the history
…places. I think this is some kind of typo which led to an error in implementation (probably), so I don't use an update procedure for the spec here and just edited the current version.
  • Loading branch information
maratal committed Mar 31, 2024
1 parent 0741d8b commit 51734f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions textile/features.textile
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ h3(#activation-state-machine). Activation State Machine
**** @(RSH3a1a)@ Makes @Push#deactivate@ return or call its callback with no error.
**** @(RSH3a1b)@ Transitions to @NotActivated@.
*** @(RSH3a2)@ On event @CalledActivate@:
**** @(RSH3a2a)@ If the local device has @deviceIdentityToken@, performs a validation of the local DeviceDetails via the following steps. "@(RSH3a2b)@":#RSH3a2b onwards then don't apply.
**** @(RSH3a2a)@ If the local device has @deviceIdentityToken@, performs a validation of the @LocalDevice@ via the following steps. "@(RSH3a2b)@":#RSH3a2b onwards then don't apply.
***** @(RSH3a2a1)@ Checks the compatibilty of the present client with the existing registration: if the @LocalDevice@ has a non-empty @clientId@, and the present identified client has a different (non-null) @clientId@, then a @SyncRegistrationFailed@ event should be fired containing an error with @code@ 61002, and skips to "@(RSH3a2a4)@":#RSH3a2a4.
***** @(RSH3a2a2)@ If a custom @registerCallback@ was provided to @Push#activate@, pass it the local @DeviceDetails@.
***** @(RSH3a2a3)@ Otherwise, makes an asynchronous HTTP PUT request to @/push/deviceRegistrations/:deviceId@ using the local @DeviceDetails@ with the push details as body. When the registration validation request is complete, a @RegistrationSynced@ or @SyncRegistrationFailed@ event should be fired.
Expand All @@ -1163,7 +1163,7 @@ h3(#activation-state-machine). Activation State Machine
**** @(RSH3b2b)@ Transitions to @NotActivated@.
*** @(RSH3b3)@ On event @GotPushDeviceDetails@:
**** @(RSH3b3a)@ If a custom @registerCallback@ was provided to @Push#activate@, pass it the local @DeviceDetails@ updated with the push details.
**** @(RSH3b3b)@ Otherwise, make an asynchronous HTTP @POST@ request to "/push/deviceRegistrations":/rest-api/#post-device-registration using the local @DeviceDetails@ updated with the push details as body.
**** @(RSH3b3b)@ Otherwise, make an asynchronous HTTP @POST@ request to "/push/deviceRegistrations":/rest-api/#post-device-registration using the @LocalDevice@ updated with the push details as body (together with the @deviceSecret@).
**** @(RSH3b3c)@ Either way, when the registration is done, a @GotDeviceRegistration@ or @GettingDeviceRegistrationFailed@ event should be fired.
**** @(RSH3b3d)@ Transitions to @WaitingForDeviceRegistration@.
*** @(RSH3b4)@ On event @GettingPushDeviceDetailsFailed@:
Expand Down

0 comments on commit 51734f8

Please sign in to comment.