You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dynamicLinks() .getInitialLink() always returns null and dynamicLinks().onLink() is never triggered. It's working fine in android but I am having issues with IOS even though the configuration is perfect.
AppDelegate.mm
#import "AppDelegate.h"
#import <React/RCTBundleURLProvider.h>
#import "RNFBMessagingModule.h"
#import "RNBootSplash.h"
#import <Firebase.h>
#import <GoogleMaps/GoogleMaps.h>
#import <RNFBDynamicLinksAppDelegateInterceptor.h> // add this line
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.moduleName = @"Okayker";
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
[RNBootSplash initWithStoryboard:@"BootSplash" rootView:self.window.rootViewController.view];
[FIRApp configure];
[RNFBDynamicLinksAppDelegateInterceptor sharedInstance]; // dynamic link
[GMSServices provideAPIKey:@"AIzaSyBL8Z9Z2CqEPwK93Z3yOmpdoT8i30k3k9k"];
self.initialProps = [RNFBMessagingModule addCustomPropsToUserProps:nil withLaunchOptions:launchOptions];
/// This method controls whether the concurrentRootfeature of React18 is turned on or off.
///
/// @see: https://reactjs.org/blog/2022/03/29/react-v18.html
/// @note: This requires to be rendering on Fabric (i.e. on the New Architecture).
/// @return: true if the concurrentRoot feature is enabled. Otherwise, it returns false.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
dynamicLinks() .getInitialLink() always returns null and dynamicLinks().onLink() is never triggered. It's working fine in android but I am having issues with IOS even though the configuration is perfect.
AppDelegate.mm
#import "AppDelegate.h"
#import <React/RCTBundleURLProvider.h>
#import "RNFBMessagingModule.h"
#import "RNBootSplash.h"
#import <Firebase.h>
#import <GoogleMaps/GoogleMaps.h>
#import <RNFBDynamicLinksAppDelegateInterceptor.h> // add this line
@implementation AppDelegate
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.moduleName = @"Okayker";
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
[RNBootSplash initWithStoryboard:@"BootSplash" rootView:self.window.rootViewController.view];
[FIRApp configure];
[RNFBDynamicLinksAppDelegateInterceptor sharedInstance]; // dynamic link
[GMSServices provideAPIKey:@"AIzaSyBL8Z9Z2CqEPwK93Z3yOmpdoT8i30k3k9k"];
self.initialProps = [RNFBMessagingModule addCustomPropsToUserProps:nil withLaunchOptions:launchOptions];
[super application:application didFinishLaunchingWithOptions:launchOptions];
return YES;
}
(NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#else
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}
/// This method controls whether the
concurrentRoot
feature of React18 is turned on or off.///
/// @see: https://reactjs.org/blog/2022/03/29/react-v18.html
/// @note: This requires to be rendering on Fabric (i.e. on the New Architecture).
/// @return:
true
if theconcurrentRoot
feature is enabled. Otherwise, it returnsfalse
.{
return true;
}
@EnD
Library version : "@react-native-firebase/dynamic-links": "^17.5.0",
Beta Was this translation helpful? Give feedback.
All reactions