在Phonegap开发人员应用中使用iframe [英] Use iframe within phonegap developer app

查看:54
本文介绍了在Phonegap开发人员应用中使用iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用cordova开发混合应用程序。为了进行测试,我在手机上使用了Phonegap Developer应用程序。

I'm developing an hybrid app with cordova. For testing I use the Phonegap Developer App on mobile. This works great in most cases, but now I have a problem.

似乎所有带有外部内容的iframe在iOS的Phonegap Developer应用程序中都为空。当我在iPhone上构建应用程序时,会显示iframe及其内容。

It seems that all iframes with external content stays empty within the the Phonegap Developer App on iOS. When I build the app to my iPhone the iframe with its content is displayed.

这是Phonegap Developer应用程序的一个问题,需要对其进行修复才能制造iframe可以在Phonegap Developer应用程序中正常工作,还是可以做些事情使其工作?

Is this an issue of the Phonegap Developer App which needs to fixed in order to make the iframe work within the Phonegap Developer app, or can I do something to make it work?

例如,我想将iframe用于youtube嵌入。

I want to use the iframe for youtube embeds for example.

科尔多瓦版本:6.2.0
以下行在我的config.xml中

Cordova version: 6.2.0 Following lines are in my config.xml

<access origin="*" />
<allow-navigation href="*" />
<allow-intent href="*" />


推荐答案

太好了!您的问题是我下班后三天一直试图解决的问题的答案。我也有同样的问题。我无法使用Iphone开发人员应用在IOS上显示嵌入式youtube视频。我以为我的代码或配置有问题,但看起来全都与应用有关!

Great! your question is answer of my question that i have been trying to solve for 3 days after work. I have the same problem. I can not display embedded youtube videos on IOS using Iphone developer App. I thought there is a problem with my code or configuration but looks like it was all about app!

我的建议是不要浪费时间。我为您做了:)找不到任何解决方案。让我们知道您是否找到解决方案。

My suggestion is don't waste your time. I did it for you :) and couldn't find any solution. let us know if you find solution.

这篇关于在Phonegap开发人员应用中使用iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆