I have this react code in typescript
const tryClose = async () => {
if (Capacitor.isNativePlatform()) {
await Browser.close();
}
};
App.addListener('appUrlOpen', (data) => {
if (data.url == 'frive://close') {
tryClose();
window.location.reload();
}
});
and somewhere in the code
window.location.replace('frive://close');
And normally the piece of code is called when I click on the Agree button (the page has been open with Browser.open()) but on some devices this button does nothing (it works on iPhone Xs and not iPhone 15 pro max)
I don’t know what to do now.





