Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

App Crash because of "CANARY_PACKAGE" in Xamarin.Auth nuget #460

Open
1 task
suman-chava-by opened this issue Dec 8, 2021 · 0 comments
Open
1 task

App Crash because of "CANARY_PACKAGE" in Xamarin.Auth nuget #460

suman-chava-by opened this issue Dec 8, 2021 · 0 comments

Comments

@suman-chava-by
Copy link

suman-chava-by commented Dec 8, 2021

Crash:

System.Collections.Generic.KeyNotFoundException: The given key 'CANARY_PACKAGE' was not present in the dictionary.

StackTrace

Dictionary`2[TKey,TValue].get_Item (TKey key)
PackageManagerHelper.GetPackageNamesToUseImplementation (Android.Content.Context context, System.String url)
CustomTabsConfiguration.Initialize (Android.App.Activity a)
WebAuthenticatorNativeBrowserActivity.OnCreate (Android.OS.Bundle savedInstanceState)
Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState)
(wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.7(intptr,intptr,intptr)

Description

We used Xamarin.Auth nuget for SSO authentication in our enterprise app. For some of the Android devices (as reported by different Galaxy phone users), we are getting the above crash issue and user cannot proceed further to login and use the app.
In Appcenter Crash issue stacktrace, it was found that "CANARY_PACKAGE" is missing in a dictionary defined in PackageManagerHelper.cs file, which is part of Xamarin.Auth repository.

https://github.com/xamarin/Xamarin.Auth/blob/master/source/Core/Xamarin.Auth.XamarinAndroid/UINativeNonIntegratedBrowsers/CustomTabsUtilities/PackageManagerHelper.cs

Impact
Users are not able to proceed further and use the app as they are not logging in and also resulting in lesser ratings in Google playstore.

Is there any fix that is planned for the future upgrades of this NuGet?

Version

  • nuget version = 1.7.0

Expected behaviour

App should redirect the login flow to an SSO Webpage and display the login screeen.

Actual behaviour

App is crashing instead of redirecting to SSO web page

image

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

No branches or pull requests

1 participant