i'm using facebook sdk in react-native app, , want add support universal deep linking well.
i modified appdelegate per instructions here: https://developers.facebook.com/docs/ios/getting-started/
for deep linking, i'm trying follow this: https://facebook.github.io/react-native/docs/linking.html
however, both seem use same method, , i'm not sure how reconcile:
````
- (bool)application:(uiapplication *)application openurl:(nsurl *)url sourceapplication:(nsstring *)sourceapplication annotation:(id)annotation { return [rctlinkingmanager application:application openurl:url sourceapplication:sourceapplication annotation:annotation]; } - (bool)application:(uiapplication *)application openurl:(nsurl *)url sourceapplication:(nsstring *)sourceapplication annotation:(id)annotation { return [[fbsdkapplicationdelegate sharedinstance] application:application openurl:url sourceapplication:sourceapplication annotation:annotation]; }
````
please let me know how should modify method have both capabilities.
thank you
ended writing simple if statement see if incoming url facebook one, , returning fbsdkapplicationdelegate if was, , rctlinkingmanager object if wasn't.
Comments
Post a Comment