ConnectyCube / connectycube-reactnative-samples

Chat and Video Chat code samples for React Native, ConnectyCube
https://connectycube.com
Apache License 2.0
124 stars 111 forks source link

New Chat sample #296

Closed DaveLomber closed 2 years ago

DaveLomber commented 2 years ago

CHANGES

TODO:

Push Notifications details:

With new push notifications lib we bring some changes to the setup process

    const { AppRegistry } = require("react-native");

    // https://reactnative.dev/docs/headless-js-android
    //
    AppRegistry.registerHeadlessTask(
      "JSNotifyWhenKilledTask",
      () => {
        return async (notificationBundle) => {
          console.log('[JSNotifyWhenKilledTask] notificationBundle', notificationBundle);

          PushNotificationService.displayNotification(notificationBundle);
        }
      },
    );
DaveLomber commented 2 years ago

Update React Native documentation re how to use Push NOtifications https://developers.connectycube.com/reactnative/push-notifications