Reputation: 83
I'm trying to integrate universal linking in my react native project, it works properly in android while in IOS it's not working, but deep linking it working properly.
when I tried to open the https url ex: https:example.com it is opening is safari it's not redirected to the IOS app
{
"applinks": {
"apps": [],
"details": [
{
"appID": "<Team_ID>.xxx.xxxxx.xxxx.xx.xx",
"paths": [
"NOT /_/*",
"/*"
]
}
]
}}
I have added the following code to AppDelegate.m
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
return [RCTLinkingManager application:application openURL:url
options:options];
}
- (BOOL)application:(UIApplication *)application continueUserActivity:
(nonnull NSUserActivity *)userActivity
restorationHandler:(nonnull void (^)
(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler
{
return [RCTLinkingManager application:application
continueUserActivity:userActivity
restorationHandler:restorationHandler];
}
also I have enable Associated Domains in apple developer
any idea if something is missing?
I'm using react native v0.63.3
Upvotes: 0
Views: 1437
Reputation: 355
Please first of all make sure:
apple-app-site-association
file is under <domain>/.well-known/apple-app-site-association
route and is accesible.apple-app-site-association
has been updated and delete the app from your simulator and install it again, then you can test.Upvotes: 0