liodali / osm_flutter

OpenStreetMap plugin for flutter
https://pub.dev/packages/flutter_osm_plugin
MIT License
232 stars 97 forks source link

Android v8.0 issue #438

Open david-hov opened 1 year ago

david-hov commented 1 year ago

Map it not initialized,always isReady return false, and not ending loading.

E/osm (20818): osm flutter plugin create E/osm (20818): osm flutter plugin start E/osm (20818): osm flutter plugin resume I/PlatformViewsController(20818): Hosting view in view hierarchy for platform view: 0 V/Surface (20818): sf_framedrop debug : 0x4f4c, game : false, logging : 0 D/mali_winsys(20818): EGLint new_window_surface(egl_winsys_display , void , EGLSurface, EGLConfig, egl_winsys_surface *, egl_color_buffer_format , EGLBoolean) returns 0x3000, [1x1]-format:1 D/OpenGLRenderer(20818): eglCreateWindowSurface = 0x7ee7c4b2a0 D/NetworkSecurityConfig(20818): No Network Security Config specified, using platform default I/System.out(20818): (HTTPLog)-Static: isSBSettingEnabled false I/System.out(20818): (HTTPLog)-Static: isSBSettingEnabled false I/System.out(20818): (HTTPLog)-Static: isSBSettingEnabled false I/System.out(20818): (HTTPLog)-Static: isSBSettingEnabled false I/zygote64(20818): Do partial code cache collection, code=112KB, data=73KB I/zygote64(20818): After code cache collection, code=112KB, data=73KB I/zygote64(20818): Increasing code cache capacity to 512KB I/System.out(20818): (HTTPLog)-Static: isSBSettingEnabled false I/System.out(20818): (HTTPLog)-Static: isSBSettingEnabled false I/System.out(20818): (HTTPLog)-Static: isSBSettingEnabled false

Android V6.0 not working, checked also in Android 8 not working Android 8.1 and higher working

Can you provide, android versions that can open the map

liodali commented 1 year ago

as I see in your log you have this error : No Network Security Config specified, using platform default where you need to defined in config.xml check this link : https://stackoverflow.com/questions/39933345/no-network-security-config-specified-using-platform-default-android-log

david-hov commented 1 year ago

as I see in your log you have this error : No Network Security Config specified, using platform default where you need to defined in config.xml check this link : https://stackoverflow.com/questions/39933345/no-network-security-config-specified-using-platform-default-android-log

This is my androidManifest. <activity android:name=".MainActivity" android:usesCleartextTraffic="true" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme"

liodali commented 1 year ago

thats work for sdk >=23 for less you need old way to configure http

david-hov commented 1 year ago

thats work for sdk >=23 for less you need old way to configure http

you mean, like create network_security_config.xml???

david-hov commented 1 year ago

After that still doesn't work. Android 8, Samsung Galaxy 7

I/OsmDroid(31352): Using tile source: Mapnik I/OsmDroid(31352): Tile cache increased from 0 to 9 E/osm (31352): osm flutter plugin create E/osm (31352): osm flutter plugin start E/osm (31352): osm flutter plugin resume I/PlatformViewsController(31352): Hosting view in view hierarchy for platform view: 0 V/Surface (31352): sf_framedrop debug : 0x4f4c, game : false, logging : 0 D/mali_winsys(31352): EGLint new_window_surface(egl_winsys_display , void , EGLSurface, EGLConfig, egl_winsys_surface *, egl_color_buffer_format , EGLBoolean) returns 0x3000, [1x1]-format:1 D/OpenGLRenderer(31352): eglCreateWindowSurface = 0x7ee7233430 I/zygote64(31352): Do full code cache collection, code=112KB, data=109KB I/zygote64(31352): After code cache collection, code=98KB, data=65KB