I need to create a program that, when launched, will launch a browser with the required url on android and ios devices, it does not need to do any more actions.
I understand that the question is very simple, but I work with php , I have never written anything for these devices.
Tell me, please, where to start here?

  • 2
    I think it will be easier for you to order it on the freelance exchange. Exactly easier than learning iOS And ANdroid development - Vladyslav Matviienko
  • Should the browser open in the application itself, or should the application go to the browser? - Max Mikheyenko
  • go to browser - mihail

3 answers 3

For Android, read about intent . On the issue, opening a link in a browser:

 String url = "http://www.example.com"; Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url)); startActivity(i); 

similar iOS action:

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.example.com"]]; 

    Or you can add UIWebView , then the url displayed in the application without having to go to the browser.

      For iOS in any way because Apple will most likely block the program if all its functionality consists of a redirect or webView