1
A
回答
2
本地配置
Auth0将需要处理托管的登录认证的回调。
的Android
在文件的Android /应用/ src目录/主/ AndroidManifest.xml中,你必须确保应用程序的主要活动有singleTask的launchMode价值,它有以下意图过滤器。
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:launchMode="singleTask"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="yakupad.eu.auth0.com"
android:pathPrefix="/android/${applicationId}/callback"
android:scheme="${applicationId}" />
</intent-filter>
</activity>
的iOS
在文件IOS // AppDelegate.m添加以下内容:
#import <React/RCTLinkingManager.h>
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication annotation: (id)annotation
{
return [RCTLinkingManager application:application openURL:url
sourceApplication:sourceApplication annotation:annotation];
}
接下来,您需要使用您的应用程序的包标识添加URLScheme。
检查info.plist中是否存在包标识符,例如
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>None</string>
<key>CFBundleURLName</key>
<string>auth0</string>
<key>CFBundleURLSchemes</key>
<array>
<string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier). </string>
</array>
</dict>
:
<key>CFBundleIdentifier</key>
<string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier). </string>
然后,可以通过将下面的代码段寄存器标识符
相关问题
- 1. 错误:Safari无法打开页面,因为地址无效
- 2. iOS Google+ Safari无法打开页面,因为地址无效
- 3. 对于Google地图链接,“Safari无法打开页面,因为地址无效”
- 4. 错误:Safari无法打开页面,因为地址无效? Facebook集成
- 5. Xamarin.forms的Azure AD B2C“Safari因地址无效而无法打开页面”?
- 6. React Native - launchPackager.command无法打开
- 7. 禁止Safari无法打开页面,因为地址无效?自定义应用程序启动
- 8. iOS safari无法打开超级网站,说地址无效
- 9. Facebook Connect Safari无法打开页面
- 10. iOS 11:Safari无法打开页面,因为它无法重定向到以xyz开头的位置
- 11. React Native开启Facebook页面
- 12. 无法打开页面CSHTML
- 13. 无法打开网页为
- 14. iOS6 Facebook Safari“无法打开页面错误”
- 15. Chrome:没有收到数据,Safari:无法打开页面
- 16. Safari无法打开页面后,Facebook的登录
- 17. Safari无法打开“localhost:8080/auth/facebook/callback”页面?
- 18. React Native Redux Connect无法打开android.js或ios.js扩展
- 19. React-Native Navigator无法渲染
- 20. 无法启动React Native
- 21. React-Native无法导入库
- 22. React Native从webview打开本地文件
- 23. xcode无法打开,因为有问题
- 24. React Native无法为iOS创建
- 25. 页面无法与IP地址
- 26. JSP页面无法解析地址'smtp.gmail.com'
- 27. 无效地址
- 28. react-native-navigation无法导航到另一个页面
- 29. NASM无效地址行为?
- 30. UIAlertView无法打开网址?