IOS 9 Beta 5 issues, app loads but no taps registered?

  • 8
  • Question
  • Updated 5 years ago
Hi, there seems to be a problem with some apps that no taps are registered whatsoever once it has loaded. These taps are all listened for by JavaScript, on menus etc. IOS8 < is fine. Of course this is beta IOS so may be fixed with the next release, but with the finished IOS looming i was wondering if anyone else has experienced this issue and what it might be linked with?

Phonegap version 3.7.0

Thank you
Photo of plarner

plarner

  • 1 Post
  • 0 Reply Likes

Posted 5 years ago

  • 8
Photo of Joshua Herbison

Joshua Herbison

  • 13 Posts
  • 2 Reply Likes
Yeah, it does make sense... Does anyone know if there is a fix for the black borders on top and bottom?
Photo of Michael Dobekidis

Michael Dobekidis

  • 18 Posts
  • 0 Reply Likes
Apparently there is this solution: http://stackoverflow.com/questions/32...
Photo of Giuseppe Milo

Giuseppe Milo

  • 27 Posts
  • 1 Reply Like
I'm not using hydration. The app is working fine at the beginning but if you change app and resume yours it will be unresponsive. I use phonegap 5.1.1 on ios 9. On ios 8 the app works fine.
Photo of Ben McMaster

Ben McMaster

  • 66 Posts
  • 1 Reply Like
I am in the exact same situation. I don't see the problem on my devices, but my users are seeing this on iPads with iOS 9.
Photo of FilmKit

FilmKit

  • 8 Posts
  • 0 Reply Likes
Turning off hydration fixes the issue of the app not responding to taps. To fix the black bars issue, change auto-hide-splash-screen to false in your config.xml

Make sure you have the right splash screens in res/screen/ios and that the splash screen plugin is loaded

To hide the splash screen after page load, add this to your onDeviceReady

onDeviceReady: function() {

setTimeout(function() {

navigator.splashscreen.hide();

}, 1000);

}

This fixed the black bars issue in ios9 for me.
Photo of Vinicius Lemos

Vinicius Lemos

  • 3 Posts
  • 0 Reply Likes
How do I disable hydration ?
Photo of Yi Ming Kuan

Yi Ming Kuan

  • 1840 Posts
  • 78 Reply Likes
https://build.phonegap.com/apps/[APP_ID]/settings
Uncheck the Hydration option there, wait for the app to rebuild, then install the new build.

-yiming
(Edited)
Photo of Joshua Herbison

Joshua Herbison

  • 13 Posts
  • 2 Reply Likes
You can only use hydration with build.phonegap.com so go there and go to your apps page. Click on the title of the app. Click settings and there are buttons for debugging, hydration, private application and public sharing. Just uncheck hydration. Click save. I re-uploaded my files again to make sure.
Photo of Vinicius Lemos

Vinicius Lemos

  • 3 Posts
  • 0 Reply Likes
I can not disable hydration by xcode ?
Photo of Joshua Herbison

Joshua Herbison

  • 13 Posts
  • 2 Reply Likes
I am abandoning phonegap and going to full xcode apps and eclipse apps. I spend as much time trying to fix phonegap issues as I would just building 2 versions of the same app.
Photo of Vinicius Lemos

Vinicius Lemos

  • 3 Posts
  • 0 Reply Likes
With phonegap 4.0 also is in error in IOS 9?
Photo of Yi Ming Kuan

Yi Ming Kuan

  • 1840 Posts
  • 78 Reply Likes
iOS platform version 4.0.0 is meant for fixing all the iOS issues. It's still not ready yet, we're waiting on the Apache Cordova team to finish it.

You can try using cli-5.2.0 to build with the latest iOS platform version (3.9.1), that may fix a few of your iOS 9 issues.

-yiming
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I posted a question here about cli-5.2.0 (since that version has never been announced, so it's quite surprising to see it suddenly being recommended now).
However, my question got erased/removed from the thread a bit later. Can only have been done by a PGB crew member.

Why was that?
Photo of John Friedman

John Friedman

  • 21 Posts
  • 0 Reply Likes
Confirmed Hydration still broken on iOS 9 when build with phonegap-version cli-5.2.0
Photo of Giuseppe Milo

Giuseppe Milo

  • 27 Posts
  • 1 Reply Like
Same here with cli-5.1.1.
Photo of Sebastian Moreno

Sebastian Moreno

  • 6 Posts
  • 0 Reply Likes
Hi everybody,

I have a similar issue here using cli 4.2.0

The scroll doesn't work in IOS9 and i have some navigation issues that redirect to the previous pages.

Everything was working fine in IOS 8 and below.

I already tried disable the hashListeningEnabled and added data-history = false but i had no luck.
Photo of Raz Wasserstein

Raz Wasserstein

  • 8 Posts
  • 0 Reply Likes
Hey, have you managed to fix navigation issues?
Photo of Vinicius ApliMed

Vinicius ApliMed

  • 8 Posts
  • 0 Reply Likes
Query Mobile properly Working with phonegap 5.3.1 , IOS 9?
Photo of Giuseppe Milo

Giuseppe Milo

  • 27 Posts
  • 1 Reply Like
I'm using jquery mobile with phonegap 5.1.1 and it works fine in ios9.
Photo of Vinicius ApliMed

Vinicius ApliMed

  • 8 Posts
  • 0 Reply Likes
Version jquery mobile? Thank you.
Photo of Giuseppe Milo

Giuseppe Milo

  • 27 Posts
  • 1 Reply Like
1.4.5
Photo of Vinicius ApliMed

Vinicius ApliMed

  • 8 Posts
  • 0 Reply Likes
Thank you!
Photo of Vinicius ApliMed

Vinicius ApliMed

  • 8 Posts
  • 0 Reply Likes
has you have put the config.xml code generated in phonegap with xcode 7 IOS 9? thank you
(Edited)
Photo of Vinicius ApliMed

Vinicius ApliMed

  • 8 Posts
  • 0 Reply Likes
Many thanks to all of this forum, I resolved my issues with phonegap 5.2.0 + jquery mobile version 1.4.5 + xcode 6 and 7.

Thank you! You are good!
(Edited)
Photo of Giuseppe Milo

Giuseppe Milo

  • 27 Posts
  • 1 Reply Like
Guys try to build the app with xcode and debug. This is how I found that the taptoscroll plugin was giving me issues with ios9. Everything is ok now.
Photo of Matt Quinn

Matt Quinn

  • 3 Posts
  • 0 Reply Likes
Thanks Milo - we were hoping to avoid setting up a manual build (that's why we were using PGB in the first place), but we'll give that a whirl and see how we fare. Thanks. M
Photo of Giuseppe Milo

Giuseppe Milo

  • 27 Posts
  • 1 Reply Like
Let's try, maybe it is just a plugin to upgrade or some javascript to change. Just open xcode, add the phonegap project and build. Than check the log for errors.
Photo of John Friedman

John Friedman

  • 21 Posts
  • 0 Reply Likes
@Giuseppe, by adding the phonegap project do you mean take the contents of the ipa payload and tell Xcode to make a project out of it?
Photo of Giuseppe Milo

Giuseppe Milo

  • 27 Posts
  • 1 Reply Like
Yes if you start xcode you can choose to open a project. Then you've to select the ipa created by cordova.
Photo of John Friedman

John Friedman

  • 21 Posts
  • 0 Reply Likes
thanks @Giuseppe
Photo of Giuseppe Milo

Giuseppe Milo

  • 27 Posts
  • 1 Reply Like
No problem @john
Photo of Sebastian Moreno

Sebastian Moreno

  • 6 Posts
  • 0 Reply Likes
Hi again,

Today i discover something about the problem.

If i reinstall the app the scroll works the first time (still have navigation issues but the scroll work fine)

But if a close the app and i open it again, it doesn't work.

Could it be a cache problem?
Photo of Giuseppe Milo

Giuseppe Milo

  • 27 Posts
  • 1 Reply Like
Exactly the same problem I had. It turned out it was the plugin taptoscroll. Run the app with xcode to understand which is the problem.
Photo of Sebastian Moreno

Sebastian Moreno

  • 6 Posts
  • 0 Reply Likes
Hi Giuseppe, I'm using CLI, not phonegap build. I'm not using the taptoscroll plugin. I'm running the app in xcode.

Debug:

: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 22 11:16:36 allGreenup[1043] : CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Sep 22 11:16:36 allGreenup[1043] : CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

I don't know if those errors are related to the scroll issue.
Photo of Giuseppe Milo

Giuseppe Milo

  • 27 Posts
  • 1 Reply Like
Xcode should highlight the code which create the error. Otherwise you should set the CG_CONTEXT_SHOW_BACKTRACE variable to see the backtrace.
Photo of Sebastian Moreno

Sebastian Moreno

  • 6 Posts
  • 0 Reply Likes
Hi again, i was able to fix the scroll issue in phonegap with jquery mobile with this hot fix:

"set style="overflow: auto" for data-role="page" for iOS 9 alone. the scroll will be sticky some times but it will resolve the showstopper status temporarily"

Credits for http://stackoverflow.com/users/536067...
Photo of Ben McMaster

Ben McMaster

  • 66 Posts
  • 1 Reply Like
No Hydration, No taptoscroll, Phonegap Build cli-5.1.1

My users are complaining the the app becomes unresponsive to taps only when it resumes from the background. So far only iPad users are complaining. My personal iPhone6 and iPad2 running iOS9 are NOT having any issues.
Photo of Vinicius ApliMed

Vinicius ApliMed

  • 8 Posts
  • 0 Reply Likes
how to disable taptoscrool?
Photo of Giuseppe Milo

Giuseppe Milo

  • 27 Posts
  • 1 Reply Like
Taptoscroll is a phonegap plugin. If you're using it just remove it from the config.xml.
Photo of Raz Wasserstein

Raz Wasserstein

  • 8 Posts
  • 0 Reply Likes
Hi everybody, I really need your help,

(I have a similar issue to what Sebastian Moreno wrote).

Only on IOS9 I have many navigation issues redirecting to different pages in the app (for example: when I press on a button (1)the screen gets stack,or (2)it leads me not to the page I requested ).
If I enter to my Mobile Website (which has the same code) from safari on IOS9 it works good.
(also the app on IOS 8 works good)

I am building my project in phonegap build with cli 5.1.1
My clients do not stop complaining ... :(
Photo of Vinicius ApliMed

Vinicius ApliMed

  • 8 Posts
  • 0 Reply Likes
Faz update para phonegap 5.3.1 cli e adicione plugin inappbroser 1.0.1
Photo of Sebastian Moreno

Sebastian Moreno

  • 6 Posts
  • 0 Reply Likes
Hi Raz, are you using jquery mobile? Upgrading to the latest version (1.4.5) solve this issues.
Photo of Giuseppe Milo

Giuseppe Milo

  • 27 Posts
  • 1 Reply Like
Raz build the app with xcode to debug and solve your issues.
Photo of Sebastian Moreno

Sebastian Moreno

  • 6 Posts
  • 0 Reply Likes
Upgrading to the latest jquery mobile version (1.4.5) solve the scroll and navigation issues of my app.
Photo of Giuseppe Milo

Giuseppe Milo

  • 27 Posts
  • 1 Reply Like
I'm using jquery mobile 1.4.5 as well and it works in ios9.