Hi, guys, I’m getting this error in an ejected expo project does anyone have any ideas of what could it be?
The error says use of undeclared identifier in this line
ios/Pods/ExpoKit/ios/Exponent/Kernel/Services/Notifications/EXRemoteNotificationManager.m:210:55: error: use of undeclared identifier ‘UNAuthorizationStatusProvisional’
code fragment:
- (void)_canRegisterForRemoteNotificationsWithCompletionHandler:(void (^)(BOOL can))handler
{
dispatch_assert_queue(_queue);
// When the user has not granted permission to display any type of notification, iOS doesn't
// invoke the delegate methods and registering for remote notifications will never complete
[_userNotificationCenter getNotificationSettingsWithCompletionHandler:^(UNNotificationSettings * _Nonnull settings) {
bool canRegister = settings.authorizationStatus == UNAuthorizationStatusAuthorized;
if (@available(iOS 12, *)) {
canRegister |= (settings.authorizationStatus == UNAuthorizationStatusProvisional);
}
handler(canRegister);
}];
}
this is the project package.json
package.json
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"eject": "expo eject"
},
"dependencies": {
"expo": "^32.0.0",
"expo-graphics": "^1.0.3",
"expo-three": "^3.0.0-alpha.8",
"expokit": "^32.0.7",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
"three": "^0.101.1"
},
"devDependencies": {
"babel-preset-expo": "^5.0.0"
},
"private": true
}
I followed the steps from the guide
https://docs.expo.io/versions/latest/expokit/eject/
Thanks