Bug 40866 - RegisterLink throws an ArgumentException on Android
Summary: RegisterLink throws an ArgumentException on Android
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-05-04 17:00 UTC by David Britch
Modified: 2016-07-01 09:20 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Sample (101.43 KB, application/zip)
2016-05-04 17:00 UTC, David Britch
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description David Britch 2016-05-04 17:00:12 UTC
Created attachment 15906 [details]
Sample

The attached sample uses deep linking and works fine on iOS (although the KeyValues collection is always empty, see #40830). 

The droid project has the AndroidAppLinking NuGet package installed, and calls AndroidAppLinking.Init from the MainActivity class. When you add a new item an ArgumentException is thrown when RegisterLink is called, with the error "No IAppIndexingProvider was provided".

Sample attached. In the sample you need to add a new item (the + item) to create a deep link.
Comment 1 Rui Marinho 2016-05-06 12:26:32 UTC
Can you try with AppCompact support?!
Comment 2 David Britch 2016-05-06 14:49:04 UTC
It works fine when using AppCompat.
Comment 3 Rui Marinho 2016-05-25 14:00:19 UTC
Should be fixed in 2.3.0-pre3
Comment 4 Parmendra Kumar 2016-07-01 09:20:44 UTC
I have checked this issue with Xamarin.Forms 2.3.1-pre1 and its working fine.

Hence closing this issue.