Button click function not being called on Android 4.4.2


#1

I am writing my first Ionic app (and first Angular 2 app). Button clicks work fine on the browser. When I install on the phone it almost always takes multiple clicks to get a response. I put console logs in the click handlers so you can see the problem:

I/BufferQueue(  181): [org.reallycare.plait.meds/org.reallycare.plait.meds.MainActivity](this:0x4301a978,id:249,api:1,p:20530,c:181) [release] fps:0.10, dur:9636.09, max:9636.09, min:9636.09
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/chromium(20530): [INFO:CONSOLE(63315)] "Prev", source: file:///android_asset/www/build/js/app.bundle.js (63315)
I/BufferQueue(  181): [org.reallycare.plait.meds/org.reallycare.plait.meds.MainActivity](this:0x4301a978,id:249,api:1,p:20530,c:181) [queue] fps:0.38, dur:2607.11, max:2607.11, min:2607.11
I/BufferQueue(  181): [org.reallycare.plait.meds/org.reallycare.plait.meds.MainActivity](this:0x4301a978,id:249,api:1,p:20530,c:181) [release] fps:0.38, dur:2608.31, max:2608.31, min:2608.31
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/chromium(20530): [INFO:CONSOLE(63315)] "Prev", source: file:///android_asset/www/build/js/app.bundle.js (63315)
I/BufferQueue(  181): [org.reallycare.plait.meds/org.reallycare.plait.meds.MainActivity](this:0x4301a978,id:249,api:1,p:20530,c:181) [queue] fps:0.29, dur:3425.51, max:3425.51, min:3425.51
I/BufferQueue(  181): [org.reallycare.plait.meds/org.reallycare.plait.meds.MainActivity](this:0x4301a978,id:249,api:1,p:20530,c:181) [release] fps:0.29, dur:3423.40, max:3423.40, min:3423.40
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/chromium(20530): [INFO:CONSOLE(63315)] "Prev", source: file:///android_asset/www/build/js/app.bundle.js (63315)
I/BufferQueue(  181): [org.reallycare.plait.meds/org.reallycare.plait.meds.MainActivity](this:0x4301a978,id:249,api:1,p:20530,c:181) [queue] fps:0.59, dur:1685.45, max:1685.45, min:1685.45
I/BufferQueue(  181): [org.reallycare.plait.meds/org.reallycare.plait.meds.MainActivity](this:0x4301a978,id:249,api:1,p:20530,c:181) [release] fps:0.59, dur:1684.92, max:1684.92, min:1684.92
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/chromium(20530): [INFO:CONSOLE(63321)] "Next", source: file:///android_asset/www/build/js/app.bundle.js (63321)
I/BufferQueue(  181): [org.reallycare.plait.meds/org.reallycare.plait.meds.MainActivity](this:0x4301a978,id:249,api:1,p:20530,c:181) [queue] fps:0.07, dur:26801.05, max:26766.47, min:34.58
I/BufferQueue(  181): [org.reallycare.plait.meds/org.reallycare.plait.meds.MainActivity](this:0x4301a978,id:249,api:1,p:20530,c:181) [release] fps:0.07, dur:26811.44, max:26775.81, min:35.62
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/chromium(20530): [INFO:CONSOLE(63321)] "Next", source: file:///android_asset/www/build/js/app.bundle.js (63321)
I/BufferQueue(  181): [org.reallycare.plait.meds/org.reallycare.plait.meds.MainActivity](this:0x4301a978,id:249,api:1,p:20530,c:181) [queue] fps:0.38, dur:2613.88, max:2613.88, min:2613.88
I/BufferQueue(  181): [org.reallycare.plait.meds/org.reallycare.plait.meds.MainActivity](this:0x4301a978,id:249,api:1,p:20530,c:181) [release] fps:0.38, dur:2604.62, max:2604.62, min:2604.62
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_DOWN
I/ViewRootImpl(20530): ViewRoot's Touch Event : ACTION_UP
I/chromium(20530): [INFO:CONSOLE(63321)] "Next", source: file:///android_asset/www/build/js/app.bundle.js (63321)

`

I am on v2 beta 0. Any help gratefully received as at the moment it is unusable by a sane person.


Ionic2 is too slow in android (buttons problem)
Ionic2 is too slow in android (buttons problem)
#2

After messing about some more it looks like touhces a few mm to the left of where I would normally touch a button are more successful (but not 100%). Is that possible? Is anyone else having this problem? Has anyone got an app working OK on an Android device with clicks on small areas?


#3

I also experienced “subpar” performance with a Samsung device. I “solved” them by using Crosswalk Plugin, maybe it will fix it for you too.


#5

I had been told that Crosswalk was only needed with older Android, but you are right (sorry to take so long to confirm this - was on holiday).

Thank you,