Is it possible to make Crashes.GetErrorAttachments async? I got a scenario where i need to retrieve some user data from my app database async.
Good idea but I cannot answer about any ETA for this.
We need to discuss it for iOS as it needs to be done on underlying SDK side.
For Android, that should not be an issue as this is called from a background thread already, it's safe to block there.
A workaround in iOS is to use the confirmation feature. Return true in Crashes.ShouldAwaitUserConfirmation, then call Crashes.NotifyUserConfirmation(UserConfirmation.Send) from a background thread that you spawn from that callback for example, this will resume the workflow and call get error attachments from same thread as Crashes.NotifyUserConfirmation(UserConfirmation.Send).
Note that the workarounds mentioned is not to use async but to block in a thread that is guaranteed not to be the UI one, we keep the issue opened for providing a real async mechanism.
Most helpful comment
Note that the workarounds mentioned is not to use async but to block in a thread that is guaranteed not to be the UI one, we keep the issue opened for providing a real async mechanism.