After updating my app to SDK 34 (from SDK 33) I’am experiencing an error in Testflight with Permissions.getAsync. The weird part is that it is working fine when running the app in the simulator. I’am using Sentry to log exceptions and the following message is logged when Permissions.getAsync is triggered:
TypeError: undefined is not an object (evaluating 'p.Permissions.getAsync')
The actual code isn’t changed after SDK 33:
import * as Permissions from 'expo-permissions';
return Permissions.getAsync(Permissions.NOTIFICATIONS)
Don’t know if it is a bug or something I did wrong. Hope someone can help me!
Just tested it in the Expo client on my iPhone, same error as in Testflight. Same result when running it with both expo start -c as with expo start --no-dev --minify