Cap-go / capacitor-inappbrowser

Capacitor plugin in app browser with urlChangeEvent
MIT License
57 stars 37 forks source link

Possible to open inapp browser hidden mode #133

Open YanouonaY opened 1 month ago

YanouonaY commented 1 month ago

Hello,

Is it possible to open inapp with url in hidden mode?

usecase: if you want to execute a logout URL with token

Thanks

riderx commented 1 month ago

I think it could be, but, for your use case, why don't you do just a fetch?

avioli commented 2 weeks ago

@YanouonaY I would second that - I strongly suggest you make a window.fetch request instead of opening an in-app browser in a "hidden" mode.

YanouonaY commented 2 weeks ago

Thnaks, but my test with fetch open one browser....

avioli commented 2 weeks ago

Can you show some code @YanouonaY?

Are we talking about the same window.fetch()?

This API doesn't open browsers - it makes a request and you may handle the response (or ignore it, if it's what you want). The only way I see window.fetch() opening a browser window is if you or a some code replaces it with something that does open a browser!