I am trying to run my ionic app on an android device using SDK 15 (4.0.4). It installs, but when it opens there is a black screen and then it crashes.
The app runs in the emulator, so I think it has something to do with the fact that it is using an old OS. I have read in two places that it isn't possible to build/run on a phone lower than SDK 21. Is this true?
I am using:
4.0.4/SDK 15.
Samsung Galaxy Note I717
Ionic Framework
According to the official ionic blog ionic does only support Android versions >= 4.1 so your app crashing on 4.0.4 is quite expected.
Related
I made this simple app with Apache Cordova. It must reproduce the sound of a sine wave at a certain frequency. The app is installed correctly on the device but does not play anything. It is as if he did not read the part of javascript. The code is correct. I do not know where the problem is.
I use these software versions:
Android 4.1.2
Cordova 8.0
API 27 26 16
This is the code:
Support of android version older than 4.4 has been removed in cordova android platform v7.1 so you should use older version if you want to use your app on smartphones runing android 4.1.2.
That said, on android before 4.4 the webview was not using chrome but the device's browser and I often had surprise with samsung's browser support of javasctipt/html 5.
I've developed an ionic 1 application which runs flawlesly on my Galaxy S7 (7.0.0 - API level 24), but when I'm trying to run the same app on KitKat device (4.4.2 API level 19) I'm getting the white screen of death.
By default, ionic-cordova defines
Android target: android-26
As you can see here:
After spending a few hours on browsing the internet, first, I thought, I would be able to solve the problem by playing with configuration files (config.xml, build.json, AndroidManifest.xml) and changing android target number to 19 but it didn't help.
I'm an angular (web) developer, so I don't have any expirience with androind development, so may be I'm just don't tunderstand right how the things work.
PS: I'm using latest ionic, ionic cli and cordova versions.
PSS: I have made my development on blank ionic project without any additional plugins except this plugin:
phonegap-plugin-barcodescanner
I found the solution. To make the app running on the KitKat devices I was needed to add the following plugin:
cordova-plugin-crosswalk-webview
My app works on most androids, but in all the devices that run android 6.x.x it stops work at the splashscreen
I've installed the v23 build tools, I've this folders:
/Users/ricardo/android-sdk-macosx/build-tools/23.0.1/
/Users/ricardo/android-sdk-macosx/build-tools/23.0.2/
/Users/ricardo/android-sdk-macosx/build-tools/23.0.3/
When I try to package the app, it's like it uses the v22:
Packaging application: /Users/ricardo/android-sdk-macosx/build-tools/22.0.1/
I've tested iPhone 4, iPhone 5S, iPhone 6S, and this android devices:
The last one is Samsung S7 Edge.
Any thoughts?
Check your manifest, such trouble could be from there. Check all names and permissions, maybe you using something, that was not just deprecated, but removed from Android M
I am an android beginner, I have developed one app, it was working kitkat version, but it's not supported in lollipop version (nexus 5). When I run the app in nexus 5 the app get force stop. This problem arrives development side or lollipop side Any one can help me
For your reference I have used android version as below
Min sdk is 14
Taget Sdk is 21
It may be because of some libraries you have used.I got the same issue when I was having simonvtmenudrawer in my app which was not supported in lolipop.I replaced the same and it is now working fine.
I have Android APIs 14 through 19 installed and the androidmanifest reflects this. I ran cordova build android and my app is still not working on 4.0 or 4.1 (Only versions I can actively test).
Any recommendations?