Safari cannot open the page because the address is invalid. An error was encountered with the requested page. Amplify React Native.

Cing Sian Dal
1 min readMay 7, 2020

--

Well, AWS Amplify Docs lacks a lot of details and needs further well-documentations.

Let’s stop the bullshit.

Have you added this in Project > Info > URL Types?

This is the most lacking piece of instruction.

Have you added this in info.plist ?

<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>myapp</string>
</array>
</dict>
</array>

Have you added this on AppDelegate.m ?

// 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];
}

Read more at https://reactnative.dev/docs/linking

Read more at https://medium.com/hackernoon/react-native-deep-linking-for-ios-and-android-d33abfba7ef3

--

--

Cing Sian Dal
Cing Sian Dal

Written by Cing Sian Dal

Don’t follow me. I wrote junks here. Follow me on Twitter instead.

No responses yet