edsnider / latestversionplugin

LatestVersion Plugin for Xamarin and Windows apps
MIT License
151 stars 38 forks source link

Android: Exception thrown when checking on startup #38

Open stefanhk31 opened 3 years ago

stefanhk31 commented 3 years ago

Bug

Plugin Version: 2.1.0 Platform (e.g., Android v21): Android 9.0/API 28 Device/Hardware: Pixel 4 Emulator

Expected behavior

Version check works

Actual behavior

Version check throws exception:

**Plugin.LatestVersion.LatestVersionException:** 'Error comparing current app version number with latest. Version name=2.1.2 and lastest version= .'

This has just started occurring on emulator debugging this morning. Debugging on actual Android device seems to work OK still.

Steps to reproduce the issue

luismts commented 2 years ago

Same issue here.

In my case is because the package name is different. We are using different package names for prod and testing. So, we can test both on the same device.

You can go away with these issues with a simple try-catch but would be cool some mechanism for preventing this.