App crashes on Android 7?


#1

My app works fine on all the versions below 7 but it would crash while launching on Android 7.0+ phones does anyone know why?


#2

I have the same problem. Did you solved this problem?


#3

Update Android SDK Version and set Target API level to 25 rebuild your app and test on android 7 device It should not crash


#4

still crashing, have tried updated everything.


#5

what is error in console.log


#6

https://crosswalk-project.org/jira/browse/XWALK-7214
This error, but I am not sure how to fix.


#7

This error is due to some of your plugin is crashing down. Can you provide the list of plugins in your app


#8

cl.rmd.cordova.dialoggps 0.0.2 "DialogGPS"
com.telerik.plugins.nativepagetransitions 0.6.5 "Native Page Transitions"
cordova-plugin-actionsheet 2.3.1 "ActionSheet"
cordova-plugin-background-mode 0.6.6-dev "BackgroundMode"
cordova-plugin-camera 2.3.0 "Camera"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-crosswalk-webview 2.3.0 "Crosswalk WebView Engine"
cordova-plugin-device 1.1.3 "Device"
cordova-plugin-facebook4 1.7.4 "Facebook Connect"
cordova-plugin-file 4.3.0 "File"
cordova-plugin-file-transfer 1.6.0 "File Transfer"
cordova-plugin-geolocation 2.4.0 "Geolocation"
cordova-plugin-google-analytics 1.6.0 "Google Universal Analytics Plugin"
cordova-plugin-googleplus 5.1.1 "Google SignIn"
cordova-plugin-inappbrowser 1.6.0-dev "InAppBrowser"
cordova-plugin-network-information 1.3.0 "Network Information"
cordova-plugin-request-location-accuracy 2.2.0 "Request Location Accuracy"
cordova-plugin-splashscreen 4.0.1-dev "Splashscreen"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-whitelist 1.3.0 "Whitelist"
cordova-plugin-x-socialsharing 5.1.3 "SocialSharing"
cordova-plugin-x-toast 2.5.2 "Toast"
ionic-plugin-keyboard 2.2.1 "Keyboard"
pushwoosh-cordova-plugin 6.0.2 “Pushwoosh”

OK, here is the list. I originally thought it was due to crosswalk, but the problem still exists after I removed it.


#9

Did you find the reason for this?
I have the same problem!
In my case it was crosswalk that did it!

Do we actually have a chance of crosswalk correcting this bug?

Thank you!


#10

I had to downgrade my app from targetSDK 25 to 23.
<preference name="android-targetSdkVersion" value="23"/>

Ensured I was on the latest crosswalk-webview for safe keeping (v2.3.0)

Removed android platform and added it back.

Now my app doesn’t crash on launch on devices running Android 7+


Ionic doesn't launch on android 7
#11

This is a temporary solution to downgrade.
I think it is just until something requires the new sdk version and then we
will be on a dead end.
The only somewhat more viable aolution I think would be to create a new apk
only for Android 7 without crosswalk and upload both on Google Play.

I think i will go with that solution.
What do you think about it?

Στις 12 Μαρ 2017 18:48, ο χρήστης “Santeko” <
ionicframework@discoursemail.com> έγραψε:


#12

Did you add back platform android@5 or @6?


#13

Unfortunately I also had to downgrade my app as a temporary solution. Has anyone solved this problem? :frowning:


#14

Sorry, not sure I understand


#15

have you found a solution?


#16

@santeko not yet. I have downgraded my app and it keeps in a previous API version


#17

We have the same problem. Had to downgrade to 23.
Would be great if somebody find solution to this.


#18

I have the same problem. Android 7 fails to install. Any solution ?


#19

I’m having this issue as well. Some Android 7 devices work but most do not.

I’m still using Ionic 1 (1.3.3 to be exact)

Logs from ADB logcat give the following. Is anyone else getting this error?

04-18 12:54:02.605 11737 11737 D SystemWebChromeClient: file:///android_asset/www/lib/ionic/js/ionic.bundle.js: Line 26794 : Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
04-18 12:54:02.605 11737 11737 D SystemWebChromeClient: Watchers fired in the last 5 iterations: []
04-18 12:54:02.605 11737 11737 D SystemWebChromeClient: http://errors.angularjs.org/1.5.3/$rootScope/infdig?p0=10&p1=%5B%5D
04-18 12:54:02.605 11737 11737 D SystemWebChromeClient:     at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:13438:12
04-18 12:54:02.605 11737 11737 D SystemWebChromeClient:     at Scope.$digest (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:30277:19)
04-18 12:54:02.605 11737 11737 D SystemWebChromeClient:     at Scope.$apply (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:30503:24)
04-18 12:54:02.605 11737 11737 D SystemWebChromeClient:     at bootstrapApply (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:15083:15)
04-18 12:54:02.605 11737 11737 D SystemWebChromeClient:     at Object.invoke (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:17995:19)
04-18 12:54:02.605 11737 11737 D SystemWebChromeClient:     at doBootstrap (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:15081:14)
04-18 12:54:02.605 11737 11737 D SystemWebChromeClient:     at bootstrap (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:15101:12)
04-18 12:54:02.605 11737 11737 D SystemWebChromeClient:     at angularInit (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:14986:5)
04-18 12:54:02.605 11737 11737 D SystemWebChromeClient:     at file:///android_asset/www/lib/ionic/js/ionic.bundle.js:44079:5
04-18 12:54:02.605 11737 11737 D SystemWebChromeClient:     at HTMLDocument.trigger (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:16497:7)

#20

I am having the same issue. Has anyone found a solution yet ? Downgrading to 23 also didnt help.