ably / specification

The Ably features spec for client library SDKs.
Apache License 2.0
0 stars 4 forks source link

RSH3e2c proposal #159

Closed maratal closed 1 year ago

maratal commented 1 year ago

In case of successful update, if it was triggered by event other than CalledActivate, updatedCallback: with no error should be called.

Currently only updateFailedCallback: called in case of update error. But now on iOS it's needed to inform a user about successful location device token update.

Specs RSH3e2 and RSH3e3

RSH3e2 On event RegistrationSynced:
   RSH3e2b If the machine is in state WaitingForRegistrationSync as a result of a CalledActivate event, make Push#activate return or call its callback with no error.
   RSH3e2a Transitions to WaitingForNewPushDeviceDetails.

RSH3e3 On event SyncRegistrationFailed:
   RSH3e3c If the machine is in state WaitingForRegistrationSync as a result of a CalledActivate event, make Push#activate return or call its callback with the error.
   RSH3e3a Otherwise, calls the updateFailedCallback provided to Push#activate with the error.
   RSH3e3b Transitions to AfterRegistrationSyncFailed.
sync-by-unito[bot] commented 1 year ago

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3742