You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correct me if I am wrong, but I don't think this is possible.
The issue arises because, after the app is killed and then restored, the asynchronous function waiting for a result cannot persist its state. When the app is restored, the function that was waiting is no longer in the same state, so it doesn’t know to continue awaiting the response. The awaiter context is lost during the state restoration process, making it impossible for the function to resume waiting for the result without additional mechanisms.
qlevar_router allows to return the result from a page this way:
final result = await QR.to<String>('/page', waitForResult: true);
This works fine until we want to support state restoration on android. Consider the following steps:
The caller page will not receive this result.
I haven't found a way to pass result in a way that survives state restoration. Would be helpful to have this option.
The text was updated successfully, but these errors were encountered: