Bug description:
I’m encountering a difficulty with WebView in my React Native app. When the applying is launched utilizing a deep hyperlink, the WebView doesn’t retain the entry token, inflicting the consumer to be logged out. Nonetheless, when logging in straight utilizing credentials inside the app, every part works as anticipated.
Setup:
Dependencies:
“@react-native-cookies/cookies”: “6.0.11”
“react-native-webview”: “13.10.5”
What I’ve Tried:
Passing cookies utilizing CookieManager.
Verifying that the entry token is about appropriately when logging in straight.
Anticipated Habits:
The WebView ought to retain the entry token and preserve the session when launched through a deep hyperlink.
Precise Habits:
The WebView doesn’t acknowledge the entry token, leading to an automated logout.
Further Context:
Any insights or recommendations on guaranteeing cookies persist in WebView when utilizing deep hyperlinks can be significantly appreciated.
<WebView
ref={(ref) => { this.webviewRef = ref; }}
key={this.state.key}
onLoad={() => this.hideLoader()}
supply={{ uri: this.state.supply }}
androidHardwareAccelerationDisabled={true}
androidLayerType="software program"
sharedCookiesEnabled={true}
thirdPartyCookiesEnabled={true}
useSharedProcessPool={true}
incognito={false}
domStorageEnabled={true}
cacheEnabled={false}
useWebKit={true}
model={{ opacity: 0.99 }}
clearHistory={true}
javaScriptEnabled
onNavigationStateChange={this._onNavigationStateChange.bind(this)}
onMessage={this.onMessage.bind(this)}
/>