Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

No IAppIndexingProvider was provided #4

Open
MikeCodesDotNET opened this issue Jun 18, 2019 · 0 comments
Open

No IAppIndexingProvider was provided #4

MikeCodesDotNET opened this issue Jun 18, 2019 · 0 comments
Assignees
Labels
bug Something isn't working iOS The best OS Xamarin.Forms All Things Xamarin.Forms

Comments

@MikeCodesDotNET
Copy link
Owner

MikeCodesDotNET commented Jun 18, 2019

Describe the bug
When attempting to register an AppLink on iOS, the app crashes with an System.ArgumentException having been thrown. The error message is "No IAppIndexingProvider was provided".

To Reproduce
Steps to reproduce the behavior:

  1. Launch the iOS app either on a simulator or physical device
  2. Navigate to the second tab (Advocates)
  3. Select an Advocate (I recommend selecting Mike James)
  4. The app will now crash..

Expected behavior
The app shouldn't crash as the AppIndexingProvider should have been automatically set.

Smartphone:

  • Device: iPhone X
  • OS: iOS 12.4

Nuget Package Versions

  • Xamarin.Forms: 4.0.0.497661
  • Prism.Forms: 7.1.0.431

Attempts to resolve
I read here that RegisterAppLink cannot be called from a constructor. This led me to moving the call to an 'OnNavigatedTo' method. This didn't resolve the issue, which is why I then moved the call to the Advocate Selection method. This also didn't resolve the issue.

@MikeCodesDotNET MikeCodesDotNET added bug Something isn't working Xamarin.Forms All Things Xamarin.Forms iOS The best OS labels Jun 18, 2019
@MikeCodesDotNET MikeCodesDotNET self-assigned this Jun 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working iOS The best OS Xamarin.Forms All Things Xamarin.Forms
Projects
None yet
Development

No branches or pull requests

1 participant