capacitor-inappbrowser icon indicating copy to clipboard operation
capacitor-inappbrowser copied to clipboard

Possible to open inapp browser hidden mode

Open YanouonaY opened this issue 9 months ago • 1 comments

Hello,

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

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

Thanks

YanouonaY avatar May 15 '24 12:05 YanouonaY

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

riderx avatar May 16 '24 13:05 riderx

@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.

avioli avatar Jun 13 '24 23:06 avioli

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

YanouonaY avatar Jun 14 '24 07:06 YanouonaY

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!

avioli avatar Jun 16 '24 06:06 avioli

fetch is ok

YanouonaY avatar Jul 24 '24 08:07 YanouonaY