Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
28 Views

JavaScript Windows.open or windows.location not working with Cordova CLI 5.4.1

Dear Intel Developer,

this Code is not working with  Cordova CLI 5.4.1, is working wih Cordiva CLI 5.1.1

function redirect() {

    $(document).ready(function(){
       
       window.open("http://myurl.com","_self");
       //window.location = "http://myurl.com/";
    });
}

 

Tags (2)
0 Kudos
1 Reply
Highlighted
28 Views

This is likely due to improper setting of the whitelist and CSP rules. See the "Audio Player App" for an example of proper setting of those values, and follow the (i) links on the whitelist settings section of the build settings for additional articles.

0 Kudos