HomeiOS Developmentionic framework - Service-Staff iOS not working with COOP/COEP and Capacitor

ionic framework – Service-Staff iOS not working with COOP/COEP and Capacitor


I am constructing a PWA utilizing capacitor and JS. The app utilisies Service Staff to initialise Net-Staff. On iOS i am utilizing COOP and COEP as iOS 14 kinda does not help service-workers anymore.. I am now dealing with an issue I am unable to discover a approach round Capacitor is utilizing whilde serving my information a capacitor:// as an alternative of http, however iOS desires it is information served by way of http for safety motive however that may’t work as capacitor is utilizing capacitor.

We have tried to alter the capacitor//; to http://

//capacitor.config.ts
server: {    hostname: 'localhost:3000',    iosScheme: 'http',    androidScheme: 'http' //,

aswell as:

const url = new URL('./service-worker.js', import.meta.url)  console.log(url)  const url2 = url.toString().exchange('capacitor', 'http')  console.log(url2)

Now he all the time working into COOP and COEPs safety issues or I get a JS ttype Error: unlawful constructor

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments