swan-io / react-native-browser

An easy-to-use in-app browser module for React Native, powered by Chrome Custom Tabs / SFSafariViewController.
MIT License
135 stars 11 forks source link

Custom headers and change url detection #8

Closed DanielRiera closed 6 months ago

DanielRiera commented 6 months ago

Why it is needed?

Hi!

I need send headers to target url, example "Authorization" and need detect change url for call custom functions on my app.

For Android & iOS

Thanks for this package :)

Possible implementation

No response

Code sample

No response

zoontek commented 6 months ago

I need send headers to target url, example "Authorization"

What do you call target url? the one opened by the browser?

need detect change url for call custom functions on my app

This is not possible with in-app browsers. See the browser as a black box.

DanielRiera commented 6 months ago
  1. Yes the url open on browser, other packages have support on android.

  2. Ok, On iOS the close url is undefined, i not try on android.

zoontek commented 6 months ago

Yes the url open on browser, other packages have support on android.

This is unfortunately possible on Android, but not on iOS. This packages makes the choice of using a common config, with few options but that work identically on both platforms given their limitations.

DanielRiera commented 6 months ago

Ok, no problem thanks you for reply :)