phonegap / build

This is the public repository for PhoneGap Build source and bug tracking
92 stars 33 forks source link

[whitelist] subdomains true on config access not working on android #156

Closed wildabeast closed 11 years ago

wildabeast commented 11 years ago

See http://community.phonegap.com/nitobi/topics/access_elements_not_working_on_android

for more info.

wildabeast commented 11 years ago

Fixed.

wildabeast commented 11 years ago

Fix was incomplete, reopening.

soncodi commented 11 years ago

Even with <access origin="*" /> in the config file, logcat reports:

E/chromium(3122): external/chromium/net/disk_cache/stat_hub.cc:190: [0703/045803:ERROR:stat_hub.cc(190)] StatHub::Init - App com.mydomainhere isn't supported.

This started happening today; it seems to work correctly on Android 2.x, but 4.x devices are broken.

Building the app manually works.

wildabeast commented 11 years ago

@ruff the wildcard whitelist should work ... i'm not sure that what you're seeing is a whitelist rejection. Suggest firing up a discussion on campfire if you haven't already, sharing your app id and any other details you have.

wildabeast commented 11 years ago

Possibly not a build issue -- wildcard subdomains may not be working correctly on Cordova Android. Testing more.

soncodi commented 11 years ago

It may be an issue with my config file, although it hasn't changed in a while. The code works as-is building manually with Eclipse. I tried upgrading from 2.7.0 to 2.9.0, as well as deleting the app and re-creating everything, but I get the same result.

wildabeast commented 11 years ago

@ruff app id on build?

soncodi commented 11 years ago

@wildabeast 459463

thejulo06 commented 11 years ago

Hello, Do you find a solution ? Because I have the same issue with phonegap 2.9.0

soncodi commented 11 years ago

@thejulo06: Sadly, no. I am now building iOS and Android manually.

argyleink commented 11 years ago

I was having the same problem for the past hour, no changes to my whitelist items were having an effect, especially no effect from *. I am using hydration, and was just letting hydration refresh my app for the past hour, with no results. After reading this feed and peoples success with custom builds, I updated my cloud build, reinstalled it on my android 4.0, and boom, it all works.

Seems I needed to reinstall for the new permissions to be noticed by Android OS.

AaronPresley commented 11 years ago

@argyleink Holy hell - that was the fix I needed! Unfortunately it has taken me 3 hours. Live and learn.

dmeijboom commented 10 years ago

I have the same problem and nothing seems to work.. My config.xml looks something like this:

<access origin="googleapis.com" subdmains="true" />
<access origin="gstatic.com" subdmains="true" />
<access origin="jijenoverijssel.nl" subdmains="true" />
<access origin="monitoroverijssel.nl" subdmains="true" />
<access origin="google-analytics.com" subdomains="true" />
<access origin="*" />

I'm using Phonegap and the ADT bundle (Eclipse) on Mac Osx. The error messages I get are:

05-07 18:31:45.320: V/chromium(10162): external/chromium/net/disk_cache/hostres_plugin_bridge.cc:73: [0507/183145:INFO:hostres_plugin_bridge.cc(73)] netstack: Failed to find symbols in plugin: libdnshostprio.so

and:

05-07 18:31:45.320: E/chromium(10162): external/chromium/net/disk_cache/stat_hub.cc:216: [0507/183145:ERROR:stat_hub.cc(216)] StatHub::Init - App com.phonegap.helloworld isn't supported. 05-07 18:31:45.380: D/(10162): Failed to load DoObserveConnections symbol in tcp-connections.so

3nGercog commented 6 years ago

I have the same problem and nothing seems to work.

My meta tag: <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline';connect-src 'self'; img-src 'self' data: ; media-src *">

My config.xml looks something like this:

<access origin="*" />
  <preference name="SplashScreen" value="screen" />
  <preference name="windows-target-version" value="8.1" />
  <allow-intent href="http://*/*" />
  <allow-intent href="https://*/*" />
  <allow-intent href="tel:*" />
  <allow-intent href="sms:*" />
  <allow-intent href="mailto:*" />
  <allow-intent href="geo:*" />
  <allow-navigation href="http://*/*" />
  <allow-navigation href="https://*/*" />
  <allow-navigation href="data:*" />
  <allow-navigation href="svn.aml.com.ua" />

Error messages: [chromium] external/chromium/net/disk_cache/hostres_plugin_bridge.cc:52: [1009/113554:INFO:hostres_plugin_bridge.cc(52)] StatHubCreateHostResPlugin initializing... [chromium] external/chromium/net/disk_cache/hostres_plugin_bridge.cc:57: [1009/113554:INFO:hostres_plugin_bridge.cc(57)] StatHubCreateHostResPlugin lib loaded [chromium] external/chromium/net/disk_cache/hostres_plugin_bridge.cc:63: [1009/113554:INFO:hostres_plugin_bridge.cc(63)] StatHubCreateHostResPlugin plugin connected [chromium] external/chromium/net/http/http_cache.cc:1168: [1009/113554:INFO:http_cache.cc(1168)] HttpCache::OnBackendCreated HostStat created [chromium] external/chromium/net/disk_cache/stat_hub.cc:216: [1009/113554:ERROR:stat_hub.cc(216)] StatHub::Init - App io.cordova.garden8 isn't supported. [chromium] external/chromium/net/disk_cache/hostres_plugin_bridge.cc:73: [1009/113554:INFO:hostres_plugin_bridge.cc(73)] netstack: Failed to find symbols in plugin: libdnshostprio.so [chromium] external/chromium/net/disk_cache/stat_hub.cc:216: [1009/113554:ERROR:stat_hub.cc(216)] StatHub::Init - App io.cordova.garden8 isn't supported.

wildabeast commented 6 years ago

@3nGercog please open a discussion in the support forum. Also I don't think that error log you're showing is related. More informative information would probably be in your javascript console by connecting the android developer tools to your phonegap app.

3nGercog commented 6 years ago

@wildabeast I have apache cordova app. Can this affect the application?