Right. I addit it in the "OnCreate" of my activity in replacement of the loadUrl()
On Thu, Nov 20, 2014 at 4:56 PM, Dave Richardson <[email protected]> wrote: > Ok, so let me get this right. > > You added the loadFromManifest function somwewhere in: > /platforms/android/CordovaLib/src/org/apache/cordova/CordovaActivity.java > > But what do you mean with > "then instead I used loadFromManifest( > "file:///android_asset/www/manifest_xwalk_hosts.json");" > > Where did you add loadFromManifest("file://...") ? > > Thanks! > > > > On 20-11-2014 15:47, Pierre Gaston wrote: > > ah sorry, this is more related to the problem I reported here then: > https://crosswalk-project.org/jira/browse/XWALK-2994 > > My workaround for this was to add to CordovaActivity.java: > > public void loadFromManifest(String url) { > if (appView == null) { > init(); > } > > // If keepRunning > this.keepRunning = preferences.getBoolean("KeepRunning", true); > > //Check if the view is attached to anything > if(appView.getParent() != null) > { > // Then load the spinner > this.loadSpinner(); > } > //Load the correct splashscreen > > > this.appView.loadAppFromManifest(url, null); > > } > > then instead I used loadFromManifest( > "file:///android_asset/www/manifest_xwalk_hosts.json"); > > with a manifest like: > > { > "name": "app", > "version": "0.0.0.1", > "start_url" : "file:///.....l", > "icons": { > "96": "icon.png" > }, > "xwalk_hosts": [ > "https:/blah/*" <https:/blah/*> > ] > > } > > > On Thu, Nov 20, 2014 at 4:41 PM, Dave Richardson <[email protected]> wrote: > >> Hello, did you find a solution for this yet? >> >> I am having the same problem after upgrading to Cordova 3.6.3 with >> Crosswalk Cordova 10. >> >> In config.xml I added "<access origin="*" />", but this doesn't seem to >> be enough. >> >> Greetings, >> Dave >> >> >> On 19-11-2014 6:39, Rajil wrote: >> >> Hello experts; >> >> I am using crosswalk in my cordova based application. Everything was >> working fine with cordova 3.5 and crosswalk 9 release. >> >> As soon as I upgraded my application to cordova 3.6.3 now and crosswalk >> cordova 10, I started getting error "No 'Access-Control-Allow-Origin' >> header is present on the requested resource." while calling external URL to >> authenticate user login. >> >> Do i need to change any code or put any configuration file to work with >> external URL in my cordova based android application using crosswalk 10? >> >> I was searching on this issue and found following URL: >> https://crosswalk-project.org/documentation/manifest/xwalk_hosts.html >> >> it says to put manifest.json with "xwalk_hosts" tag and i did following: >> >> Created new file manifest.json under www directory along with >> index.html file and written following content in it. >> >> "xwalk_hosts": [ >> "*" >> ] >> >> but this is not working. Any solution to this? >> >> >> regards, >> Rajil Davda >> Applied Software >> >> >> _______________________________________________ >> Crosswalk-help mailing >> [email protected]https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help >> >> >> >> _______________________________________________ >> Crosswalk-help mailing list >> [email protected] >> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help >> >> > >
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
