In order to integrate the 3DS2 protocol of my payment provider (MangoPay), I have to give the BrowserInfo data.
Here is an example:
{
"BrowserInfo": {
"AcceptHeader" : "application/json,text/javascript,*/*;q=0.01<",
"JavaEnabled": true,
"Language":"fr",
"ColorDepth": 32,
"ScreenHeight": 667,
"ScreenWidth": 375,
"TimeZoneOffset": "-120"
"UserAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148"
"JavascriptEnabled": true
}
Currently, I am able to open a browser instance using
WebBrowser.openBrowserAsync.
How can I retrieve those information using React Native + Expo?
The only doable way I found is a multiple steps process.
Public web page
Create and host a public web page doing the following:
In a nutshell:
Expo app redirect fetching
On expo, you have two things to do:
WebBrowserinstance to the previous public pageExample:
With this code, you have a way to fetch the browser info just by pressing the button.
This solution is not ideal because of the user browser opening to achieve that, but I am afraid there is currently no other way.