I am trying google sign in with firebase and trying to load the page through pywebview.
from tkinter import *
import webview as webview
root = Tk()
win_width = root.winfo_screenwidth()
win_height = root.winfo_screenheight()
root.geometry("%dx%d" % (win_width, win_height))
webview.create_window(title='My Window', url='http://localhost:81',confirm_close=True)
webview.start()
root.destroy()
When opened with browser, it works fine, but when opened with my code and clicked on sign in, it shows the following message
Unable to establish a connection with the popup. it may have been blocked by the browser.

What is the solution?
What's going on?
As the error message says, the browser you use with the
webviewlibrary (or actually a renderer) most probably does not allow popups.The code you provided does not fire any popups, but as you mentioned Firebase authentication in the tags, I believe it happens during this stage.
Solution
If this issue happens during the Firebase authentication indeed, the simplest solution would be to use the
auth.signInWithRedirect()instead ofauth.signInWithPopup()(see the documentation for more info).If you care about popups in general, you could try to change the renderer settings or even the renderer itself, however, it would be more troublesome.