We are using discourse in react-native-web-view with some of the APIs to login, create user and notification to show in app redirect to discourse when user opens it.
There is a behavior that has been puzzling us:
User tap on the notification
(We redirect user to notification tab by this URL: https://community.simplihuman.com/u/farhan.h_1693299563/notifications?filter=all&offset=60&username=farhan.h_1693299563.
When the page loads it says Access denied. But when you tap anywhere in the webview it takes you to login page and then after some time to notifications tab automatically.
Somewhat same thing happens with a user who recently joined the community.
- The user is create at server via API. The server sends cookie to set in headers of webView
- Sometimes it says you were forced logout refresh and takes user login page. Sometimes, after refreshing the page it allow user to use the community.