Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast flashes on screen tap with Samsung Galaxy S6 and S7 Edge #95

Open
4 of 7 tasks
ds8k opened this issue Sep 14, 2016 · 8 comments
Open
4 of 7 tasks

Toast flashes on screen tap with Samsung Galaxy S6 and S7 Edge #95

ds8k opened this issue Sep 14, 2016 · 8 comments

Comments

@ds8k
Copy link

ds8k commented Sep 14, 2016

Expected behaviour

Toast displays until provided time elapses

Actual behaviour

If I tap the screen the toast begins to flash in and out until the time elapses

I'm seeing this behaviour on

  • iOS device
  • iOS sim
  • Android device
  • Android sim

Hardware models

Samsung Galaxy S6
Samsung Galaxy S7 Edge

OS versions

Android 5.1.1, 6.0.1

I'm not a dummy, so I've checked these

  • It happens on a fresh Cordova CLI project as well.
  • I'm waiting for deviceready to fire.
  • My JavaScript has no errors (window.onerror catches nothing).

So how can we reproduce this?

I'm running the following code in the Chrome console and experiencing this:

window.plugins.toast.showWithOptions(
    {
      message: "Testing",
      duration: 9999,
      position: "bottom",
      addPixelsY: -40,
      data: {'foo':'bar'}
    },
    function(result) {
        console.log('result', result);
    },
    function(error) {
        console.error('error', error);
    }
);

I've created a fresh Cordova application with the following steps:

$ cordova -v
6.3.1

  135  cordova create hello com.example.hello HelloWorld
  136  cd hello/
  137  cordova platform add android
  138  cordova plugin add cordova-plugin-x-toast
  139  cordova prepare
  140  cordova run android

and can confirm the same behavior occurs here.

@ds8k ds8k changed the title Toast fades while scrolling on Samsung Galaxy S6 and S7 Edge Toast flashes on screen tap with Samsung Galaxy S6 and S7 Edge Sep 14, 2016
@EddyVerbruggen
Copy link
Owner

Can you debug it or at least record a video of what's going on? I've tried many emulators and devices, even a new Nexus 6P with Android 7, but it's all just fine with your code sample.

@ds8k
Copy link
Author

ds8k commented Sep 29, 2016

Yup, no issues on any of my other phones except for these recent Samsung devices.

YouTube link showing the problem: https://www.youtube.com/watch?v=lgI-oBSnK14

And a rather long logcat of what happens as the toast is flashing:

09-29 11:21:15.075  1369  2144 D InputReader: Input event(6): value=1 when=1224621228462000
09-29 11:21:15.075  1369  2144 D InputReader: Input event(6): value=1 when=1224621228462000
09-29 11:21:15.075  1369  2144 I InputReader: Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.442 ] when=1224621228462000
09-29 11:21:15.075  1369  2144 D InputReader: lastThreadEndTime = 1224606579377170, currentThreadStartTime = 1224606579393420, diff = 0
09-29 11:21:15.075  1369  2143 I InputDispatcher: Delivering touch to (16457): action: 0x4, toolType: 1
09-29 11:21:15.075  1369  2143 I InputDispatcher: Delivering touch to (2283): action: 0x4, toolType: 1
09-29 11:21:15.085  1369  2143 D PowerManagerService: [s] UserActivityState : 4 -> 1
09-29 11:21:15.075  1369  2143 I InputDispatcher: Delivering touch to (16457): action: 0x0, toolType: 1
09-29 11:21:15.085  1369  2647 I NotificationService: cancelToast pkg=com.example.hello callback=android.app.ITransientNotification$Stub$Proxy@3d6eba9
09-29 11:21:15.085  1369  2238 D lights  : button : 1 +
09-29 11:21:15.085 16457 16457 D ViewRootImpl: ViewPostImeInputStage processPointer 0
09-29 11:21:15.095 16457 16457 D ViewRootImpl: #3 mView = null
09-29 11:21:15.115  1369  2238 D lights  : button : 1 -
09-29 11:21:15.135  1369  2144 D InputReader: Input event(6): value=0 when=1224621284560000
09-29 11:21:15.135  1369  2144 D InputReader: Input event(6): value=0 when=1224621284560000
09-29 11:21:15.135  1369  2144 I InputReader: Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=1224621284560000
09-29 11:21:15.135  1369  2143 I InputDispatcher: Delivering touch to (16457): action: 0x1, toolType: 1
09-29 11:21:15.135 16457 16457 D ViewRootImpl: ViewPostImeInputStage processPointer 1
09-29 11:21:15.145 16457 16457 D cr_Ime  : [InputMethodManagerWrapper.java:56] isActive: true
09-29 11:21:15.145 16457 16457 D cr_Ime  : [InputMethodManagerWrapper.java:65] hideSoftInputFromWindow
09-29 11:21:15.235  1369  2120 I TLC_TIMA_PKM_measure_kernel: TIMA: response_id = 3
09-29 11:21:15.235  1369  2120 I TLC_TIMA_PKM_measure_kernel: TIMA: response ret = 0, result_ondemand = MSG=Kernel Verification Success;
09-29 11:21:15.245  1369  2120 D TimaService: TIMA MEASUREMENT Result: TIMA_STATUS=0;MSG=Kernel Verification Success;
09-29 11:21:15.245  1369  2120 D TimaService: TIMA MEASUREMENT success status: TIMA_STATUS=0;MSG=Kernel Verification Success;
09-29 11:21:15.385  1369  2955 D SecContentProvider2: query(), uri = 15 selection = getToastEnabledState
09-29 11:21:15.385  1369  2459 D SecContentProvider2: query(), uri = 15 selection = getToastShowPackageNameState
09-29 11:21:15.395 16457 16457 D ViewRootImpl: #1 mView = android.widget.LinearLayout{306e50b V.E...... ......I. 0,0-366,201 #102039c android:id/toast_layout_root}
09-29 11:21:15.405  1369  2648 D ISSUE_DEBUG: InputChannelName : 3b868cf Toast
09-29 11:21:15.405   654   654 I SurfaceFlinger: id=897 createSurf (1x1),1 flag=4, Uoast
09-29 11:21:15.445 16457 16457 W DisplayListCanvas: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
09-29 11:21:15.455  1369  2647 V WindowStateAnimator: Finishing drawing window Window{3b868cf u0 d0 Toast}: mDrawState=DRAW_PENDING
09-29 11:21:15.455 16457 16457 D ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
09-29 11:21:15.465   654   654 D libEGL  : eglInitialize EGLDisplay = 0x7fded01118
09-29 11:21:15.465  1369  2960 V WindowStateAnimator: Finishing drawing window Window{3b868cf u0 d0 Toast}: mDrawState=HAS_DRAWN
09-29 11:21:15.655   654  3518 I SurfaceFlinger: id=896 Removed Uoast (9/10)
09-29 11:21:15.655   654  2739 I SurfaceFlinger: id=896 Removed Uoast (-2/10)
09-29 11:21:15.665   654   654 D libEGL  : eglTerminate EGLDisplay = 0x7fded01218
09-29 11:21:16.015 23764 23826 I Metrics:BatchTransmitte: QueuePusher.sendBatches - Drained batch queue.; Number of RESERVED_FOR_NON_ANONYMOUS_METRICS queue batches sent: 0
09-29 11:21:16.015 23764 23825 I Metrics:BatchTransmitte: QueuePusher.sendBatches - Drained batch queue.; Number of HIGH queue batches sent: 0
09-29 11:21:16.035 23764 23824 I System.out: Thread-2234(ApacheHTTPLog):isSBSettingEnabled false
09-29 11:21:16.035 23764 23824 I System.out: Thread-2234(ApacheHTTPLog):isShipBuild true
09-29 11:21:16.035 23764 23824 I System.out: Thread-2234(ApacheHTTPLog):getDebugLevel 0x4f4c
09-29 11:21:16.035 23764 23824 I System.out: Thread-2234(ApacheHTTPLog):Smart Bonding Setting is false
09-29 11:21:16.035 23764 23824 I System.out: Thread-2234(ApacheHTTPLog):SmartBonding Setting is false, SHIP_BUILD is true, log to file is false, DBG is false, DEBUG_LEVEL (1-LOW, 2-MID, 3-HIGH) is 1
09-29 11:21:16.045   935  1823 D EnterpriseController: netId is 0
09-29 11:21:16.045   935  1823 D Netd    : getNetworkForDns: using netid 788 for uid 10002
09-29 11:21:16.185 23764 23824 I System.out: Thread-2234 calls detatch()
09-29 11:21:16.215 23764 23824 I System.out: Thread-2234(ApacheHTTPLog):isSBSettingEnabled false
09-29 11:21:16.215 23764 23824 I System.out: Thread-2234(ApacheHTTPLog):isShipBuild true
09-29 11:21:16.215 23764 23824 I System.out: Thread-2234(ApacheHTTPLog):getDebugLevel 0x4f4c
09-29 11:21:16.215 23764 23824 I System.out: Thread-2234(ApacheHTTPLog):Smart Bonding Setting is false
09-29 11:21:16.215 23764 23824 I System.out: Thread-2234(ApacheHTTPLog):SmartBonding Setting is false, SHIP_BUILD is true, log to file is false, DBG is false, DEBUG_LEVEL (1-LOW, 2-MID, 3-HIGH) is 1
09-29 11:21:16.265 23764 23824 I System.out: Thread-2234 calls detatch()
09-29 11:21:16.265  1369  2965 D BatteryService: !@BatteryListener : batteryPropertiesChanged!
09-29 11:21:16.265  1369  2965 D BatteryService: level:100, scale:100, status:5, health:2, present:true, voltage: 4347, temperature: 314, technology: Li-ion, AC powered:false, USB powered:true, POGO powered:false, Wireless powered:false, icon:17303418, invalid charger:0, maxChargingCurrent:0
09-29 11:21:16.265  1369  2965 D BatteryService: online:4, current avg:-18, charge type:0, power sharing:false, high voltage charger:false, capacity:280000, batterySWSelfDischarging:false, current_now:29
09-29 11:21:16.265  1369  1369 D BatteryService: Sending ACTION_BATTERY_CHANGED.
09-29 11:21:16.275 23764 23824 I Metrics:BatchTransmitte: QueuePusher.sendBatches - Drained batch queue.; Number of NORMAL queue batches sent: 2
09-29 11:21:16.275  1369  1369 I MotionRecognitionService: Plugged
09-29 11:21:16.275  1369  1369 D MotionRecognitionService:   cableConnection= 1
09-29 11:21:16.275  1369  1369 D MotionRecognitionService: setPowerConnected | current backoffstate  = 1024 , state =1024
09-29 11:21:16.275  1369  1369 D MotionRecognitionService: skip setTransmitPower. 
09-29 11:21:16.275 23764 23824 W IdleConnectionHandler: Removing a connection that never existed!
09-29 11:21:16.285  2283  2283 D KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED
09-29 11:21:16.285  2283  2283 D PowerUI : priorPlugType = 2 mPlugType =  2
09-29 11:21:16.285  2283  2283 D KeyguardUpdateMonitor: handleBatteryUpdate
09-29 11:21:16.295  2623  2623 D PhoneApp: PhoneAppBroadcastReceiver onReceive android.intent.action.BATTERY_CHANGED
09-29 11:21:16.295  2759  2759 D BatteryMonitor: new battery level: 100
09-29 11:21:16.295  2623  2623 D TelephonyExtension: Not stopping low battery tone
09-29 11:21:16.305  2283  2283 D BatteryMeterView: ACTION_BATTERY_CHANGED : level:100 status:5 health:2
09-29 11:21:16.305  2283  2283 D BatteryMeterView: ACTION_BATTERY_CHANGED : level:100 status:5 health:2
09-29 11:21:16.415 16457 16457 D ViewRootImpl: #3 mView = null
09-29 11:21:16.585  1369  2238 D lights  : button : 0 +
09-29 11:21:16.615  1369  2238 D lights  : button : 0 -
09-29 11:21:16.975   654  2739 I SurfaceFlinger: id=897 Removed Uoast (9/9)
09-29 11:21:16.975   654  2739 I SurfaceFlinger: id=897 Removed Uoast (-2/9)
09-29 11:21:16.985   654   654 D libEGL  : eglTerminate EGLDisplay = 0x7fded01218
09-29 11:21:17.885  1369  2648 D SecContentProvider2: query(), uri = 15 selection = getToastEnabledState
09-29 11:21:17.895  1369  1910 D SecContentProvider2: query(), uri = 15 selection = getToastShowPackageNameState
09-29 11:21:17.935 16457 16457 D ViewRootImpl: #1 mView = android.widget.LinearLayout{306e50b V.E...... ......I. 0,0-366,201 #102039c android:id/toast_layout_root}
09-29 11:21:17.945  1369  2965 D ISSUE_DEBUG: InputChannelName : 271463a Toast
09-29 11:21:17.965   654   654 I SurfaceFlinger: id=898 createSurf (1x1),1 flag=4, Uoast
09-29 11:21:18.045 16457 16457 W DisplayListCanvas: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
09-29 11:21:18.055  1369  2318 V WindowStateAnimator: Finishing drawing window Window{271463a u0 d0 Toast}: mDrawState=DRAW_PENDING
09-29 11:21:18.055   654   654 D libEGL  : eglInitialize EGLDisplay = 0x7fded01118
09-29 11:21:18.065 16457 16457 D ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
09-29 11:21:18.095  1369  2960 V WindowStateAnimator: Finishing drawing window Window{271463a u0 d0 Toast}: mDrawState=HAS_DRAWN
09-29 11:21:18.805  1369  5338 D SSRM:n  : SIOP:: AP = 390, PST = 390 (W:6), CP = 38, CUR = -18, LCD = 112
09-29 11:21:18.905 16457 16457 D ViewRootImpl: #3 mView = null

@EddyVerbruggen
Copy link
Owner

@ds8k Really appreciate your attempt to clarify this for me but I'm not sure this is entirely clear. However, before continuing.. can you remove the include of the css file so it's all blank and ugly - and see if the same problem occurs?

@ds8k
Copy link
Author

ds8k commented Sep 29, 2016

Same behavior with the CSS include removed. If I trigger the toast and don't touch the screen it displays and goes away after the specified time. If I trigger it, then tap the screen, it begins to flash.

Let me know if I can provide any other information.

@EddyVerbruggen
Copy link
Owner

That's clear. I need someone with a similar device to test this as I don't have one and none of my devices have this issue.

@Rakonda
Copy link

Rakonda commented Jan 18, 2017

I can confirm this issue on Samsung Galaxy S5 - Android 5.1.1, the same behaviour as declared above.

@dev-akash01
Copy link

any update on this issue, I am also facing this issue on samsung s6 and s7

@TimeTravelersHackedMe
Copy link

This issue is also present on the S9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants