Ionic v3 app closing

Asked

Viewed 375 times

0

I have an application with a login screen and another home, run and Clean on a Samsung S6 Android api 23. I created a new project with minimum api 19 and maximum 28 and when I published some devices informed q the app generated several errors and closed, downloaded to version of android 27 max, same thing, now downloaded to the maximum version 26 and solved for some devices, but continues to give the same problem in devices with api 27+. In none of the lab versions the app shows any kind of flaw, neither when it runs nor when I release it for publication. I’ve deleted the android folder, Node modules and there is no indication of error in anything, put below my settings as I’m with no idea what to do to solve the problem:

Ionic:

Ionic (Ionic CLI) : 4.11.0 (C: Users user Appdata Roaming npm node_modules Ionic) Ionic Framework : Ionic-angular 3.9.3 @Ionic/app-scripts : 3.2.3

Cordova:

Cordova (Cordova CLI) 9.0.0 ([email protected]) Cordova Platforms : android 7.1.4 Cordova Plugins : Cordova-plugin-Ionic-Keyboard 2.1.3, Cordova-plugin-Ionic-webview 3.1.2, (and 11 other plugins)

System:

Android SDK Tools : 26.1.1 (G: android-sdk) Nodejs : V10.15.1 (C: Program Files nodejs Node.exe) npm : 6.4.1 OS : Windows 10

  "scripts": {
"start": "ionic-app-scripts serve",
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint"
"dependencies": {
"@angular/animations": "5.2.11",
"@angular/common": "5.2.11",
"@angular/compiler": "5.2.11",
"@angular/compiler-cli": "^7.2.13",
"@angular/core": "5.2.11",
"@angular/forms": "5.2.11",
"@angular/http": "5.2.11",
"@angular/platform-browser": "5.2.11",
"@angular/platform-browser-dynamic": "5.2.11",
"@ionic-native/core": "~4.18.0",
"@ionic-native/geolocation": "^4.20.0",
"@ionic-native/http": "^4.20.0",
"@ionic-native/local-notifications": "^4.20.0",
"@ionic-native/native-geocoder": "^4.20.0",
"@ionic-native/network": "^4.20.0",
"@ionic-native/splash-screen": "~4.18.0",
"@ionic-native/status-bar": "~4.18.0",
"@ionic/storage": "2.2.0",
"@types/leaflet": "^1.4.4",
"cordova-android": "7.1.4",
"cordova-plugin-advanced-http": "^2.0.6",
"cordova-plugin-badge": "^0.8.8",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-geolocation": "^4.0.1",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^3.1.2",
"cordova-plugin-local-notification": "^0.9.0-beta.2",
"cordova-plugin-nativegeocoder": "^3.2.0",
"cordova-plugin-network-information": "^2.0.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"ionic-angular": "3.9.3",
"ionic-native-http-connection-backend": "^4.0.10",
"ionicons": "3.0.0",
"leaflet": "^1.4.0",
"rxjs": "5.5.11",
"rxjs-compat": "^6.4.0",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.29"
"devDependencies": {
"@ionic/app-scripts": "^3.2.3",
"typescript": "~2.6.2"
"description": "An Ionic project",
"cordova": {
"plugins": {
  "cordova-plugin-whitelist": {},
  "cordova-plugin-statusbar": {},
  "cordova-plugin-device": {},
  "cordova-plugin-splashscreen": {},
  "cordova-plugin-ionic-webview": {
    "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
  },
  "cordova-plugin-ionic-keyboard": {},
  "cordova-plugin-geolocation": {},
  "cordova-plugin-nativegeocoder": {},
  "cordova-plugin-network-information": {},
  "cordova-plugin-advanced-http": {},
  "cordova-plugin-local-notification": {}
},
"platforms": [
  "android"
]

What is making me desperate is that it does not generate errors, only when the customer downloads the application via Playstore and on his device which is a Samsung S9. I have idea that the problem may be related to Ionic/Cordova/android versions but I don’t know what to do.

Thank you in advance to all who can give me a light.

  • An error that occurred to me on newer phones is when I make an HTTP request, by HttpClientModule of Angular itself, and it always returns me an error because it lacked a certain configuration in the config.xml. If you want to know more, see here

  • Ola Vinicius, thanks for responding, I Tow using this plugin: Ionic-Native-http-Connection-backend, to make the http requests, so q I started learning I had problems accessing third party api, will this plugin is incompatible with newer gadget? Unfortunately the link you sent is broken.

  • I took a quick look, and this plugin uses the HttpClientModule when he doesn’t find the @ionic-native/http installed. It is possible that the same error that occurred to me may occur to you. About the link, this is it https://medium.com/@son.rommer/fix-cleartext-Traffic-error-in-android-9-pie-2f4e9e2235e6.

  • Vlw Vinicius, I’ll make the changes and get back to you...

  • 1

    Vinicius you’re the best, that’s right... ball show...

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.