flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
163.55k stars 26.9k forks source link

[webView_flutter] Disappearing on Return from Background in Android #144134

Closed JungH00ns closed 3 months ago

JungH00ns commented 4 months ago

What package does this bug report belong to?

webview_flutter

What target platforms are you seeing this bug on?

Android

Have you already upgraded your packages?

Yes

Dependency versions

pubspec.lock ```lock # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: _flutterfire_internals: dependency: transitive description: name: _flutterfire_internals sha256: f5628cd9c92ed11083f425fd1f8f1bc60ecdda458c81d73b143aeda036c35fe7 url: "https://pub.dev" source: hosted version: "1.3.16" app_tracking_transparency: dependency: "direct main" description: name: app_tracking_transparency sha256: ce9311f0e393dbd6b1cb4aeaf609e2db8ba20b1327ca67d07c11ef4876f843a8 url: "https://pub.dev" source: hosted version: "2.0.4" appsflyer_sdk: dependency: "direct main" description: name: appsflyer_sdk sha256: bba6e9302f4ebac2e45a1b149874fca8b340d145e4c1011286d4776bf6e9ad4c url: "https://pub.dev" source: hosted version: "6.9.3" archive: dependency: transitive description: name: archive sha256: "20071638cbe4e5964a427cfa0e86dce55d060bc7d82d56f3554095d7239a8765" url: "https://pub.dev" source: hosted version: "3.4.2" args: dependency: transitive description: name: args sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 url: "https://pub.dev" source: hosted version: "2.4.2" asn1lib: dependency: transitive description: name: asn1lib sha256: b74e3842a52c61f8819a1ec8444b4de5419b41a7465e69d4aa681445377398b0 url: "https://pub.dev" source: hosted version: "1.4.1" async: dependency: transitive description: name: async sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0 url: "https://pub.dev" source: hosted version: "2.10.0" boolean_selector: dependency: transitive description: name: boolean_selector sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" url: "https://pub.dev" source: hosted version: "2.1.1" characters: dependency: transitive description: name: characters sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c url: "https://pub.dev" source: hosted version: "1.2.1" checked_yaml: dependency: transitive description: name: checked_yaml sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff url: "https://pub.dev" source: hosted version: "2.0.3" cli_util: dependency: transitive description: name: cli_util sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7 url: "https://pub.dev" source: hosted version: "0.4.0" clock: dependency: transitive description: name: clock sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf url: "https://pub.dev" source: hosted version: "1.1.1" collection: dependency: transitive description: name: collection sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0 url: "https://pub.dev" source: hosted version: "1.17.0" convert: dependency: transitive description: name: convert sha256: "1be13198012c1d5bc042dc40ad1d7f16cbd522350984c0c1abf471d6d7e305c6" url: "https://pub.dev" source: hosted version: "3.1.0" crypto: dependency: transitive description: name: crypto sha256: aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67 url: "https://pub.dev" source: hosted version: "3.0.2" cupertino_icons: dependency: "direct main" description: name: cupertino_icons sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be url: "https://pub.dev" source: hosted version: "1.0.5" dio: dependency: transitive description: name: dio sha256: "7d328c4d898a61efc3cd93655a0955858e29a0aa647f0f9e02d59b3bb275e2e8" url: "https://pub.dev" source: hosted version: "4.0.6" encrypt: dependency: transitive description: name: encrypt sha256: "4fd4e4fdc21b9d7d4141823e1e6515cd94e7b8d84749504c232999fba25d9bbb" url: "https://pub.dev" source: hosted version: "5.0.1" fake_async: dependency: transitive description: name: fake_async sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" url: "https://pub.dev" source: hosted version: "1.3.1" ffi: dependency: transitive description: name: ffi sha256: a38574032c5f1dd06c4aee541789906c12ccaab8ba01446e800d9c5b79c4a978 url: "https://pub.dev" source: hosted version: "2.0.1" file: dependency: transitive description: name: file sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" url: "https://pub.dev" source: hosted version: "6.1.4" firebase_auth: dependency: "direct main" description: name: firebase_auth sha256: "869ff488c7b467e273d7be223f52d3d026576b6e1da92dcd136ff627ae0a8c67" url: "https://pub.dev" source: hosted version: "4.15.0" firebase_auth_platform_interface: dependency: transitive description: name: firebase_auth_platform_interface sha256: ecf9f78ae1a7a1297de01ec975e9e2cfe5b543589b27cc5969849d9a8dc46999 url: "https://pub.dev" source: hosted version: "7.0.6" firebase_auth_web: dependency: transitive description: name: firebase_auth_web sha256: "96f89e2340cdf373109cb29afec401c170aa2d98fb0833687793c8017e36f435" url: "https://pub.dev" source: hosted version: "5.8.9" firebase_core: dependency: "direct main" description: name: firebase_core sha256: "96607c0e829a581c2a483c658f04e8b159964c3bae2730f73297070bc85d40bb" url: "https://pub.dev" source: hosted version: "2.24.2" firebase_core_platform_interface: dependency: transitive description: name: firebase_core_platform_interface sha256: c437ae5d17e6b5cc7981cf6fd458a5db4d12979905f9aafd1fea930428a9fe63 url: "https://pub.dev" source: hosted version: "5.0.0" firebase_core_web: dependency: transitive description: name: firebase_core_web sha256: d585bdf3c656c3f7821ba1bd44da5f13365d22fcecaf5eb75c4295246aaa83c0 url: "https://pub.dev" source: hosted version: "2.10.0" firebase_crashlytics: dependency: "direct main" description: name: firebase_crashlytics sha256: "5125b7f3fcef2bfdd7e071afe7edcefd9597968003e44e073456c773d91694ee" url: "https://pub.dev" source: hosted version: "3.4.9" firebase_crashlytics_platform_interface: dependency: transitive description: name: firebase_crashlytics_platform_interface sha256: "359197344def001589c84f8d1d57c05f6e2e773f559205610ce58c25e2045a57" url: "https://pub.dev" source: hosted version: "3.6.16" flutter: dependency: "direct main" description: flutter source: sdk version: "0.0.0" flutter_launcher_icons: dependency: "direct dev" description: name: flutter_launcher_icons sha256: "526faf84284b86a4cb36d20a5e45147747b7563d921373d4ee0559c54fcdbcea" url: "https://pub.dev" source: hosted version: "0.13.1" flutter_lints: dependency: "direct dev" description: name: flutter_lints sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c url: "https://pub.dev" source: hosted version: "2.0.1" flutter_localizations: dependency: "direct main" description: flutter source: sdk version: "0.0.0" flutter_svg: dependency: "direct main" description: name: flutter_svg sha256: "6ff9fa12892ae074092de2fa6a9938fb21dbabfdaa2ff57dc697ff912fc8d4b2" url: "https://pub.dev" source: hosted version: "1.1.6" flutter_test: dependency: "direct dev" description: flutter source: sdk version: "0.0.0" flutter_web_plugins: dependency: transitive description: flutter source: sdk version: "0.0.0" get: dependency: "direct main" description: name: get sha256: "2ba20a47c8f1f233bed775ba2dd0d3ac97b4cf32fc17731b3dfc672b06b0e92a" url: "https://pub.dev" source: hosted version: "4.6.5" get_storage: dependency: "direct main" description: name: get_storage sha256: "39db1fffe779d0c22b3a744376e86febe4ade43bf65e06eab5af707dc84185a2" url: "https://pub.dev" source: hosted version: "2.1.1" http: dependency: "direct main" description: name: http sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" url: "https://pub.dev" source: hosted version: "0.13.6" http_parser: dependency: transitive description: name: http_parser sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" url: "https://pub.dev" source: hosted version: "4.0.2" image: dependency: transitive description: name: image sha256: "4c68bfd5ae83e700b5204c1e74451e7bf3cf750e6843c6e158289cf56bda018e" url: "https://pub.dev" source: hosted version: "4.1.7" in_app_purchase: dependency: "direct main" description: name: in_app_purchase sha256: "9a167cef15ebe86bb57c78d6121e8b04af3845b6c97a6086fe6df2d487c10f1f" url: "https://pub.dev" source: hosted version: "3.1.1" in_app_purchase_android: dependency: transitive description: name: in_app_purchase_android sha256: af89a844c3f2dfddcfc895334464ab27b07938910d6288de2daf0f8f2fefdad5 url: "https://pub.dev" source: hosted version: "0.2.3+9" in_app_purchase_platform_interface: dependency: transitive description: name: in_app_purchase_platform_interface sha256: d20d37a3cb513a647a570bfcae7ca0ec2038dab6258f58926ddc926a859a03d0 url: "https://pub.dev" source: hosted version: "1.3.2" in_app_purchase_storekit: dependency: transitive description: name: in_app_purchase_storekit sha256: e8ddf8649fab5a6c02f2d16f25f5713d1a482e4faffcabfa0189e1aa75d7548c url: "https://pub.dev" source: hosted version: "0.3.4+1" in_app_review: dependency: "direct main" description: name: in_app_review sha256: "16328b8202d36522322b95804ae5d975577aa9f584d634985849ba1099645850" url: "https://pub.dev" source: hosted version: "2.0.6" in_app_review_platform_interface: dependency: transitive description: name: in_app_review_platform_interface sha256: b12ec9aaf6b34d3a72aa95895eb252b381896246bdad4ef378d444affe8410ef url: "https://pub.dev" source: hosted version: "2.0.4" intl: dependency: transitive description: name: intl sha256: "910f85bce16fb5c6f614e117efa303e85a1731bb0081edf3604a2ae6e9a3cc91" url: "https://pub.dev" source: hosted version: "0.17.0" js: dependency: transitive description: name: js sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7" url: "https://pub.dev" source: hosted version: "0.6.5" json_annotation: dependency: transitive description: name: json_annotation sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 url: "https://pub.dev" source: hosted version: "4.8.1" kakao_flutter_sdk_auth: dependency: transitive description: name: kakao_flutter_sdk_auth sha256: "94e79fe85282ac99e146a08eccbddfc5fbb5690033e97c13146d2dc8521d6e35" url: "https://pub.dev" source: hosted version: "1.4.2" kakao_flutter_sdk_common: dependency: transitive description: name: kakao_flutter_sdk_common sha256: "76eccd72a4e94db9c6be69b670477528d958d2bf38f50a2158dfd306640c7abf" url: "https://pub.dev" source: hosted version: "1.4.2" kakao_flutter_sdk_user: dependency: "direct main" description: name: kakao_flutter_sdk_user sha256: "168bff0eb2742a352cbf3b64c60dff88deb89d959cf7375ea3e0e8416ab138e4" url: "https://pub.dev" source: hosted version: "1.4.2" lints: dependency: transitive description: name: lints sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593" url: "https://pub.dev" source: hosted version: "2.0.1" logger: dependency: transitive description: name: logger sha256: "7ad7215c15420a102ec687bb320a7312afd449bac63bfb1c60d9787c27b9767f" url: "https://pub.dev" source: hosted version: "1.4.0" matcher: dependency: transitive description: name: matcher sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72" url: "https://pub.dev" source: hosted version: "0.12.13" material_color_utilities: dependency: transitive description: name: material_color_utilities sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 url: "https://pub.dev" source: hosted version: "0.2.0" meta: dependency: transitive description: name: meta sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42" url: "https://pub.dev" source: hosted version: "1.8.0" notifly_flutter: dependency: "direct main" description: name: notifly_flutter sha256: "9766d96a4b0da774d6e7e9214868a1829a4b2426e442ea235becba2f51cd23a1" url: "https://pub.dev" source: hosted version: "1.3.5" notifly_flutter_android: dependency: transitive description: name: notifly_flutter_android sha256: "91dfb85e9c1477dcca4be72bd3682ffdc3f95f2df544e8e09cae31c0b437eea6" url: "https://pub.dev" source: hosted version: "1.3.5" notifly_flutter_ios: dependency: transitive description: name: notifly_flutter_ios sha256: "89c3be48158a98baf80de6fd9f9b66db3b6a0fc99f573123df417b2751a29cbc" url: "https://pub.dev" source: hosted version: "1.3.5" notifly_flutter_platform_interface: dependency: transitive description: name: notifly_flutter_platform_interface sha256: "24b9cd192c917b750bb6dd852042435e20d5e30ebdbc195bcdced07830272db9" url: "https://pub.dev" source: hosted version: "1.3.5" notifly_flutter_web: dependency: transitive description: name: notifly_flutter_web sha256: "02b919cba539e9702cea3a49027fda0e814ab1c550ff9c4822260cf7258e9513" url: "https://pub.dev" source: hosted version: "1.3.5" package_info_plus: dependency: "direct main" description: name: package_info_plus sha256: cbff87676c352d97116af6dbea05aa28c4d65eb0f6d5677a520c11a69ca9a24d url: "https://pub.dev" source: hosted version: "3.1.0" package_info_plus_platform_interface: dependency: transitive description: name: package_info_plus_platform_interface sha256: "9bc8ba46813a4cc42c66ab781470711781940780fd8beddd0c3da62506d3a6c6" url: "https://pub.dev" source: hosted version: "2.0.1" path: dependency: transitive description: name: path sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b url: "https://pub.dev" source: hosted version: "1.8.2" path_drawing: dependency: transitive description: name: path_drawing sha256: bbb1934c0cbb03091af082a6389ca2080345291ef07a5fa6d6e078ba8682f977 url: "https://pub.dev" source: hosted version: "1.0.1" path_parsing: dependency: transitive description: name: path_parsing sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf url: "https://pub.dev" source: hosted version: "1.0.1" path_provider: dependency: transitive description: name: path_provider sha256: "050e8e85e4b7fecdf2bb3682c1c64c4887a183720c802d323de8a5fd76d372dd" url: "https://pub.dev" source: hosted version: "2.0.11" path_provider_android: dependency: transitive description: name: path_provider_android sha256: a776c088d671b27f6e3aa8881d64b87b3e80201c64e8869b811325de7a76c15e url: "https://pub.dev" source: hosted version: "2.0.22" path_provider_ios: dependency: transitive description: name: path_provider_ios sha256: "03d639406f5343478352433f00d3c4394d52dac8df3d847869c5e2333e0bbce8" url: "https://pub.dev" source: hosted version: "2.0.11" path_provider_linux: dependency: transitive description: name: path_provider_linux sha256: ab0987bf95bc591da42dffb38c77398fc43309f0b9b894dcc5d6f40c4b26c379 url: "https://pub.dev" source: hosted version: "2.1.7" path_provider_macos: dependency: transitive description: name: path_provider_macos sha256: cd57cb98a30ce9d12fdd1896d9d3b0517ce689f942de6ccd2708cd39b3d18a7c url: "https://pub.dev" source: hosted version: "2.0.7" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface sha256: f0abc8ebd7253741f05488b4813d936b4d07c6bae3e86148a09e342ee4b08e76 url: "https://pub.dev" source: hosted version: "2.0.5" path_provider_windows: dependency: transitive description: name: path_provider_windows sha256: f53720498d5a543f9607db4b0e997c4b5438884de25b0f73098cc2671a51b130 url: "https://pub.dev" source: hosted version: "2.1.5" permission_handler: dependency: "direct main" description: name: permission_handler sha256: "284a66179cabdf942f838543e10413246f06424d960c92ba95c84439154fcac8" url: "https://pub.dev" source: hosted version: "11.0.1" permission_handler_android: dependency: transitive description: name: permission_handler_android sha256: f9fddd3b46109bd69ff3f9efa5006d2d309b7aec0f3c1c5637a60a2d5659e76e url: "https://pub.dev" source: hosted version: "11.1.0" permission_handler_apple: dependency: transitive description: name: permission_handler_apple sha256: "99e220bce3f8877c78e4ace901082fb29fa1b4ebde529ad0932d8d664b34f3f5" url: "https://pub.dev" source: hosted version: "9.1.4" permission_handler_platform_interface: dependency: transitive description: name: permission_handler_platform_interface sha256: "6760eb5ef34589224771010805bea6054ad28453906936f843a8cc4d3a55c4a4" url: "https://pub.dev" source: hosted version: "3.12.0" permission_handler_windows: dependency: transitive description: name: permission_handler_windows sha256: cc074aace208760f1eee6aa4fae766b45d947df85bc831cde77009cdb4720098 url: "https://pub.dev" source: hosted version: "0.1.3" petitparser: dependency: transitive description: name: petitparser sha256: "49392a45ced973e8d94a85fdb21293fbb40ba805fc49f2965101ae748a3683b4" url: "https://pub.dev" source: hosted version: "5.1.0" platform: dependency: transitive description: name: platform sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76" url: "https://pub.dev" source: hosted version: "3.1.0" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface sha256: dbf0f707c78beedc9200146ad3cb0ab4d5da13c246336987be6940f026500d3a url: "https://pub.dev" source: hosted version: "2.1.3" pointycastle: dependency: transitive description: name: pointycastle sha256: "57b6b78df14175658f09c5dfcfc51a46ad9561a3504fe679913dab404d0cc0f2" url: "https://pub.dev" source: hosted version: "3.7.0" process: dependency: transitive description: name: process sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09" url: "https://pub.dev" source: hosted version: "4.2.4" screen_protector: dependency: "direct main" description: name: screen_protector sha256: "541bdcd341de1e38026b5b94cc2a74cd95299d2c51150735165c4b445fa0209a" url: "https://pub.dev" source: hosted version: "1.4.2" shared_preferences: dependency: transitive description: name: shared_preferences sha256: "81429e4481e1ccfb51ede496e916348668fd0921627779233bd24cc3ff6abd02" url: "https://pub.dev" source: hosted version: "2.2.2" shared_preferences_android: dependency: transitive description: name: shared_preferences_android sha256: "8568a389334b6e83415b6aae55378e158fbc2314e074983362d20c562780fb06" url: "https://pub.dev" source: hosted version: "2.2.1" shared_preferences_foundation: dependency: transitive description: name: shared_preferences_foundation sha256: "7bf53a9f2d007329ee6f3df7268fd498f8373602f943c975598bbb34649b62a7" url: "https://pub.dev" source: hosted version: "2.3.4" shared_preferences_linux: dependency: transitive description: name: shared_preferences_linux sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa" url: "https://pub.dev" source: hosted version: "2.3.2" shared_preferences_platform_interface: dependency: transitive description: name: shared_preferences_platform_interface sha256: d4ec5fc9ebb2f2e056c617112aa75dcf92fc2e4faaf2ae999caa297473f75d8a url: "https://pub.dev" source: hosted version: "2.3.1" shared_preferences_web: dependency: transitive description: name: shared_preferences_web sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf url: "https://pub.dev" source: hosted version: "2.2.1" shared_preferences_windows: dependency: transitive description: name: shared_preferences_windows sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59" url: "https://pub.dev" source: hosted version: "2.3.2" sign_in_with_apple: dependency: "direct main" description: name: sign_in_with_apple sha256: ac3b113767dfdd765078c507dad9d4d9fe96b669cc7bd88fc36fc15376fb3400 url: "https://pub.dev" source: hosted version: "4.3.0" sign_in_with_apple_platform_interface: dependency: transitive description: name: sign_in_with_apple_platform_interface sha256: a5883edee09ed6be19de19e7d9f618a617fe41a6fa03f76d082dfb787e9ea18d url: "https://pub.dev" source: hosted version: "1.0.0" sign_in_with_apple_web: dependency: transitive description: name: sign_in_with_apple_web sha256: "44b66528f576e77847c14999d5e881e17e7223b7b0625a185417829e5306f47a" url: "https://pub.dev" source: hosted version: "1.0.1" sky_engine: dependency: transitive description: flutter source: sdk version: "0.0.99" source_span: dependency: transitive description: name: source_span sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 url: "https://pub.dev" source: hosted version: "1.9.1" stack_trace: dependency: transitive description: name: stack_trace sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 url: "https://pub.dev" source: hosted version: "1.11.0" stream_channel: dependency: transitive description: name: stream_channel sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" url: "https://pub.dev" source: hosted version: "2.1.1" string_scanner: dependency: transitive description: name: string_scanner sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" url: "https://pub.dev" source: hosted version: "1.2.0" term_glyph: dependency: transitive description: name: term_glyph sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 url: "https://pub.dev" source: hosted version: "1.2.1" test_api: dependency: transitive description: name: test_api sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206 url: "https://pub.dev" source: hosted version: "0.4.16" typed_data: dependency: transitive description: name: typed_data sha256: "53bdf7e979cfbf3e28987552fd72f637e63f3c8724c9e56d9246942dc2fa36ee" url: "https://pub.dev" source: hosted version: "1.3.0" url_launcher: dependency: "direct main" description: name: url_launcher sha256: "698fa0b4392effdc73e9e184403b627362eb5fbf904483ac9defbb1c2191d809" url: "https://pub.dev" source: hosted version: "6.1.8" url_launcher_android: dependency: transitive description: name: url_launcher_android sha256: "3e2f6dfd2c7d9cd123296cab8ef66cfc2c1a13f5845f42c7a0f365690a8a7dd1" url: "https://pub.dev" source: hosted version: "6.0.23" url_launcher_ios: dependency: transitive description: name: url_launcher_ios sha256: bb328b24d3bccc20bdf1024a0990ac4f869d57663660de9c936fb8c043edefe3 url: "https://pub.dev" source: hosted version: "6.0.18" url_launcher_linux: dependency: transitive description: name: url_launcher_linux sha256: "318c42cba924e18180c029be69caf0a1a710191b9ec49bb42b5998fdcccee3cc" url: "https://pub.dev" source: hosted version: "3.0.2" url_launcher_macos: dependency: transitive description: name: url_launcher_macos sha256: "41988b55570df53b3dd2a7fc90c76756a963de6a8c5f8e113330cb35992e2094" url: "https://pub.dev" source: hosted version: "3.0.2" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface sha256: "4eae912628763eb48fc214522e58e942fd16ce195407dbf45638239523c759a6" url: "https://pub.dev" source: hosted version: "2.1.1" url_launcher_web: dependency: transitive description: name: url_launcher_web sha256: "44d79408ce9f07052095ef1f9a693c258d6373dc3944249374e30eff7219ccb0" url: "https://pub.dev" source: hosted version: "2.0.14" url_launcher_windows: dependency: transitive description: name: url_launcher_windows sha256: "387e227c4b979034cc52afb11d66b04ed9b288ca1f45beeef39b2ea69e714fa5" url: "https://pub.dev" source: hosted version: "3.0.2" vector_math: dependency: transitive description: name: vector_math sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" url: "https://pub.dev" source: hosted version: "2.1.4" webview_flutter: dependency: "direct main" description: name: webview_flutter sha256: "6886b3ceef1541109df5001054aade5ee3c36b5780302e41701c78357233721c" url: "https://pub.dev" source: hosted version: "2.8.0" webview_flutter_android: dependency: transitive description: name: webview_flutter_android sha256: "8b3b2450e98876c70bfcead876d9390573b34b9418c19e28168b74f6cb252dbd" url: "https://pub.dev" source: hosted version: "2.10.4" webview_flutter_platform_interface: dependency: transitive description: name: webview_flutter_platform_interface sha256: "812165e4e34ca677bdfbfa58c01e33b27fd03ab5fa75b70832d4b7d4ca1fa8cf" url: "https://pub.dev" source: hosted version: "1.9.5" webview_flutter_wkwebview: dependency: transitive description: name: webview_flutter_wkwebview sha256: a5364369c758892aa487cbf59ea41d9edd10f9d9baf06a94e80f1bd1b4c7bbc0 url: "https://pub.dev" source: hosted version: "2.9.5" win32: dependency: transitive description: name: win32 sha256: a6f0236dbda0f63aa9a25ad1ff9a9d8a4eaaa5012da0dc59d21afdb1dc361ca4 url: "https://pub.dev" source: hosted version: "3.1.4" xdg_directories: dependency: transitive description: name: xdg_directories sha256: bd512f03919aac5f1313eb8249f223bacf4927031bf60b02601f81f687689e86 url: "https://pub.dev" source: hosted version: "0.2.0+3" xml: dependency: transitive description: name: xml sha256: "979ee37d622dec6365e2efa4d906c37470995871fe9ae080d967e192d88286b5" url: "https://pub.dev" source: hosted version: "6.2.2" yaml: dependency: transitive description: name: yaml sha256: "23812a9b125b48d4007117254bca50abb6c712352927eece9e155207b1db2370" url: "https://pub.dev" source: hosted version: "3.1.1" sdks: dart: ">=2.19.0 <3.0.0" flutter: ">=3.7.0" ```

Steps to reproduce

  1. When the app is launched and left in the background while using other apps, or when receiving a phone call while using the app.
  2. The widget of the app using webview disappears altogether.

Expected results

The app should remain intact even when returning from the background.

Actual results

The WebView widget itself disappears.

Code sample

Code sample ```dart class MachudaWebView extends StatefulWidget { const MachudaWebView({ Key? key, }) : super(key: key); @override State createState() => _MachudaWebViewState(); } class _MachudaWebViewState extends State { final MachudaWebViewController machudaWebViewController = Get.put(MachudaWebViewController()); final DeviceTypeController deviceTypeController = Get.find(); CookieManager cookieManager = CookieManager(); bool isLoading = true; @override void initState() { super.initState(); if (Platform.isAndroid) WebView.platform = AndroidWebView(); } @override Widget build(BuildContext context) { Set javascriptChannels = { outLinkChannel(context), ratingChannel(context), totalInAppPurchaseChannel(context), registerNotiflyChannel(context), loginWithKakaoChannel(context), loginWithAppleChannel(context), disableScreenShot(context), enableScreenShot(context) }; return WillPopScope( onWillPop: () => _goBack(context), child: Scaffold( backgroundColor: Colors.white, body: SafeArea( child: Stack( children: [ Container( color: Colors.white, child: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ SvgPicture.asset("lib/asset/plat_logo.svg",width: 66,height: 66,), const SizedBox(height: 20,), const Text("알수없는 에러가 발생했습니다."), const Text("앱을 재실행 해주세요.") ], ), ), ), WebView( backgroundColor: const Color(0xfff7f7f7), initialUrl: URL.getInitialURL(), javascriptMode: JavascriptMode.unrestricted, onWebViewCreated: (WebViewController webViewController) { machudaWebViewController.webViewController = webViewController; }, javascriptChannels: javascriptChannels, allowsInlineMediaPlayback: true, ), Visibility( visible: isLoading, child: Container( color: Colors.white, child: Center( child: SvgPicture.asset("lib/asset/plat_logo.svg",width: 66,height: 66,), ), )) ], ), ), )); } } ```

Screenshots or Videos

Screenshots / Video demonstration https://github.com/flutter/flutter/assets/52695949/6064c60e-29c7-4d5d-a08a-e6a49a21c6df ![stack](https://github.com/flutter/flutter/assets/52695949/0ae9c3b9-8513-48f3-9090-70ad63485116)

Logs

Logs ```console no logs ```

Flutter Doctor output

Doctor output ```console Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.7.10, on Microsoft Windows [Version 10.0.19045.4046], locale ko-KR) [X] Windows Version (Unable to confirm if installed Windows version is 10 or greater) [!] Android toolchain - develop for Android devices (Android SDK version 31.0.0) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [!] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.6) X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components: MSVC v142 - VS 2019 C++ x64/x86 build tools - If there are multiple build tool versions available, install the latest C++ CMake tools for Windows Windows 10 SDK [!] Android Studio X android-studio-dir = path-to-android-studio X Android Studio not found at path-to-android-studio [√] IntelliJ IDEA Community Edition (version 2021.2) [√] Connected device (1 available) [√] HTTP Host Availability ```
danagbemava-nc commented 4 months ago

Hi @JungH00ns, your flutter doctor shows that you're using an older version of flutter. Kindly upgrade to the latest version of flutter to see if you still experience this issue. If you do, please provide the updated output of flutter doctor -v.

Also, what version of android is your device running?

JungH00ns commented 4 months ago

Is it already noticed in the previous version of flutter or webview_flutter?

danagbemava-nc commented 4 months ago

I haven't encountered this, but Platform views have seen various improvements since the version of flutter you are using was released so there's a chance this does not happen anymore. If you do experience this after upgrading to the latest version of flutter stable (3.19.3), please provide the updated output of flutter doctor -v.

Thank you

JungH00ns commented 4 months ago

Thank you. I'll try to upgrade version and release.

github-actions[bot] commented 3 months ago

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

github-actions[bot] commented 2 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.