The app crash when I change the screen orientation in ios because in android I don't have the problem, i want to know if this is a bug or the ios device can not change screen orientation with privacy screen enable
Expected behavior:
the app does not crash when I change orientation in ios
Steps to reproduce:
When I change the screen orientation the app crash in ios
Related code:
constructor(
private router: Router,
private route: ActivatedRoute,
private platform: Platform
){
this.platform.ready().then(() => {
if (this.platform.is('android')) {
this.enablePrivacyScreen();
} else if (this.platform.is('ios')) {
this.enablePrivacyScreen();
} else {
//fallback to browser APIs or
console.log('The platform is not supported');
}
})
}
public async enablePrivacyScreen(): Promise {
await PrivacyScreen.enable();
}
public async disablePrivacyScreen(): Promise {
await PrivacyScreen.disable();
}
Plugin version:
Platform(s):
IOS
Current behavior:
The app crash when I change the screen orientation in ios because in android I don't have the problem, i want to know if this is a bug or the ios device can not change screen orientation with privacy screen enable
Expected behavior:
the app does not crash when I change orientation in ios
Steps to reproduce:
When I change the screen orientation the app crash in ios
Related code:
constructor( private router: Router, private route: ActivatedRoute, private platform: Platform ){ this.platform.ready().then(() => { if (this.platform.is('android')) { this.enablePrivacyScreen(); } else if (this.platform.is('ios')) { this.enablePrivacyScreen(); } else { //fallback to browser APIs or console.log('The platform is not supported'); } }) }
public async enablePrivacyScreen(): Promise {
await PrivacyScreen.enable();
}
public async disablePrivacyScreen(): Promise {
await PrivacyScreen.disable();
}
Other information:
Capacitor doctor: