You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide the following information about your environment:
Development OS: Mac
Device OS & Version: Android OS version (13) or iOS version (17)
Version: ViroReact 2.3.0 and React Native 0.67.5
Device(s): OnePlus 8
Description
When using _takeScreenshot on Android it will always fail while working fine on iOS. I suspect it has something to do with the storage permissions but can't really pinpoint to that since I get as a response not success and errorCode 1.
Reproducible Demo
if (arNavigator.current) {
var timestamp = Date.now();
arNavigator.current
._takeScreenshot('ar_photo_' + timestamp, true)
.then(retDict => {
if (!retDict.success) {
if (retDict.errorCode === 1) {
if (Platform.OS === 'ios') {
setPhotoLibraryPermissionError(true);
}
return;
}
}
navigation.push('PhotoProcess', {
uri: 'file://' + retDict.url,
videoObj,
});
})
.catch(error => {
console.log(error);
});
}
The text was updated successfully, but these errors were encountered:
Requirements:
Please go through this checklist before opening a new issue
Environment
Please provide the following information about your environment:
Description
When using
_takeScreenshot
on Android it will always fail while working fine on iOS. I suspect it has something to do with the storage permissions but can't really pinpoint to that since I get as a response not success and errorCode 1.Reproducible Demo
The text was updated successfully, but these errors were encountered: