khpylon / MachEWidget

Android Widget for Ford Mustang Mach-E
GNU General Public License v3.0
35 stars 10 forks source link

Widget display N/A & app crashing #11

Closed neildmc closed 2 years ago

neildmc commented 2 years ago

Summary of actions:

Phone: Samsung Galaxy S21 5G, Android 12

  1. Download latest APK
  2. Install successful
  3. Open app. Turn on logging, turn off location & app launcher options.
  4. Enter VIN, u/n & password & click log in
  5. Success popup displayed
  6. Download log (mache_logfile (3).txt)
  7. Add widget to home screen (tried Lawnchair launcher and also Samsung Launcher).
  8. WIDGET DISPLAY N/A FOR ALL VALUES (screenshot attached)
  9. Opening config app, crashes immediately w/ no error
  10. Remove widget from home screen
  11. Open app successful, download log (mache_logfile (4).txt)
  12. Screenshot_20220330-075315_Lawnchair

neildmc commented 2 years ago

mache_logfile (3).txt

neildmc commented 2 years ago

mache_logfile (4).txt

khpylon commented 2 years ago

The issue probably has to do with your VIN and how the app figures out which widget to use. It looks like I'm not processing European VINs.

neildmc commented 2 years ago

Thanks, this worked on my last phone though (Xiaomi Mi 9T Pro w/ Lawnchair launcher) so the API side of things seemed to be fine? The only difference on the Xiaomi I can think of is their version of Android (MIUI) is based on Android 11, and this is running 12. Anything I can try to help?

neildmc commented 2 years ago

Sorry, important update I just reformatted my old phone and it's actually doing the same error. Maybe something changed in the API, or something broke coincidentally in a new version of the APK. Do you persist any of the older versions at all to check? Unfortunately I lost everything on the old phone.

neildmc commented 2 years ago

Figured out how to download the 2022.03.02 APK from Git and it's working fine. Not sure what could be in the new version that's breaking it for me. Will keep trying incremental versions to figure the latest which works for my phone.

khpylon commented 2 years ago

The problem was in how the app tries to determine what to display in the widget based on the VIN; this was a recent addition. I was only looking at North American VINs, so it didn't know how to handle yours. This should be fixed in the next release.