简体   繁体   中英

external links not opening phonegap cordova android

My Setup: Mac Mini Phonegap 5.0 Cordova 5.1 Platforms - iOS and Android Android Studio

iOS app has no problem. But on android I'm unable to use internet through app ie unable to download any content from internet. I don't know if this is because an error in config.xml file or something else.

In my config.xml file which is found in res/xml folder, the contents are like

<widget xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    .......
    <content src="index.html" />
    <access origin="*" /> </widget>

Error that I'm getting is

Error:External resource http://www.w3.org/ns/widgets is not registered

Can someone please me out here? Searching for a solution since 5 hours but unable to get any thing useful.

Whitelist plugin is also installed for android.

Re-installed the whitelist plugin. Added <allow-navigation href="*" /> in config.xml which was missing. And voila! its working now. Thanks for your help sanat

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM