-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set iframe src to content:// url failing silently #38
Comments
Shouldn't you have a . after the 0? If it's not that, go ahead and make a sample project that I can run. I'll
|
Hi- |
Also, have you tried just removing the whitelist plugin altogether?
|
(I think some changes to the Cordova code might be needed, but I don't remember..) |
Good idea - I tried removing the whitelist plugin, but no change. |
And when you removed it, you also edited some other code to make that work? Last time I tried removing the whitelist plugin, it wouldn't compile. |
Yep, it compiled -- I did have to comment out a line in the |
Ok, I'll try the zip soon. |
Thank you so much, I really appreciate it. 😃 |
The local load is working correctly? |
What happens when you don't use any parameters? ("?test") I think it is because it can't handle parameters. |
Hi, the url parameters don't matter, I should have stripped that out of my test. The local load works correctly for me - if you tap on the 'game 1' button you should see some text overlaid on top of the image. (The text is the content from www/assets/games/localGame/index.html.) |
Ha! I figured this out. My suspicion about the mime-type was correct -- to test in a hacky way, I switched the mime-type from I'm going to fork the code for now (https://github.com/SpringRoll/cordova-plugin-xapkreader). Thank you! |
I wonder if there's an easy way to just make it use the correct mime-type... I will think about this, but let me know about your progress too, so I can integrate it. |
Hi,
I really appreciate this plugin -- it's made my life a lot easier! I do have one question/potential issue.
We have set up a simple app, and the premise works great -- we can load images from the expansion pack, etc.
However, one of the key things we are trying to do is set an iframe's src to an html file that is in the expansion pack, and this is failing silently. Our initial assumption was that this was some type of security restriction, but we followed the instructions in the readme at https://github.com/agamemnus/cordova-plugin-xapkreader/blob/cordova-5.3.1/README.md. We are using your whitelist plugin.
We are setting the iframe's src using simple javascript: $("iframe")[0].src = "content://com.cloudkid.expansion/main_expansion/(path)/index.html".
We aren't seeing any output in any log, either using adb logcat or inspecting it via Chrome.
We have also tried with and without the crosswalk plugin, and it makes no difference.
We can get the contents of the html file in the expansion pack using jQuery.get("content://(path)/index.html") and verify that the html file exists.
Is this a known issue? We can create a simple version of our app with non-proprietary content if that would help diagnose things. Please let me know if you need more details. Thanks!
The text was updated successfully, but these errors were encountered: