I have a RN app, and i have an sdk which is responsible for push notifications and deep linking. I want my app to be able to open at certain paths inside the app and also open appstore so that users can download the earliest version of app, through push notifications. I have already set the url schemes.
<array>
<dict>
<key>CFBundleURLName</key>
<string>xxx</string>
<key>CFBundleURLSchemes</key>
<array>
<string>xxx</string>
</array>
</dict>
</array>
In my appDelegate i have this function
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
return [RCTLinkingManager application:application openURL:url options:options];
}
The problem is that when I click on the push notification, app opens something like an internal browser, it loads for some time and then it stays there with a white screen and some buttons on the bottom. Everything I read and tried from the web is not working. Can anyone help me with my code?
PS. Debugger does not even pass by the function I wrote above. It does only if I paste my deep link url in safari and then it works correctly.