Code Monkey home page Code Monkey logo

cometchat-sample-app-react-native's People

Contributors

ashish-cometchat avatar honey-cometchat avatar jitvarp avatar jitvarpatil avatar juhi-saha avatar kaushikritik avatar ketanyekale avatar mayur-bhandari avatar mayur10 avatar priyadarshininadar avatar raj-dubey1 avatar ranjanravi85 avatar rohitninawe-cometchat avatar swethasreeavula avatar tirathbhuva avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cometchat-sample-app-react-native's Issues

Cannot build Android App - No version of NDK matched

Describe the problem

No version of NDK matched the requested version 21.0.6113669.

Screen Shot 2022-08-31 at 6 06 36 PM

What was the expected behavior?

I can run the example app.

Currently I need to edit app/build.gradle manually like this so the build will proceed:

Screen Shot 2022-08-31 at 6 14 42 PM

Reproduction

yarn install
yarn android

Environment

I am using M1 Macbook with Java 11, Android Studio Chipmunk - 2021.2.1 Patch 2 trying to run the example app in this repo

React native ios project don't work with the new version of React Native Call

I have a huge problem and wishing that you could help me with it. Actually ,i am working in react native project iOS version and i'm trying to run the project in « CometChatWorkspace/cometchat-app » with the new version of React Native Calls « @cometchat-pro/[email protected] » and React Native chats « @cometchat-pro/[email protected] ». So when I run pod install I have this issue

ios issue

I would be very grateful if you could compile it with the new version and i really appreciate it if you could deal with this matter urgently.

Thanks in advance.

[Q] Can this works with OneSignal notification?

Hi, I've run this sample app and can get the basic chatting features working.

However, I have concern on the push notification part as I'm using OneSignal to handle my app's notification due to support for Huawei users. I'm looking for a RTM & VOIP call library to be integrated in my app, hence trying out this library.

As I'm aware, this library is using Firebase to handle its notification. So how do I handle using my own push services? Or if i use Firebase, can it support Huawei devices? Not sure if I can install both push services without conflict.

Can't run locally on iOS

Describe the problem

Can't run the sample locally on an iOS simulator using npx react-native run-ios --simulator="iPhone 15"

The following build commands failed:
	CompileC  ... CometChatWorkspace/ios/Pods/FlipperKit/iOS/FlipperKit/FlipperPlatformWebSocket.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'FlipperKit' from project 'Pods')

Notification not receiving for a group call

Describe the problem

the notification for call received only for one to one/direct call but not working for the group call. Once call init, server should send notification to each member.

What was the expected behaviour?

server should send notification to each member.

Reproduction

Enable chat widget and enabled all notification related to the call.

Environment

node v12.14.0
react-native": "0.64.2

  • Version used:
    Right now I am using below version for SDK
"@cometchat-pro/react-native-calls": "^2.1.1-beta3",
"@cometchat-pro/react-native-chat": "^3.0.0",

Take photo does not works and quits back to compose message screen

Describe the problem

Take photo does not works and quits back to compose message screen

What was the expected behavior?

it show open and after taking a photo it should send that image to the user being chatted with.

Reproduction

open conversation with a user or in a group and select take photo option from the options from bottom sheet.

  • When you choose a conversation with a user or a group.
  • Inside the chat screen. beside message composer input.
  • When you choose the take photo option from the bottom sheet that opens when you press plus button.

License

What license is this and the supporting cometchat UI kit repos distributed under if I want to use it commercially? Thanks.

reactions of messages are not working

Describe the problem

in chat messages reaction pop up opens up and if you choose a reaction nothing happens.

What was the expected behaviour?

selected reaction should be shown with the message.

Reproduction

With each message there is a small reaction icon when we touch on it a pop up opens from where you can select a reaction and if you choose any reaction nothing happens

Note: If clear, reproducible steps or the smallest sample app demonstrating misbehaviour cannot be provided, we may not be able to follow up on this bug report.

  • Step 1..
  • Step 2..
  • ...

Where applicable, please include:

  • The smallest possible sample app that reproduces the undesirable behaviour
  • Log files (redact/remove sensitive information)
  • Application settings (redact/remove sensitive information)
  • Screenshots

Environment

Please provide the following:

-branch :master

  • Version used:
  • Other modules/plugins/libraries that might be involved:

CometChatCalls

Describe the problem

Unable to install CometChatCalls when running arch -x86_64 pod install.

[!] Error installing CometChatCalls
[!] /opt/anaconda3/bin/curl -f -L -o /var/folders/zr/0w5gcg69431fwbkc15gfdmvm0000gn/T/d20211012-3769-1db3yfz/file.zip https://library.cometchat.io/ios/v2.0/xcode12/CometChatCalls_2_0_3.zip --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.11.2 cocoapods-downloader/1.4.0'

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
27 332M 27 91.9M 0 0 1219k 0 0:04:39 0:01:17 0:03:22 2430k
curl: (56) OpenSSL SSL_read: Connection reset by peer, errno 54

React Native Call not receiving in Background

Hi,
I am integrating CometChat library in React native application. The call feature is working fine when app is in open state, but when the app is in background state the call is not receiving. Please guide me how can I integrate Background Call Feature
Thanks in advance

  • Version used:
    React Native Version 0.61.3
    CometChat Version 2.1.4
    CometChat Call Version 1.0.3

Cannot install using yarn

I tried to install the example app using yarn and it crashes. Only npm install seems to work atm.

How to add specific user to chat list?

Describe the problem

How do I add a particular user to my chat ? Suppose it's a social media app I want only my friends to be under the contact list with whom I can chat?

Environment

Please provide the following:

React-Native Android & iOS, React Native SDK

Unable to login

Logs in xcode

2019-06-25 15:09:20.475 [info][tid:com.facebook.react.JavaScript] CometChat login Called 2019-06-25 15:09:20.474756-0700 chatApp[7195:1843741] CometChat login Called 2019-06-25 15:09:20.645 [warn][tid:com.facebook.react.JavaScript] Possible Unhandled Promise Rejection (id: 10): TypeError: undefined is not an object (evaluating 's.localStore.getItem') http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:114641:25 tryCallTwo@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:3165:9 doResolve@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:3329:25 Promise@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:3188:14 get@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:114640:29 http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:113554:334 tryCallTwo@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:3165:9 doResolve@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:3329:25 Promise@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:3188:14 login@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:113553:31 cometchatLogin@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:112610:30 buttonPressed@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:112598:28 proxiedMethod@[native code] touchableHandlePress@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:51131:47 touchableHandlePress@[native code] _performSideEffectsForTransition@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:50570:36 _performSideEffectsForTransition@[native code] _receiveSignal@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:50496:46 _receiveSignal@[native code] touchableHandleResponderRelease@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:50379:26 touchableHandleResponderRelease@[native code] invokeGuardedCallbackImpl@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11408:21 invokeGuardedCallback@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11499:42 invokeGuardedCallbackAndCatchFirstError@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11503:36 executeDispatch@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11697:48 executeDispatchesInOrder@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11717:26 executeDispatchesAndRelease@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11812:35 forEach@[native code] forEachAccumulated@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11802:22 runEventsInBatch@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11906:27 runExtractedEventsInBatch@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11913:25 http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:12880:36 batchedUpdates$1@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:24086:20 batchedUpdates@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:12822:37 _receiveRootNodeIDEvent@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:12879:23 receiveTouches@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:12909:34 __callFunction@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:2587:49 http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:2344:31 __guard@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:2541:15 callFunctionReturnFlushedQueue@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:2343:21 callFunctionReturnFlushedQueue@[native code] 2019-06-25 15:09:20.645527-0700 chatApp[7195:1843741] Possible Unhandled Promise Rejection (id: 10): TypeError: undefined is not an object (evaluating 's.localStore.getItem') http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:114641:25 tryCallTwo@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:3165:9 doResolve@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:3329:25 Promise@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:3188:14 get@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:114640:29 http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:113554:334 tryCallTwo@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:3165:9 doResolve@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:3329:25 Promise@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:3188:14 login@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:113553:31 cometchatLogin@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:112610:30 buttonPressed@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:112598:28 proxiedMethod@[native code] touchableHandlePress@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:51131:47 touchableHandlePress@[native code] _performSideEffectsForTransition@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:50570:36 _performSideEffectsForTransition@[native code] _receiveSignal@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:50496:46 _receiveSignal@[native code] touchableHandleResponderRelease@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:50379:26 touchableHandleResponderRelease@[native code] invokeGuardedCallbackImpl@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11408:21 invokeGuardedCallback@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11499:42 invokeGuardedCallbackAndCatchFirstError@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11503:36 executeDispatch@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11697:48 executeDispatchesInOrder@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11717:26 executeDispatchesAndRelease@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11812:35 forEach@[native code] forEachAccumulated@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11802:22 runEventsInBatch@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11906:27 runExtractedEventsInBatch@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:11913:25 http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:12880:36 batchedUpdates$1@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:24086:20 batchedUpdates@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:12822:37 _receiveRootNodeIDEvent@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:12879:23 receiveTouches@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:12909:34 __callFunction@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:2587:49 http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:2344:31 __guard@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:2541:15 callFunctionReturnFlushedQueue@http://192.168.0.21:8081/index.bundle?platform=ios&dev=true&minify=false:2343:21 callFunctionReturnFlushedQueue@[native code] 2019-06-25 15:09:20.799750-0700 chatApp[7195:1843745] [] nw_socket_handle_socket_event [C132.1:1] Socket SO_ERROR [61: Connection refused] 2019-06-25 15:09:20.800920-0700 chatApp[7195:1843745] [] nw_socket_handle_socket_event [C132.2:1] Socket SO_ERROR [61: Connection refused] 2019-06-25 15:09:20.801215-0700 chatApp[7195:1843731] [] nw_connection_get_connected_socket [C132] Client called nw_connection_get_connected_socket on unconnected nw_connection 2019-06-25 15:09:20.801254-0700 chatApp[7195:1843731] TCP Conn 0x2835a2100 Failed : error 0:61 [61] 2019-06-25 15:09:22.984389-0700 chatApp[7195:1843731] [] nw_socket_handle_socket_event [C133.1:1] Socket SO_ERROR [61: Connection refused] 2019-06-25 15:09:22.986824-0700 chatApp[7195:1843731] [] nw_socket_handle_socket_event [C133.2:1] Socket SO_ERROR [61: Connection refused] 2019-06-25 15:09:22.987430-0700 chatApp[7195:1843745] [] nw_connection_get_connected_socket [C133] Client called nw_connection_get_connected_socket on unconnected nw_connection 2019-06-25 15:09:22.987495-0700 chatApp[7195:1843745] TCP Conn 0x2835af180 Failed : error 0:61 [61]

pod install fails

Describe the problem

pod install fails

the lock file is incorrect and contains refs to CometChatCalls (= 2.0.3) instead of CometChatCalls (= 2.1.1)
like the cometchat-app/ios/Pods/Local Podspecs/react-native-cometchat-rtc.podspec.json json file requires.

  "dependencies": {
    "React": [

    ],
    "CometChatCalls": [
      "2.1.1"
    ]
  }

What was the expected behavior?

pod install should succeed

Reproduction

Detail the steps taken to reproduce this error, and whether this issue can be reproduced consistently or if it is intermittent.
Note: If clear, reproducable steps or the smallest sample app demonstrating misbehavior cannot be provided, we may not be able to follow up on this bug report.

follow the steps in the readme, using v3 branch (or master).

➜  ios pod install
Auto-linking React Native modules for target `example`: RNCAsyncStorage, RNCMaskedView, RNCPicker, RNFastImage, RNGestureHandler, RNReanimated, RNScreens, RNSound, RNVectorIcons, react-native-cometchat-rtc, react-native-document-picker, react-native-image-picker, react-native-keep-awake, react-native-safe-area-context, react-native-video, react-native-webview, and rn-fetch-blob
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
[!] CocoaPods could not find compatible versions for pod "CometChatCalls":
  In snapshot (Podfile.lock):
    CometChatCalls (= 2.0.3, = 2.1.0)

  In Podfile:
    react-native-cometchat-rtc (from `../node_modules/@cometchat-pro/react-native-calls`) was resolved to 2.1.1, which depends on
      CometChatCalls (= 2.1.1)


You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * changed the constraints of dependency `CometChatCalls` inside your development pod `react-native-cometchat-rtc`.
   You should run `pod update CometChatCalls` to apply changes you've made.
   

image

  • Screenshots

Environment

Please provide the following:

  • Version used:
  • Other modules/plugins/libraries that might be involved:

Expo: Cannot read property 'BaseInputElement' of undefined

Describe the problem

Getting error as TypeError: Cannot read property 'BaseInputElement' of undefined, js engine: hermes when i try to implement Cometchat UIKit for React Native V4 with using expo

What was the expected behavior?

App need to run and working

Reproduction

Create new expo project: yarn create expo-app AwesomeProject
Install dependencies: yarn add @cometchat/chat-uikit-react-native @cometchat/[email protected] @react-native-async-storage/[email protected] @react-native-community/[email protected]
Include init code: CometChatUIKit.init(uikitSettings)
Run App: npx expo run:ios

Error: TypeError: Cannot read property 'BaseInputElement' of undefined, js engine: hermes

Simulator Screenshot - iPhone 15 Pro Max - 2024-03-21 at 10 41 13

Environment

"@cometchat/chat-sdk-react-native": "^4.0.6",
"@cometchat/chat-uikit-react-native": "^4.2.2",
"@react-native-async-storage/async-storage": "^1.23.1",
"@react-native-community/clipboard": "^1.5.1",
"@react-native-community/datetimepicker": "^7.6.3",
"expo": "~50.0.14",
"react": "18.2.0",
"react-native": "0.73.6"

False API_KEY_NOT_SET

Describe the problem

I am seeing a API_KEY_NOT_SET when creating a user and then logging them in with the React Native SDK.

What was the expected behavior?

Create a user and then log them in.

Reproduction

Detail the steps taken to reproduce this error, and whether this issue can be reproduced consistently or if it is intermittent.

  1. Init CometChat, `const appSettings = new CometChat.AppSettingsBuilder()
    .subscribePresenceForAllUsers()
    .setRegion(REGION)
    .build();

    await CometChat.init(COMET_CHAT_APP_ID, appSettings);`

  2. Create a new user, const ccUserObj = new CometChat.User({ uid: userId, name: username }); newCometChatUser = await CometChat.createUser(ccUserObj, COMET_AUTH_KEY);

  3. Log the user in, const loggedInUser = await CometChat.login(cometChatUserId, COMET_AUTH_KEY);

  4. Optional delete the user and start again (use the delete endpoint)

Full code snippet

const COMET_AUTH_KEY = 'the_key';
const COMET_CHAT_APP_ID = 'whatever';
// other consts omitted
const initCometChat = async () => {
  try {
    if (!cometInited) {
      console.log('Initializing CometChat');
      const appSettings = new CometChat.AppSettingsBuilder()
        .subscribePresenceForAllUsers()
        .setRegion(REGION)
        .build();

      await CometChat.init(COMET_CHAT_APP_ID, appSettings);
    }
  } catch (err) {
    console.err('[initCometChat]', 'Could not initialize CometChat', err);
  }
};

try {
    loggedInUser = await CometChat.login(cometChatUserId, COMET_AUTH_KEY);
  } catch (err) {
    const { code } = err;
    switch(code) {
      case LOGIN_IN_PROGRESS:
        console.debug(LOGIN_IN_PROGRESS);
        await new Promise((r) => setTimeout(r, 1000));
        loggedInUser = await CometChat.login(cometChatUserId, COMET_AUTH_KEY);
      case ERR_UID_NOT_FOUND:
        console.debug(context, 'ERR_UID_NOT_FOUND');
        await createCometChatUser(cometChatUserId, username);
        await new Promise((r) => setTimeout(r, 1000));
        loggedInUser = await CometChat.login(cometChatUserId, COMET_AUTH_KEY);
      case API_KEY_NOT_SET:
        console.log(context, 'API_KEY_NOT_SET');
        await new Promise((r) => setTimeout(r, 1000));
        await initCometChat();
        loggedInUser = await CometChat.login(cometChatUserId, COMET_AUTH_KEY);
      default: await CometChat.login(cometChatUserId, COMET_AUTH_KEY);
        console.log('Unhandled comet error', code);
    }

You will see an error come back asAPI_KEY_NOT_SET, when it is in fact set.
Sometimes, the error comes back as {"code": "-1", "details": {}, "message": "please initialize the cometchat before using login method.", "name": "COMETCHAT_INITIALIZATION_NOT_DONE"}. This is also not the case, because I'm 100% certain that initialization has taken place.

Please provide the following:

-Version used: "@cometchat-pro/react-native-chat": "3.0.2"

Camera feature should not be required by pro-android-calls-sdk-2.0.1 dependency

Describe the problem

Camera feature should not be required by pro-android-calls-sdk-2.0.0 dependency. because of this app is not compatible on devices which lack autofocus feature. you should add the following to mentioned manifest file of pro-android-calls-sdk-2.0.0 depandency.
should be added: android:required="false"

What was the expected behavior?

Amazon said you need to make one more change, as well
Change this line in your manifest:
<uses-feature android:name="android.hardware.camera" />
to this:


<uses-feature android:name="android.hardware.camera" android:required="false"/>

Reproduction

  • Screenshots
    117616412-892a9200-b184-11eb-8b49-b2b2fa8ed143

Environment

Please provide the following:

  • Version used:
    latest @cometchat-pro/react-native-calls

There is a user that is always online

Describe the problem

There is a user that is always online due to some issue on the back-end

What was the expected behavior?

the mentioned user should not be online when the user is not using the app just like all other users.

Reproduction

App id: 27437a7055e4f88
User UID: 5fce4a99a6cb320029adadb5

  • the user UID and AppId is mentioned. the mentioned user is always online leading testers to believe there is something wrong with the backend of CometChat.

Messages sent when app if offline are lost

Describe the problem

Messages sent when the app is offline disappear when the app goes online again

What was the expected behavior?

Messages should not disappear when the app goes online again

Reproduction

I took a video of my test device (offline) to illustrate the problem

RPReplay_Final1710752157.MP4

Environment

Please provide the following:

  • iPhone 11 with iOS 17.4

React Native ios App Crashed on Release.

Describe the problem

Hello my iOS app is crashed on release but it is working fine on debug mode.
the issue i have debug so far is i found that there is the issue of data in fetchPrevious function, i put simple alert in that response and that causing app crash on release mode in iOS, please help me Thanks Regards
Syed Haris.

Screenshot 2020-08-27 at 9 02 23 PM

Screenshot 2020-08-31 at 3 58 07 PM

### Environment

Release.

  • Version used:
  • "@cometchat-pro/react-native-chat": "^2.0.12"

Cannot read property shouldAutoEstablishSocketConnection

Cannot read property shouldAutoEstablishSocketConnection of undefined, js engine: hermes
It's ok when I just run the application, but when I build it to apk file for android and then try to open the app it does not work.

related stack overflow issue

Снимок экрана от 2024-03-18 11-54-51

Environment

"react-native": "0.72.8",
"@cometchat/chat-sdk-react-native": "^4.0.5",

App.tsx:

import React, { useCallback, useEffect } from 'react';
import { getTrackingStatus, requestTrackingPermission } from 'react-native-tracking-transparency';

import i18next from '@/services/i18next';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { I18nextProvider } from 'react-i18next';

import { Provider } from 'react-redux';
import { persistor, store } from '@/redux';
import { PersistGate } from 'redux-persist/integration/react';
import { AppNavigation } from '@/navigation';
import { GoogleSignin } from '@react-native-google-signin/google-signin';
import { BottomSheetModalProvider } from '@gorhom/bottom-sheet';
// eslint-disable-next-line no-duplicate-imports
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { NotificationToast } from '@/components/NotificationToast/NotificationToast';
import { Alert, Linking, StatusBar, useColorScheme } from 'react-native';
import { save, get } from './src/utils/asyncStorage/asyncStorage';
import appleAuth from '@invertase/react-native-apple-authentication';
import { isAndroid } from '@/utils/platform/isAndroid';
import { CometChat } from '@cometchat/chat-sdk-react-native';

function App(): JSX.Element {
  const appearance = useColorScheme();

  const initCometChat = () => {
    const appID = process.env.COMET_CHAT_APP_ID;
    const region = process.env.COMET_CHAT_REGION;

    const appSetting = new CometChat.AppSettingsBuilder()
      .subscribePresenceForAllUsers()
      .setRegion(region)
      .autoEstablishSocketConnection(true)
      .overrideAdminHost(`${appID}.api-${region}.cc-cluster-2.io/v3`)
      .overrideClientHost(`${appID}.apiclient-${region}.cc-cluster-2.io/v3`)
      .build();
    CometChat.init(appID, appSetting).then(
      () => {
        console.log('Comet Chat initialization completed successfully');
      },
      error => {
        console.log('Comet Chat initialization failed with error:', error);
      },
    );
  };

  const setAppTheme = useCallback(async () => {
    const IS_FIRST = await get('IS_FIRST');

    if (IS_FIRST === null) {
      save('THEME', appearance);
      save('IS_FIRST', true);
    }
  }, []);

  useEffect(() => {
    setAppTheme();
  }, [setAppTheme]);

  const tracking = async () => {
    const permissionStatus = await getTrackingStatus()

    if (permissionStatus === "not-determined") {
      const trackingStatus = await requestTrackingPermission();
      console.log("trackingStatus", trackingStatus);
      return
    }

    if (permissionStatus === "denied") {
      Alert.alert('Allow to track you activity across others companies app and websites?', ' Settings > Privacy & Security > Tracking.', [
        {
          text: 'Go to settings',
          onPress: () => Linking.openSettings(),
          style: 'cancel',
        },
        {
          text: 'Cancel',
          onPress: () => console.log('Cancel Pressed'),
        },
      ]);
    }

  };


  useEffect(() => {
    GoogleSignin.configure({
      iosClientId: process.env.GOOGLE_OAUTH_CLIENT_ID_IOS,
      webClientId: process.env.GOOGLE_OAUTH_CLIENT_ID_WEB,
    });
    tracking();
    initCometChat();
  }, []);

  useEffect(() => {
    if (!isAndroid()) {
      return appleAuth.onCredentialRevoked(async () => {
        console.warn(
          'If this function executes, User Credentials have been Revoked',
        );
      });
    }
  }, []);

  return (
    <Provider store={store}>
      <PersistGate persistor={persistor} loading={null}>
        <I18nextProvider i18n={i18next}>
          <GestureHandlerRootView style={{ flex: 1 }}>
            <BottomSheetModalProvider>
              <SafeAreaProvider>
                <StatusBar
                  barStyle={
                    appearance === 'light' ? 'light-content' : 'dark-content'
                  }
                />
                <NotificationToast />
                <AppNavigation />
              </SafeAreaProvider>
            </BottomSheetModalProvider>
          </GestureHandlerRootView>
        </I18nextProvider>
      </PersistGate>
    </Provider>
  );
}

export default App;

In push notification not receiving notification payload

While App is in the background or open state in messaging().onMessage event only receives data payload and notification payload not receive.

So, notification not working, while from API push notification is working.

Here are details of package.json:

"react-native": "0.63.4",
"@react-native-firebase/app": "^10.8.0",
"@react-native-firebase/messaging": "^10.8.0",
"@cometchat-pro/react-native-calls": "^1.0.8",
"@cometchat-pro/react-native-chat": "^2.2.1",

Integrating CometChat library in React native iOS application issues

Hi,
I am integrating CometChat library in React native application. So I have two issues:

The first, when I click on the call button the calling interface is not displayed but when I click on the back button it is displayed.
The second, when I click on the Video Library button then I choose my video finally the app is crashing.
Please guide me how can I integrate Call and Video Library Feature.

cometChatIntegration.mp4

Thanks in advance

Version used:
React Native Version: 0.64.0
CometChat Version: ^2.3.3
CometChat Call Version: 2.0.3-beta1

Messages appear in wrong place

Hi!

When I message in group chat, messages appear on the right place and I can see the delivery indicator. However when I message to users, messages appear on the left side, like if it was not my own messages.

Personal chat:
Снимок экрана 2020-01-13 в 10 20 08

Group chat:
Снимок экрана 2020-01-13 в 10 22 27

Push Notification not Showing in Notification

Hello when i send message from comet chat i am not recieving notification on my mobile it only appears in onMessage, but it is not being shown as notification because it doesn’t have a notification object JSON in it.
is there any work around for this.
Thanks

"react-native-firebase": "^5.6.0",
"@cometchat-pro/react-native-chat": "^2.0.12",

Camera feature should not be required by pro-android-calls-sdk-2.0.0 dependency

Camera Autofocus feature should not be required by pro-android-calls-sdk-2.0.0 dependency. because of this app is not compatible on devices which autofocus feature.

Provide a clear and concise description of the issue

What was the expected behavior?

Camera Autofocus feature should not be required by pro-android-calls-sdk-2.0.0 dependency. because of this app is not compatible on devices which lack autofocus feature. you should add the following to mentioned manifest file of pro-android-calls-sdk-2.0.0 depandency.
should be added: android:required="false"

here

cometchat send

TypeError: Cannot read property 'scrollTo' of null, js engine: hermes

Describe the problem

App crashing when keyboard is visible for new user chat

What was the expected behavior?

User can able to chat with new user!

Reproduction

  • Step 1: Open app and navigate to new user whom we didn't chat before
  • Step 2: Touch on message input box to create new chat

Screen recording:

Screen.Recording.2024-06-04.at.10.53.55.mov

Log :
TypeError: Cannot read property 'scrollTo' of null, js engine: hermes

Environment

"react-native": "0.73.6",
"@cometchat/chat-sdk-react-native": "^4.0.7",
"@cometchat/chat-uikit-react-native": "^4.3.9",

npm install failure

Describe the problem

When I run npm install, the command fails because the package async-storage 1.17.10 doesn't support rn 0.72.4

Reproduction

Clone the project and run npm install; using async-storage 1.22.3 seems to fix the problem

there is no method to delete a conversation.

Describe the problem

In inbox there is no method to delete a conversation.

What was the expected behaviour?

There should be some way of deleting a conversation.

Reproduction

In the inbox where you can choose to continue a group chat or chat with a person there is no way of deleting a conversation.

Environment

-branch: main

There is no way to add a group picture and edit group name

Describe the problem

There is no way to add a group picture. and there is no way to edit group name.

What was the expected behavior?

there should an option to add group picture while creating a group. and edit the group properties. there should also be some way of editing group name.

Getting error while accepting a call

Hi so i'm trying out the latest version of react native sdk. specifically for calling. And now im getting this error when accpepting a call.

Invariant violation: requireNativeComponent: "CometChatRTCView" was not found in the UI Manager.

it appears to becoming from node_modules/@cometchat-pro/react-native-calls/Callscreen.js

Single Mode android to Ios giving blank screen while video off

Describe the problem

While calling from android to Ios or Ios to android when I turned the video Off a blank screen display and we don't have the option to turn the video on again
I tried with the custom layout with custom buttons, then after I turned the video off blank screen display but custom icons showed this time but the video is not turning on again

What was the expected behavior?

The video turnOn turnOff should work fine on single-mode on both android and Ios

Tell us about the behavior you expected to see

Reproduction

  • Step 1. Test the Application on android and ios Devices initiate call from android to Ios or Ios to android
  • Step 2. Turn the video off. (blank screen display) on default Layout
  • Step 3. With custom, buttons turn off the video blank screen display with your custom icons try to turn on the video again
    nothing will happen
  • ...

Environment

Android ,IOS

React native Version "0.61.3"
"@cometchat-pro/react-native-calls": "^1.0.3",
"@cometchat-pro/react-native-chat": "^2.1.4",

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.