Ionic

This guide will help you to add TalkJS to your Ionic app.

Follow a guide

Ionic apps are written as standalone apps or integrated with Angular, React or Vue (Beta). You can follow any of the getting started guides to get TalkJS chat running on your app.

Additional Settings

After following any of the guides above, here are some additional settings you might need to add to get everything to work smoothly.

1. Add TalkJS to an allow list

On some platforms, you need to add the TalkJS URIs to an allow list to be able to load TalkJS. To do this, follow these steps:

  1. Using Cordova Allow List, add a Content Security Policy rule that allows access to https://*.talkjs.com.
  2. TalkJS uses Google Cloud to enable file sharing. If you use file sharing, also add https://firebasestorage.googleapis.com to the allow list.

By default, Cordova opens all links inside your app. If you would like your users also to be able to open links in the device's system browser, then install cordova-plugin-inappbrowser. Despite its name, this plugin includes a feature to avoid using an in-app browser.

TalkJS automatically detects the presence of cordova-plugin-inappbrowser and ensures that external links open in the device's system browser.

If you have followed all the steps above and you still need help, feel free to reach out to on the support chat.