Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CORL-2886]: add web view troubleshooting info to docs #4335

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/docs/migrating-6-to-7.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ html {

4. If your site has a Content Security Policy that prohibits websocket (`wss://`) requests, you will need to update it to whitelist `wss://[your coral URL]/api/graphql/live` in order for live updates to function.

## Native mobile applications

- If the Coral embed is not loading in web view after this update, you may need to add in this call:

```js
webView.getSettings.setDomStorageEnabled(true);
```

## After Coral has been updated to v7

Once the update is complete and you are running v7, you may wish to undo some of the previous steps for better maintainability:
Expand Down
8 changes: 8 additions & 0 deletions docs/docs/mobile.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ Integration with native mobile applications is done through web view, you will n
This will initialize the Coral stream with a logged-in user.

5. You will need to use the same method to pass a Story ID or Story URL to the embed code using the `storyID` or `storyURL` options passed to `createStreamEmbed`. See [CMS Integration](/cms) for more details.

### Troubleshooting

If the Coral embed is not loading in web view, and you are using Coral >= v7.0.0, you may need to add in this call:

```js
webView.getSettings.setDomStorageEnabled(true);
```
Loading