how can I open url link in Unity/Vuforia android app

Hello,
I have made a Vuforia app for android and everything works perfect, except from a GUI button. I want it to link to my site (I’m using Application.OpenURL), it opens correctly in my browser, but when I go back to my app it automatically restarts…
How can I avoid this? Is thre any other C# method to do this? I’m new to scripting, any help would be very much appreciated!

Thank you very much.

This is typically because when your device switches to the web-app it decides for whatever reason that it needs to free up some memory, its common policy on android and iOS that when the devices wants more memory, it will simply terminate some apps running in the background in order to get what it needs. The best way to avoid this is to try and reduce the amount of memory your app takes to run, but beyond that, at the end of the day, this will still occur sometimes on some devices and there isn’t really anything you can do to stop it entirely, you can only try to reduce it. If you ensure that all other apps on your device are closed, and only your app is running you may notice it does not occur.

Of course there is also the possibility that your application has a bug when the on resume methods are called that then causes it to crash, but checking the logs through LogCat would be a quick way of checking and or eliminating this possibility.

Thank you Harry for your answer. So, if that’s a memory problem I suppose there is nothing else to try - or maybe not? Any other methods for calling a URL through my app?

Thank you very much