Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Exception thrown when checking on startup #38

Open
stefanhk31 opened this issue Nov 2, 2021 · 1 comment
Open

Android: Exception thrown when checking on startup #38

stefanhk31 opened this issue Nov 2, 2021 · 1 comment

Comments

@stefanhk31
Copy link

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

  • Call CrossLatestVersion.Current.IsUsingLatestVersion() on startup in App.xaml.cs
@luismts
Copy link

luismts commented Dec 27, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants