Crashing on Android 6.0
mathewthe2 opened this issue · 2 comments
Device: Boox Nova Pro 7.8
Android: 6.0.1
Message: "Unfortunately, Ankiconnect Android has stopped."
This is unfortunate because everything else, including Kiwi Browser, Yomichan, and AnkiDroid work with this device.
It seems the only issue is the notification channel that requires Android 8+.
After removing these three lines and building the app, it works on my e-reader running on Android 6.0.
Not sure what the notification channel is for but it doesn't affect the core functionality.
I'll attach my debug apk I built here in case anyone finds this, but an official compatibility build will be appreciated.
Hey @mathewthe2 thanks for creating this issue and sorry for my slow reply, I've been busy on exSTATic which is nearing release and getting back into immersion. If your Android version is old enough then you may be able to remove the notification channel with no consequences but on newer versions of Android that is necessary to allow the app to run in the background (from what I've read/memory, not a Android developer just someone trying to make something useful). If I get some time later on I'll look into this a little more and determine the best way to add backwards compatibility here (probably just checking version number before running those three lines is enough, assuming you didn't have to make any other changes?).
Good luck mining on Android!