我刚刚升级到sdk48,我得到以下错误:
错误:验证app.json中的字段时出现问题。了解详细信息。
·不应该有额外的属性'facebookScheme'。
·不应该有额外的属性'facebookAppId'。
·不应具有附加属性“facebookDisplayName”。
我的app.json是:
{
"expo": {
"name": "Solebich",
"description": "Solebich.de Design Community",
"slug": "solebich",
"privacy": "unlisted",
"version": "1.19.0",
"orientation": "portrait",
"primaryColor": "#ffffff",
"scheme": "sli",
"icon": "./assets/icons/app-icon.png",
"facebookScheme": "fb#########",
"facebookAppId": "#########",
"facebookDisplayName": "Solebich",
"androidStatusBar": {
"barStyle": "dark-content",
"backgroundColor": "#FFFFFF"
},
"notification": {
"color": "#fba9b5",
"icon": "./assets/icons/notification-icon-bw.png"
},
"splash": {
"icon": "./assets/icons/loading-icon.png",
"hideExponentText": true
},
"plugins": [
"@react-native-firebase/app",
"@react-native-firebase/perf",
"@react-native-firebase/crashlytics",
["./podfile.plugin", "custom"],
"sentry-expo",
[
"expo-image-picker",
{
"photosPermission": "Du kannst bereits gemachte Fotos auf SoLebIch teilen.",
"cameraPermission": "Du kannst Fotos machen und auf SoLebIch teilen."
}
]
],
"updates": {
"fallbackToCacheTimeout": 0,
"checkAutomatically": "ON_ERROR_RECOVERY"
},
"ios": {
"supportsTablet": true,
"bundleIdentifier": "de.solebich.app",
"buildNumber": "1",
"infoPlist": {
"NSLocationAlwaysUsageDescription": "Die App benötigt deine Erlaubnis, um dir Benachrichtigungen zu deinen Inhalten senden zu dürfen.",
"NSCameraUsageDescription": "Du kannst Fotos machen und auf SoLebIch teilen.",
"NSPhotoLibraryUsageDescription": "Du kannst bereits gemachte Fotos auf SoLebIch teilen.",
"CFBundleLocalizations": [
"de"
],
"CFBundleAllowMixedLocalizations": true,
"CFBundleDevelopmentRegion": "de"
},
"associatedDomains": [
"applinks:www.solebich.de",
"applinks:solebich.de"
],
"appStoreUrl": "https://itunes.apple.com/de/app/solebich/id1340857642?mt=8",
"usesAppleSignIn": true,
"config": {
"googleMobileAdsAppId": "#########"
},
"googleServicesFile": "./GoogleService-Info.plist",
"jsEngine": "hermes"
},
"android": {
"googleServicesFile": "./google-services.json",
"package": "de.solebich.app",
"versionCode": 42,
"permissions": [
"READ_EXTERNAL_STORAGE",
"WRITE_EXTERNAL_STORAGE",
"CAMERA",
"NOTIFICATIONS"
],
"playStoreUrl": "https://play.google.com/store/apps/details?id=de.solebich.app",
"config": {
"googleMobileAdsAppId": "#########"
}
},
"hooks": {
"postPublish": [
{
"file": "sentry-expo/upload-sourcemaps",
"config": {
"organization": "solebich-gmbh",
"project": "app-0b",
"authToken": "####################################"
}
}
]
},
"platforms": [
"android",
"ios",
"web"
],
"extra": {
"eas": {
"projectId": "##########-#########-#########"
}
}
}
}
此外,Facebook登录停止工作,我得到的错误:[Unhandled promise rejection: Error: Cannot use the AuthSession proxy because the project full name is not defined. Please ensure you have the latest version of expo-constants installed and rebuild your native app. You can verify that originalFullName is defined by running expo config --type public and inspecting the output.]
我期望它能正确地构建和工作。
在SDK 48的文档中,我找到了以下内容:The URI redirect must be added to your app.config.js or app.json as facebookScheme: 'fb<YOUR FBID>'.
https://docs.expo.dev/versions/latest/sdk/auth-session/#facebook
1条答案
按热度按时间ibrsph3r1#
插件数组中需要包含以下内容:
这是关于facebook登录,并删除任何你早些时候