0.9.5 youtube iframe

181 views
Skip to first unread message

Nate K

unread,
May 6, 2011, 1:12:03 PM5/6/11
to phonegap
Hey,

With the new 0.9.5 phonegap version I am having an issue with the
youtube iFrame issue where it opens the iframe in a mobile safari
version instead of placing it in the page container I have in my
application.

Is there anyway to have the iframe not open in mobile safari ...
because this is a major issue and if this can't be fixed I have to go
back to phonegap 0.9.4

Thanks,
nate

Nate K

unread,
May 6, 2011, 1:21:38 PM5/6/11
to phonegap
just an update... any iframe with an external site opens in mobile
safari, not just having the youtube.

iFrames should not load in mobile safari

Nate K

unread,
May 9, 2011, 12:20:52 PM5/9/11
to phonegap
any update/help?

Dogood

unread,
May 31, 2011, 11:23:08 AM5/31/11
to phonegap
I have the same problem. In an earlier version of PhoneGap I had a
nice solution using iFrame to insert information from a website into a
frame within my app. We only use webbpages formatted so they look like
nice IOS pages using iWebKit. The App is accepted by Apple so we have
already started to use.

When I now updated to phonegap.0.9.5 it stopped working. Instead of
showing the information in a frame in the app window it will open
Safari an show it on that. And of course that isnt what I want.
Because then I leave my App and cant get back to it. We are using
iPhone and iPod Touch.

So how to solve this problem?

Is it a wanted change in phonegap or some error that will be
corrected. Or can I do something myself to fix this.

Or is it possible to use <object> instead of <iframe> in some way. I
have tried that but the result is the same o safari window is opened.

/Per




On 9 Maj, 18:20, Nate K <nathan...@natekis.com> wrote:
> any update/help?
>
> On May 6, 10:21 am, Nate K <nathan...@natekis.com> wrote:
>
>
>
> > just an update... anyiframewith an external site opens in mobile
> > safari, not just having the youtube.
>
> > iFrames should not load in mobile safari
>
> > On May 6, 10:12 am, Nate K <nathan...@natekis.com> wrote:
>
> > > Hey,
>
> > > With the new 0.9.5 phonegap version I am having an issue with the
> > > youtubeiFrameissue where it opens theiframein a mobile safari
> > > version instead of placing it in the page container I have in my
> > > application.
>
> > > Is there anyway to have theiframenot open in mobile safari ...

Shazron Abdullah

unread,
May 31, 2011, 1:49:21 PM5/31/11
to phon...@googlegroups.com
It's probably this issue, was fixed yesterday:
https://github.com/phonegap/phonegap-iphone/issues/112

Also, might be related (see the commit in this issue):
https://github.com/phonegap/phonegap-iphone/issues/99

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Dogood

unread,
May 31, 2011, 5:07:21 PM5/31/11
to phonegap
Is there a new version that I can download to check if it is fixed or?

/Per

On 31 Maj, 19:49, Shazron Abdullah <shazron.abdul...@nitobi.com>
wrote:
> It's probably this issue, was fixed yesterday:https://github.com/phonegap/phonegap-iphone/issues/112
>
> Also, might be related (see the commit in this issue):https://github.com/phonegap/phonegap-iphone/issues/99
>
> On 2011-05-31, at 8:23 AM, Dogood wrote:
>
>
>
> > I have the same problem. In an earlier version of PhoneGap I had a
> > nice solution usingiFrameto insert information from a website into a

Shazron Abdullah

unread,
May 31, 2011, 6:11:51 PM5/31/11
to phon...@googlegroups.com
Nothing official - you'll have to download the trunk source from Github and create the installer yourself, there should be instructions in the README I believe.

Dogood

unread,
Jun 2, 2011, 11:08:11 AM6/2/11
to phonegap
I did followed the instructions and created and installed the new
version. In the www dir I now got phonegap.0.9.5.1.js. So in some way
I had at least created something new. But when I tested it with my App
I still had the same problem. When I use <iframe> it will open in
Safari and not inside the APP window. I only want to insert a html
page into a frame in a page. It worked with the earlier version of
PhoneGap. Havn't I created the new installpackage in correct way or
installed it correctly. Or is the problem not solved?

This is tha page I have problem with:

<html>

<head>
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="index,follow" name="robots" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link href="pics/homescreen.gif" rel="apple-touch-icon" />
<meta content="minimum-scale=1.0, width=device-width, maximum-
scale=0.6667, user-scalable=no" name="viewport" />
<link href="css/style.css" rel="stylesheet" media="screen" type="text/
css" />
<script src="javascript/functions.js" type="text/javascript"></script>
<title>Information on Hedda Gabler
</title>
<link href="pics/startup.png" rel="apple-touch-startup-image" />
<meta
content="iPod,iPhone,Webkit,iWebkit,Website,Create,mobile,Tutorial,free"
name="keywords" />
<meta content="Try out all the new features of iWebKit 5 with a simple
touch of a finger and a smooth screen rotation!" name="description" />
</head>

<body>
<div id="topbar" class="transparent">

<div id=title>Riksteatern</div>
<div id="leftnav">
<a href="../index.html"><img alt="home" src="images/home.png" /> </a>
</div>
<div id="rightnav">
<a href="index.html">Information</a>
</div>
</div>

<iframe src="http://www.RiksText.se/info/index_central.html"
name="iframe" width="100%" marginwidth="0" height="100%"
marginheight="0" scrolling="auto">

</iframe>


<br>
<div id="footer">
<a href="">Powered by Dogooaad IT</a></div>

</body>

</html>



/Per


On 1 Juni, 00:11, Shazron Abdullah <shazron.abdul...@nitobi.com>
wrote:

Nate K

unread,
Jun 2, 2011, 12:13:07 PM6/2/11
to phonegap
I had to edit the PhoneGapDelegate.m in the phonegap.xlibproj that is
associated with the project and modify the shouldStartLoadWithRequest
method to make the youtube.com host not open in a new window in the
conditional statement in order to prevent the youtube opening up in a
safari window.

Shazron Abdullah

unread,
Jun 2, 2011, 2:13:51 PM6/2/11
to phon...@googlegroups.com
Modify PhoneGap.plist, add the allowed External Hosts.

Dogood

unread,
Jun 2, 2011, 4:29:05 PM6/2/11
to phonegap
At last! Thanks. Now it works as it did before.

/Per



On 2 Juni, 20:13, Shazron Abdullah <shazron.abdul...@nitobi.com>
wrote:
> > <iframesrc="http://www.RiksText.se/info/index_central.html"

Dogood

unread,
Jun 2, 2011, 5:39:52 PM6/2/11
to phonegap
BUT!!! When I tested to run it on an Iphone it crashed. So I created a
new PhoneGap, the default app, and it run of course in the simulator.
But when I tried to download it to my iPhone it crashed with this
report.

dyld: Symbol not found: _OBJC_CLASS_$_CTCarrier
Referenced from: /var/mobile/Applications/4340FA7E-6AB7-44AE-
AA38-145AEEB05469/testini.app/testini
Expected in: /System/Library/Frameworks/CoreTelephony.framework/
CoreTelephony
in /var/mobile/Applications/4340FA7E-6AB7-44AE-AA38-145AEEB05469/
testini.app/testini

What can be the problem?

/Per

Shazron Abdullah

unread,
Jun 2, 2011, 5:41:38 PM6/2/11
to phon...@googlegroups.com
You probably have the latest code, not 0.9.5.1 specifically.
Do this:
https://github.com/phonegap/phonegap-iphone/raw/master/PhoneGapInstaller/docs/finishup.txt

Dogood

unread,
Jun 2, 2011, 6:03:58 PM6/2/11
to phonegap
Thank you for your fast responses.

But now I don't really understand how to do this changes concerning
CoreTelephony.

1. Add the existing framework "CoreTelephony" to your project
2. Set it to weak/optional in your Target

and

*IMPORTANT*: For the "CoreTelephony" framework, you MUST set the
linkage as "optional", if not iOS 3.x devices will crash. The linkage
type could not be set in the template itself (undocumented).

/Per


The devices I have tested are a iPhone 3G and an iPod Touch 4th both
running 4.2.1.
On 2 Juni, 23:41, Shazron Abdullah <shazron.abdul...@nitobi.com>
wrote:
> You probably have the latest code, not 0.9.5.1 specifically.
> Do this:https://github.com/phonegap/phonegap-iphone/raw/master/PhoneGapInstal...

Dogood

unread,
Jun 2, 2011, 6:33:43 PM6/2/11
to phonegap
After some searching on the net I found how to do this.
1. Double clck on project. Opens a new window
2. Open Link Binary Libraries
3. Set CoreTelephony.Framework to optional.

After that it worked to run on the devices.

/Per

Dogood

unread,
Jun 2, 2011, 6:35:42 PM6/2/11
to phonegap
Sorry forgot. Between 1 and 2 open "Build Phases".

/Per
Reply all
Reply to author
Forward
0 new messages