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);
});
}
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