1 Reply Latest reply on Aug 1, 2017 9:41 AM by kerrishotts

    Delay on Android 7

    OJ-5757

      Hello,

      Any help is very appreciate!

       

      The issue: A long delay before the app react on clic. Sometimes i have to clic twice on button before the app react. But this issue is show up only on android 7 installed on Samsung Tab A device.

       

      Here is my config prefrences:

       

           <content src="index.html" />

          <preference name="permissions" value="none" />

          <preference name="orientation" value="default" />

          <preference name="target-device" value="universal" />

          <preference name="fullscreen" value="false" />

          <preference name="KeyboardShrinksView" value="false" />

          <preference name="StatusBarOverlaysWebView" value="false" />

          <preference name="StatusBarBackgroundColor" value="#000000" />

          <preference name="StatusBarStyle" value="lightcontent" />

          <preference name="webviewbounce" value="true" />

          <preference name="prerendered-icon" value="true" />

          <preference name="stay-in-webview" value="false" />

          <preference name="ios-statusbarstyle" value="black-opaque" />

          <preference name="detect-data-types" value="true" />

          <preference name="exit-on-suspend" value="false" />

          <preference name="show-splash-screen-spinner" value="true" />

          <preference name="auto-hide-splash-screen" value="true" />

          <preference name="disable-cursor" value="false" />

          <preference name="android-minSdkVersion" value="24" />

          <preference name="android-installLocation" value="auto" />

          <preference name="phonegap-version" value="cli-6.5.0" />

          <preference name="AndroidPersistentFileLocation" value="Compatibility" />

          <preference name="android-build-tool" value="ant|gradle" />

       

      I have already installed fastclick plugin to prevent any delay. But the problem is still and the delay is more than 300ms

      Here a video of what happening when i clic https://www.youtube.com/watch?v=17EuVe-O1Tw&feature=youtu.be

       

      Once again any help is very appreciate. Thank You!

        • 1. Re: Delay on Android 7
          kerrishotts Adobe Employee

          We'd need to see some code and some profiling runs to begin to help with your issue. A few quick thoughts spring to mind:

           

          • Are you using a gesture library like Hammer JS? If so, make sure that tap detection isn't too narrow or too easily cancelled.
          • Record a timeline while using your app in Chrome. This will show you what your app is doing, and can be used to point out places that need optimization, etc.
          • Check adb logcat to see if any error messages are being spewed out on the device console.
          • Try your app in the device web browser if you can. Does it exhibit the same slowness?