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

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?

Image for post

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

Written by

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

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store