问题描述
我正在尝试从网页导航回应用程序,我正在使用 React Native 的深层链接。 app.js 如下:
const linking = {
prefixes: [
'helloapp://'
],config: {
screens: {
CreditAnswer: 'Answer'
}
},};
添加到 info.plist 的 LSApplication 在这里:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>hello app</string>
<key>CFBundleURLSchemes</key>
<array>
<string>hello app</string>
</array>
</dict>
</array>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>hello app</string>
</array>
#import <React/RCTLinkingManager.h>
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
options:(NSDictionary<UIApplicationopenURLOptionsKey,id> *)options
{
return [RCTLinkingManager application:application openURL:url options:options];
}
@end
请帮帮我,我真的看不出哪里出了问题。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)