transistorsoft / react-native-background-geolocation

Sophisticated, battery-conscious background-geolocation with motion-detection
http://shop.transistorsoft.com/pages/react-native-background-geolocation
MIT License
2.66k stars 426 forks source link

[BUG Android] :: flick app UI when start or stop services #2186

Open chanphiromsok opened 4 weeks ago

chanphiromsok commented 4 weeks ago

Your Environment

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. BackgroundGeolocation.start
  2. BackgroundGeolocation.stop
  3. Flick UI

    Video

https://github.com/user-attachments/assets/5fe64b32-74c9-47f6-a974-d79309dbf2cb

Context

I try to start the broadcast location service

Debug logs

Logs ``` --------- beginning of main 10-24 09:38:15.318 10290 10290 D ReactNative: [CodePush] Loading JS bundle from "assets://index.android.bundle" 10-24 09:38:16.325 10290 10333 D ReactNative: [CodePush] Loading JS bundle from "assets://index.android.bundle" 10-24 09:38:25.566 10290 10439 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 09:38:25.833 10290 10290 I ReactNative: [GESTURE HANDLER] Initialize gesture handler for root view com.facebook.react.ReactRootView{84d47b2 V.E...... ......ID 0,0-1080,2195 #b} 10-24 09:38:25.836 10290 10290 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 09:38:25.836 10290 10290 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 09:38:25.836 10290 10290 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 09:38:25.838 10290 10290 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 09:38:28.792 10290 10290 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 09:38:31.742 10290 10435 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 09:38:32.846 10290 10435 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 09:38:40.743 10290 10435 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 09:38:40.856 10290 10439 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 09:38:46.687 10290 10290 I ReactNative: [GESTURE HANDLER] Initialize gesture handler for root view com.facebook.react.ReactRootView{cabc1d6 V.E...... ......ID 0,0-1080,2195 #33} 10-24 09:38:46.687 10290 10290 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 09:38:46.687 10290 10290 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 09:38:47.694 10290 10439 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 09:38:47.840 10290 10439 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 09:43:15.164 10290 10290 I ReactNative: [GESTURE HANDLER] Initialize gesture handler for root view com.facebook.react.ReactRootView{8ea53bb V.E...... ......ID 0,0-1080,2195 #51} 10-24 09:43:15.165 10290 10290 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 09:43:15.165 10290 10290 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 09:43:16.308 10290 11355 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 09:43:18.050 10290 10290 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 09:43:18.554 10290 10290 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 09:43:19.067 10290 11419 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 09:43:20.091 10290 10290 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 10:06:47.122 13255 13255 D ReactNative: [CodePush] Loading JS bundle from "assets://index.android.bundle" 10-24 10:06:48.168 13255 13351 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 10:06:48.469 13255 13255 I ReactNative: [GESTURE HANDLER] Initialize gesture handler for root view com.facebook.react.ReactRootView{464804a V.E...... ......ID 0,0-1080,2264 #b} 10-24 10:06:48.469 13255 13255 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 10:06:48.469 13255 13255 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 10:06:48.469 13255 13255 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 10:06:48.470 13255 13255 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 10:06:51.284 13255 13255 I ReactNative: [GESTURE HANDLER] Gesture handler is already enabled for a parent view 10-24 10:06:53.258 13255 13351 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 10:06:53.336 13255 13349 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 10:08:40.512 13255 13351 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:08:40.599 13255 13351 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 10:12:33.601 14851 14851 D ReactNative: [CodePush] Loading JS bundle from "assets://index.android.bundle" 10-24 10:12:37.476 14851 14887 D ReactNative: [CodePush] Loading JS bundle from "assets://index.android.bundle" 10-24 10:12:40.691 14851 15117 I TSLocationManager: [c.t.l.logger.LoggerFacade$a a] 10-24 10:12:40.691 14851 15117 I TSLocationManager: ╔═════════════════════════════════════════════ 10-24 10:12:40.691 14851 15117 I TSLocationManager: ║ ⏰ OneShot event fired: HEARTBEAT 10-24 10:12:40.691 14851 15117 I TSLocationManager: ╠═════════════════════════════════════════════ 10-24 10:12:51.539 14851 15115 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 10:12:51.571 14851 14851 I ReactNative: [GESTURE HANDLER] Initialize gesture handler for root view com.facebook.react.ReactRootView{95dbcb5 V.E...... ......ID 0,0-1080,2195 #b} 10-24 10:13:35.417 14851 15115 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 10:13:35.534 14851 15115 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 10:13:59.474 14851 15521 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:13:59.586 14851 15521 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 10:14:04.366 14851 15521 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:14:04.488 14851 15521 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 10:14:24.896 14851 15521 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:14:28.154 14851 15521 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:14:30.521 14851 15521 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:14:34.396 14851 15521 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:15:11.845 14851 15115 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:15:22.991 14851 15115 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:16:00.638 14851 15115 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:16:58.580 14851 15115 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:17:02.841 14851 15115 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:17:07.263 14851 15115 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:17:11.626 14851 15115 I TSLocationManager: - Enable: false → true, trackingMode: 1 10-24 10:23:07.847 14851 15162 I ReactNative: [GESTURE HANDLER] Tearing down gesture handler registered for root view com.facebook.react.ReactRootView{95dbcb5 V.E...... ........ 0,0-1080,2195 #b} 10-24 10:23:08.300 14851 15091 D ReactNative: [CodePush] Loading JS bundle from "assets://index.android.bundle" 10-24 10:23:13.027 16849 16849 D ReactNative: [CodePush] Loading JS bundle from "assets://index.android.bundle" 10-24 10:23:13.570 16849 16962 I TSLocationManager: [c.t.l.logger.LoggerFacade$a a] 10-24 10:23:13.570 16849 16962 I TSLocationManager: ╔═════════════════════════════════════════════ 10-24 10:23:13.570 16849 16962 I TSLocationManager: ║ ⏰ OneShot event fired: HEARTBEAT 10-24 10:23:13.570 16849 16962 I TSLocationManager: ╠═════════════════════════════════════════════ 10-24 10:23:14.244 16849 16900 D ReactNative: [CodePush] Loading JS bundle from "assets://index.android.bundle" 10-24 10:23:21.306 16849 16962 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 10:23:21.322 16849 16849 I ReactNative: [GESTURE HANDLER] Initialize gesture handler for root view com.facebook.react.ReactRootView{705bd1c V.E...... ......ID 0,0-1080,2195 #b} 10-24 10:23:30.619 16849 16962 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 10:23:34.324 16849 16962 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 10:23:56.860 16849 16962 I TSLocationManager: - Enable: true → true, trackingMode: 1 10-24 10:24:05.779 16849 16962 I TSLocationManager: - Enable: false → true, trackingMode: 1 ```
chanphiromsok commented 4 weeks ago

I can confirm the bug from v4.17.3 for v4.17.2 no flick UI image