sdeprada commented on issue #1318:
URL: https://github.com/apache/cordova-ios/issues/1318#issuecomment-2853605880

   In my case, I was getting that error on IOS too, in the Safari Web Inspector 
Console, but this wasn't the first error. Before this, the next error was shown:
   [Error] TypeError: undefined is not an object (evaluating 
'gapi.iframes.getContext')
   and later, the Cross-Origin error described in the title.
   The root cause was the firebase initialization. For IOS, you have to 
initialize de Firebase Auth module specifying the persistence, so you have to 
use this:
   
   `const app = initializeApp(environment.firebase);
   initializeAuth(app, {
       persistence: indexedDBLocalPersistence
   });`
   
   instead of this:
   
   `
   const app = initializeApp(environment.firebase);
   const auth = getAuth(app);`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to