Closed socheatleang closed 1 year ago
Isn’t the infoPlist
key supposed to be contained within the ios: {…}
object?
Nope. InfoPlist suppose to be inside iOS object.
Nope. InfoPlist suppose to be inside iOS object.
that's exactly what I said.
Have you googled this error? It seems common.
Nope. InfoPlist suppose to be inside iOS object.
that's exactly what I said.
Have you googled this error? It seems common.
Yeah, I have tried. But it seems like there is no best solution for it.
Dude...you didn't put UIBackgroundModes
and BGTaskSchedulerPermittedIdentifiers
in infoPlist
section!
You did this:
infoPlist: {
.
.
.
},
entitlements: {
'com.apple.developer.healthkit': true,
'com.apple.developer.healthkit.background-delivery': true,
},
UIBackgroundModes: ['location', 'fetch', 'processing', 'audio'],
BGTaskSchedulerPermittedIdentifiers: [
'com.transistorsoft.fetch',
'com.transistorsoft.customtask',
],
The Setup Instructions instruct you place them in the infoPlist
section:
These are Info.plist
keys, that are ultimately poked into the iOS Info.plist
file, so of course they must exist within the infoPlist
section of your app.json
.
Thanks @christocracy
@christocracy .
I have no luck to make it work by following ur suggestion.
I still meet the same issue.
And it won't display this any more:
Error: Problems validating fields in app.json. Learn more: https://docs.expo.dev/workflow/configuration/
• Field: ios - should NOT have additional property 'UIBackgroundModes'.
• Field: ios - should NOT have additional property 'BGTaskSchedulerPermittedIdentifiers'.
Error: Problems validating fields in app.json. Learn more: https://docs.expo.dev/workflow/configuration/
• Field: ios - should NOT have additional property 'UIBackgroundModes'.
• Field: ios - should NOT have additional property 'BGTaskSchedulerPermittedIdentifiers'.
I still meet the same issue.
And it won't display this any more:
If “it” doesn’t display “this” anymore, then you don’t have the “same issue”.
I suggest you first practice and learn to use the plug-in within a simple “hello world” app before trying to integrate into your app.
Your Environment
react-native -v
): 0.69.6Error: Problems validating fields in app.json. Learn more: https://docs.expo.dev/workflow/configuration/ • Field: ios - should NOT have additional property 'UIBackgroundModes'. • Field: ios - should NOT have additional property 'BGTaskSchedulerPermittedIdentifiers'. Error: Problems validating fields in app.json. Learn more: https://docs.expo.dev/workflow/configuration/ • Field: ios - should NOT have additional property 'UIBackgroundModes'. • Field: ios - should NOT have additional property 'BGTaskSchedulerPermittedIdentifiers'.