-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
.NET Maui AppLink OnAppLinkRequestReceived doesn't fire on iOS #14671
Comments
For the Steps To Reproduce it should be:
|
It does look like you need to use Maui Compatibility. Also Android also does not work. Fix for me: iOS:
Android:
|
Seems to be working now thanks! |
The error I have with Android is in the App.xaml.cs App() constructor. When I attempt to simulate the same iOS code:
I get 'No AppLinks implementation was found, if in Android make sure you installed the Microsoft.Maui.Controls.AppLinks' |
@Yohancef Same error on Android when calling Looking at the Ultimately, looks like we'd have to copy the two source files from the MAUI Android.AppLinks repo src folder to use this functionality in I suspect this will all work and be included out of the box in Now with that said, I'm personally a little bit confused on the intent of Underneath the Android code specifically I did see that it's using
For iOS, I'm assuming we're taping into this functionality:
|
I got this working on iOS using the workaround from @justintemplar But it's still not working on Android - the app opens when I visit the link, but OnNewIntent never gets called. Any more ideas? I've added the IntentFilter attribute to MainActivity - copied it form the Xamarin version, which works fine. |
@greg84 I have had the Android part working but I have had to remove it because of deeper issues on launch. I am using the tab bar and android launch from links crashes each time. apparently something to do with the use of OpenWith() in the tab bar control itself. |
I have the deep linking for android partially. I am unable to open the app but the OnAppLinkRequestReceived is not being triggered. Any ideas/ anyone got it working? |
@justintemplar @greg84 Did you use the Entitlements.plist to get app linking working for iOS? I see an example in Xamarin.iOS and they did it. |
I believe I have a workaround for Android:
|
Your fix works for me with Maui 8.0.3 and iOS 17 also. Thank you very much. |
There is also new documentation and examples out for .NET 8. https://github.com/Redth/MAUI.AppLinks.Sample This might help many people. |
Verified this issue with Visual Studio Enterprise 17.9.0 Preview 2.1. Can repro on iOS platforms. |
Description
I am trying to create some functionality when a users links into the app. I have created the apple-app-site-association file on the server. It is correctly recognized as an app link and opens my app. The issue is the OnAppLinkRequestReceived event doesn't seem to get triggered. I am using Visual Studio 17.5.4 and XCode 14.2. I am testing in on iOS Simulator 16.2 and on a physical device with iOS 16.1.2.
Following various suggestions I have added the following code:
MauiProgram.cs:
Platforms -> iOS -> AppDelegate.cs:
App.xaml.cs:
Steps to Reproduce
Link to public reproduction project repository
https://github.com/Yohancef/AppLinkBug
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 16.1.2, iOS Simulator 16.2
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: