Naturally one option is to downgrade the plugin in your app to the last version that supported Android 4. Downgrade the webviewĬordova-plugin-ionic-webview used to work on Android 4.x just fine before 2.x was released. Check the general market numbers and especially usage numbers of your own apps already in the Play Console if you might be able to drop support for Android 4.x. Find out if you can avoid supporting Android 4.x devicesĪndroid 4.4 (KitKat) was released in Octoand its continued use makes Android apps much harder to develop and support. Halo, Saya menggunakan perintah 'ionic cordova run Android -livereload -address address' dengan alamat ip saya (192.168.254.58:8100) karena saya perlu menguji di ponsel saya sehingga saya tidak dapat memiliki 'localhost' alamat. You might also want to create an issue or vote and comment on existing issues about the problem. When working on a team, to avoid bugs you want to. Get the problem heardīefore you do anything else, check the open Pull Requests of cordova-plugin-ionic-webview and thumbs-up any PR that adds support for older Android versions like e.g. The problem with Cordova CLI is that the platforms and plugins you install are installed on your machine only. To confirm that you are running a 2.x version of the plugin, use the command ionic cordova plugins. Fix Version/s: None Component/s: Android, Cordova, Ionic, iOS. Resolution: Unresolved Affects Version/s: 3.9.5. Android: Android 5.0+ and cordova-android 6.4+Īnd that is the problem: cordova-plugin-ionic-webview, which is part of any newly created or updated Ionic app, just doesn’t support Android earlier than 5.0 any more, which of course means your app will not work on Android 4.x. MOBILE-3885 Unable to run on ios nor android with the last 3.9.5 version.Unfortunately this change also included this bit in the documentation: The Android webview now uses a local webserver at localhost:8080 to show your app instead of requesting the files directly from the file system. Back then this only applied to iOS.īut on July 23rd 2018 they released version 2.0 of the plugin, that also included changes to the webview used on Android. You are on this page because you have problems with your Ionic app on Android 4.x (probably Android 4.4, KitKat) and are getting this error:īack in October 2017 Ionic introduced cordova-plugin-ionic-webview to support WKWebView in iOS apps (instead of the traditional but deprecated UIWebView) and since then added it to new Ionic apps by default. (lldb) 08:07:02.369 myApp Failed to load webpage with error: The request timed out.First published: August 2018 Why current Ionic apps don’t work with Android 4.x any more - and suggested solutions ![]() (lldb) 08:06:41.223 myApp Resetting plugins due to page load. (lldb) 08:06:34.732 myApp Unlimited access to network resources (lldb) 08:06:34.722 myApp Multi-tasking -> Device: YES, App: YES (lldb) 08:06:34.720 myApp Apache Cordova native platform version 3.7.0 is starting. 08:06:32.167 myApp DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/D288A26E-8124-4636-9B31-EE14F5F9CA1C/Library/Cookies/Cookies.binarycookies ![]() ![]() (lldb) command script add -s asynchronous -f fruitstrap_b8647a1a6f71f6194d3ceae024d7e3f307673097.safequit_command safequit (lldb) command script add -s asynchronous -f fruitstrap_toexit_command autoexit (lldb) command script add -s asynchronous -f fruitstrap_n_command run (lldb) command script add -f fruitstrap_nnect_command connect ![]() You can also run live reload on the specified platform device by adding the -livereload option. When active, Live Reload will reload the browser or Web. (lldb) script fruitstrap_connect_url="connect://127.0.0.1:12345" ionic build windows Live Reload App During Development (beta) The run or emulate command will deploy the app to the specified platform devices/emulators. One option that can boost productivity when building Ionic apps is Live Reload (or live-reload). (lldb) target create "/Users/en17682/dev/projects/WorkTips/myApp/platforms/ios/build/device/myApp.app"Ĭurrent executable set to '/Users/en17682/dev/projects/WorkTips/myApp/platforms/ios/build/device/myApp.app' (armv7). SDK Path: "/Users/en17682/Library/Developer/Xcode/iOS DeviceSupport/8.1.2 (12B440)/Symbols" (lldb) platform select remote-ios -sysroot '/Users/en17682/Library/Developer/Xcode/iOS DeviceSupport/8.1.2 (12B440)/Symbols'
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |