-
Notifications
You must be signed in to change notification settings - Fork 55
Description
I've removed from the example all code that changes a screen (see https://github.com/rasuldev/bg-location-tracker-test/). When I start tracking, there are no changes on the screen but I get rebuild every 4 second. Why does this happen and how can I avoid repeatable rebuilding?
LOGS:
[log] BUILD
I/flutter (12565): locationUpdate: {lat: 37.4219983, lon: -122.084, alt: 5.0, vertical_accuracy: 0.4020833373069763, horizontal_accuracy: 5.0, course: -1.0, course_accuracy: -1.0, speed: 0.0, speed_accuracy: 0.5, logging_enabled: true}
D/EGL_emulation(12565): app_time_stats: avg=2025.91ms min=2025.91ms max=2025.91ms count=1
D/LocationUpdatesService(12565): New location: Location[fused 37.421998,-122.084000 hAcc=5.0 et=+2h2m14s655ms alt=5.0 vAcc=0.40208334 vel=0.0 sAcc=0.5]
D/BackgroundManager(12565): Location: 37.4219983: -122.084
D/BackgroundManager(12565): Creating new engine
D/EGL_emulation(12565): eglCreateContext: 0x7cb27904cd90: maj 3 min 1 rcv 4
D/EGL_emulation(12565): eglCreateContext: 0x7cb27904c010: maj 3 min 1 rcv 4
D/HostConnection(12565): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV_Cache ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_1
D/EGL_emulation(12565): eglMakeCurrent: 0x7cb27904c010: ver 3 1 (tinfo 0x7cb49be61300) (first time)
I/flutter (12565): locationUpdate: {lat: 37.4219983, lon: -122.084, alt: 5.0, vertical_accuracy: 0.4020833373069763, horizontal_accuracy: 5.0, course: -1.0, course_accuracy: -1.0, speed: 0.0, speed_accuracy: 0.5, logging_enabled: true}
D/BackgroundManager(12565): Got success, destroy engine!
[log] BUILD
D/EGL_emulation(12565): app_time_stats: avg=2085.58ms min=2085.58ms max=2085.58ms count=1
D/LocationUpdatesService(12565): New location: Location[fused 37.421998,-122.084000 hAcc=5.0 et=+2h2m16s652ms alt=5.0 vAcc=0.40208334 vel=0.0 sAcc=0.5]
D/BackgroundManager(12565): Location: 37.4219983: -122.084
D/BackgroundManager(12565): Creating new engine
D/EGL_emulation(12565): eglCreateContext: 0x7cb27904d750: maj 3 min 1 rcv 4
D/EGL_emulation(12565): eglCreateContext: 0x7cb27903fb90: maj 3 min 1 rcv 4
D/HostConnection(12565): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV_Cache ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_1
D/EGL_emulation(12565): eglMakeCurrent: 0x7cb27903fb90: ver 3 1 (tinfo 0x7cb49be61300) (first time)
[log] BUILD
...
