fmidev / weather-app

FMI's official weather application for mobile devices
7 stars 2 forks source link

issue-608: Removed javascript-code that caused injectScript error in iOS 18 #613

Closed geosaaga closed 2 months ago

geosaaga commented 2 months ago

JS-code

document.getElementById('fmi-warnings').__vue__.update();

doesn't work with current Smartmet Alert client. Android webview and earlier iOS versions silently ignored javascript error, but in iOS18 this caused injectScript-error.

Smartmet Alert client updates warnings when warning view tab is activated or when app comes active from background state, so it should update often enough so that same warnings are displayed in WarningsPanel and on the map.

Also updated react-native-webview to latest version, because there seemed to be some iOS fixes.