reactjs – A button not working on some iOS device in capacitor browser


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.

garmin capture

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img