Comments (1)
Have you already tried to add this code in your AppDelegate.m
(source: https://reactnative.dev/docs/linking#enabling-deep-links)?
// iOS 9.x or newer
#import <React/RCTLinkingManager.h>
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
return [RCTLinkingManager application:application openURL:url options:options];
}
instead of (the one documented in the current documentation)
// iOS 8.x or older
#import <React/RCTLinkingManager.h>
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
return [RCTLinkingManager application:application openURL:url
sourceApplication:sourceApplication annotation:annotation];
}
To go further, if you already have openUrl
implemented in AppDelegate.m
(for FBDSK for example), you can use (source: https://github.com/thebergamo/react-native-fbsdk-next/#32-ios)
- (BOOL)application:(UIApplication *)app
openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
if ([[FBSDKApplicationDelegate sharedInstance] application:app openURL:url options:options]) {
return YES;
}
if ([RCTLinkingManager application:app openURL:url options:options]) {
return YES;
}
return NO;
}
from react-native-deep-linking.
Related Issues (20)
- Not working on android HOT 2
- Add Android example HOT 3
- addRoute sometimes does not work [ios] HOT 1
- RCTLinkingManager.h is not found in IOS HOT 2
- Best practice for catch all route? HOT 1
- How to test deep linking in iOS? HOT 2
- Not working when the app closed [Android] HOT 2
- Reset Scheme Option ? HOT 3
- Typescript definitions HOT 2
- addEventListener is not working in IOS?
- support deep linking while using url shcme to open app? HOT 2
- An in-range update of eslint-plugin-react is breaking the build 🚨 HOT 11
- Query params inside last uri param HOT 2
- How to open HTTPS URL from the link - iOS HOT 1
- Event listener not working on iOS HOT 1
- Does this lib can work with Expo? Or do you have similar tool which works?
- Query params Deep link not working
- Cannot handle multiple params in a single url
- How to get full URL from addRoute callback/handler
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-deep-linking.