Navigate not working

  • 1
  • Question
  • Updated 4 years ago
Hello
i use phonegap build
and i use on my local index.html
window.location = "http://myurl";

but it not working and the application stuck on index.html
Photo of Khaldoun Baz

Khaldoun Baz

  • 10 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
How did you whitelist 'myurl'?
Photo of Khaldoun Baz

Khaldoun Baz

  • 10 Posts
  • 0 Reply Likes
Photo of Khaldoun Baz

Khaldoun Baz

  • 10 Posts
  • 0 Reply Likes
access origin="*"
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
That is not sufficient if you are using a PGB version greater than 3.7.0
You should use the whitelist plugin from npm, and also set an allow-navigation rule for the external domain.

See the documentation that comes with that plugin.
Photo of Khaldoun Baz

Khaldoun Baz

  • 10 Posts
  • 0 Reply Likes
ok thank you so much
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Khaldoun,
if you are loading a second local HTML file, you do not need http://. Otherwise, i have no idea what you are doing.
Jesse