We developed an asp.net core site and it is on our server. We would like to wrap it in a Xamarin Forms App and talk to it to send extra information. It will make it easier to maintain for my client.
I came across bridge js. The custom WebView could render the asp.net mvc site from the server and maybe talk to the Xamarin web view control to get extra functionality from Xamarin essentials.
For example, I have got a razor view which I would like it to get the geolocation from Xamarin. Is there a way the ASP.net mvc client can detect whether it is loaded on the Xamarin browser or not? We would like the website to still work when running on a traditional internet browser.
Ideally, what I would like to know is what's the way I can run the website inside Xamarin, detect that has been called from the Xamarin project and then when a user click on a button on that razor view intercept it and get the geolocation from the Xamarin app.
Hope it makes sense.