cometchat / cometchat-sample-app-react-native Goto Github PK
View Code? Open in Web Editor NEWVoice & Video Calling and Text Chat App for React Native
Home Page: https://www.cometchat.com
License: Other
Voice & Video Calling and Text Chat App for React Native
Home Page: https://www.cometchat.com
License: Other
No version of NDK matched the requested version 21.0.6113669.
I can run the example app.
Currently I need to edit app/build.gradle manually like this so the build will proceed:
yarn install
yarn android
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
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
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.
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 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')
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.
server should send notification to each member.
Enable chat widget and enabled all notification related to the call.
node v12.14.0
react-native": "0.64.2
"@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
it show open and after taking a photo it should send that image to the user being chatted with.
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.
What license is this and the supporting cometchat UI kit repos distributed under if I want to use it commercially? Thanks.
in chat messages reaction pop up opens up and if you choose a reaction nothing happens.
selected reaction should be shown with the message.
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.
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
Please provide the following:
-branch :master
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
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
I tried to install the example app using yarn and it crashes. Only npm install seems to work atm.
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?
Please provide the following:
React-Native Android & iOS, React Native SDK
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
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"
]
}
pod install should succeed
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.
- Screenshots
Please provide the following:
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
App need to run and working
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
"@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"
I am seeing a API_KEY_NOT_SET
when creating a user and then logging them in with the React Native SDK.
Create a user and then log them in.
Detail the steps taken to reproduce this error, and whether this issue can be reproduced consistently or if it is intermittent.
Init CometChat, `const appSettings = new CometChat.AppSettingsBuilder()
.subscribePresenceForAllUsers()
.setRegion(REGION)
.build();
await CometChat.init(COMET_CHAT_APP_ID, appSettings);`
Create a new user, const ccUserObj = new CometChat.User({ uid: userId, name: username }); newCometChatUser = await CometChat.createUser(ccUserObj, COMET_AUTH_KEY);
Log the user in, const loggedInUser = await CometChat.login(cometChatUserId, COMET_AUTH_KEY);
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.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"
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"/>
Please provide the following:
There is a user that is always online due to some issue on the back-end
the mentioned user should not be online when the user is not using the app just like all other users.
App id: 27437a7055e4f88
User UID: 5fce4a99a6cb320029adadb5
Messages sent when the app is offline disappear when the app goes online again
Messages should not disappear when the app goes online again
I took a video of my test device (offline) to illustrate the problem
Please provide the following:
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.
Release.
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.
"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;
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",
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.
Thanks in advance
Version used:
React Native Version: 0.64.0
CometChat Version: ^2.3.3
CometChat Call Version: 2.0.3-beta1
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",
no option when testing in iphone. also cannot pick from library
Provide a clear and concise description of the issue
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
App crashing when keyboard is visible for new user chat
User can able to chat with new user!
Screen recording:
Log :
TypeError: Cannot read property 'scrollTo' of null, js engine: hermes
"react-native": "0.73.6",
"@cometchat/chat-sdk-react-native": "^4.0.7",
"@cometchat/chat-uikit-react-native": "^4.3.9",
When I run npm install
, the command fails because the package async-storage 1.17.10 doesn't support rn 0.72.4
Clone the project and run npm install
; using async-storage 1.22.3 seems to fix the problem
In inbox there is no method to delete a conversation.
There should be some way of deleting a conversation.
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.
-branch: main
tried between iphone and android devices side by side. after sending several messages, the app becomes no response.
There is no way to add a group picture. and there is no way to edit group name.
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.
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
Testing 2
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
The video turnOn turnOff should work fine on single-mode on both android and Ios
Tell us about the behavior you expected to see
Android ,IOS
React native Version "0.61.3"
"@cometchat-pro/react-native-calls": "^1.0.3",
"@cometchat-pro/react-native-chat": "^2.1.4",
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.