0

I have a website deployed in cloud, I want to create a cordova project to display the remote url in cordova webview. I tried the following:

[_webViewEngine loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://news.163.com"]]];

It would display the page in safari, see this image.

Anybody has an idea?

Phonolog
  • 6,321
  • 3
  • 36
  • 64
tom
  • 1
  • 1

1 Answers1

0

As i searched through the same topic in stack-overflow i found these , All the questions are similar if not same and have an answer already : The first link would be quite helpful to you which tells us to use cordova plugin which is inappbrowser (https://github.com/apache/cordova-plugin-inappbrowser) :

Open a link in its own phoneGap default webview

Cordova - internal hyperlinks always open in Safari

PhoneGap: Opening external URL's in Safari

Hope this answer leads you to the right answer if not solves it.

Aakash Uniyal
  • 1,519
  • 4
  • 17
  • 32