proyecto26 / react-native-inappbrowser

📱InAppBrowser for React Native (Android & iOS) 🤘
https://www.npmjs.com/package/react-native-inappbrowser-reborn
MIT License
1.31k stars 223 forks source link

[Android] Add includeReferrer to allow adding android package name as referrer for website to track #342

Closed vincent-paing closed 2 years ago

vincent-paing commented 2 years ago

What is the current behavior?

There is no way to add referrer intent extra in android.

What is the new behavior?

Added includeReferrer options for Android to add your package name as referrer when launching in in app browser:

See: https://developer.chrome.com/docs/android/custom-tabs/best-practices/#add-your-app-as-the-referrer

Fixes #86

jdnichollsc commented 2 years ago

Thanks for your amazing contribution mate! <3