I am trying to implement a flow in which i redirect the user to a web page while in the app using
Browser.Default.OpenAsync
And in my flow, I want for example to wait until the user closes that browser page, and continue the rest of my operations. How can I achieve this as I haven’t found a method in the official documentation ?
A quick example to understand what the issue is:
private async Task<string> HandleNoFunds()
{
if (!HasAcceptedStripeTerms)
{
//Handle displaying Stripe TOS
}
//Wait until this finishes so the user pays using Stripe, but at the moment it waits until the browser opens
await Browser.Default.OpenAsync(myStripeCustomPageUrl, BrowserLaunchMode.SystemPreferred);
return "success";
}
New contributor
Mihai Vasile is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
4