Is it possible to access all browser cookies or any other navigation data of a smartphone from android or ios apps using react native, java or swift/objective-C ?
CodePudding user response:
Its not possible in any language. Browsers (and there's more than one of them on Android) are their own separate apps, and have their own private storage. They do not give up the values of their cookies to any other apps, and doing so would be a major privacy violation as it would allow a 3rd party app to see the data stored by a webapp and manipulate it, which could include being able to send API requests as you to a website without your knowledge. So no API will ever be made to allow that.
Now if you're talking about a WebView inside your app (basically a part of your app that displays html)- that might be doable. But not from the browser itself.