Please provide the following:
- SDK Version: 36
- Platforms(Android/iOS/web/all): iOS
I am receiving the following error regarding expo updates while running my ios application as standalone in TestFlight:
The method or property Updates.checkForUpdateAsync is not available on ios, are you sure you’ve linked all the native dependencies properly?
How can i solve this issue ?
Code block that throws the error
export const checkOTAUpdatesAsync = async () => {
const update = await Updates.checkForUpdateAsync();
if (update.isAvailable) {
await Updates.fetchUpdateAsync();
await AlertAsync(
i18n.t('NewVersionAvailable'),
i18n.t('NewVersionAvailableDescription'),
[
{text: i18n.t('Ok'), onPress: () => Updates.reloadAsync()},
],
{ cancelable: false },
);
}
};