agora-chat-api-examples's People
Forkers
myzhangdong 15296861560 wangying-sarah dujiepeng zhangchong-git winskyan asteriskzuo jinanzhuan luckyyuqiang zjc19891106 fudonghai lixm1988 meherdeep catherinesjkim ankitchoudhary330 godswill2008 mkharoub githubzhaoliang seonghyeon-chi kevin-rabefaritra sunrisedev14 waterdropw wster11 towhidaust pholluxion bharat5604 ravinance ahmedtaher5 supawishpk amrhamdy00 peavy16899 bhardwajankur1008-afkagora-chat-api-examples's Issues
In Agora chat download attachment not open after download in above android 10 and getting this error
Cannot retrieve length of file, path = '/storage/emulated/0/Android/data/******************/c190d880-ebb4-11ee-9182-7f051a87cb98.jpg' (OS Error: No such file or directory, errno = 2)
i try to add Manage external storage permission but it did not work
package is not working with 0.72 version
Hello,
I have integrated code which is working fine with 0.68 but when i tried to update package with 0.72 version it is failing with following error.
Execution failed for task ':react-native-agora-chat:configureCMakeDebug[arm64-v8a]
thanks
Agora implementation in Laravel project
Is it possible to implement Agora chat with media in laravel project?
Error installing HyphenateChat
export 'ChatGroupFileStatusCallback' (reexported as 'ChatGroupFileStatusCallback') was not found in './common/ChatGroup
problem after install
WARNING in ../../node_modules/react-native-agora-chat/lib/module/index.js 45:0-753 export 'ChatGroupFileStatusCallback' (reexported as 'ChatGroupFileStatusCallback') was not found in './common/ChatGroup' (possible exports: ChatGroup, ChatGroupInfo, ChatGroupMessageAck, ChatGroupOptions, ChatGroupPermissionType, ChatGroupPermissionTypeFromNumber, ChatGroupPermissionTypeToString, ChatGroupSharedFile, ChatGroupStyle, ChatGroupStyleFromNumber, ChatGroupStyleToString) WARNING in ../../node_modules/react-native-agora-chat/lib/module/index.js 45:0-753 export 'ChatMessageStatusCallback' (reexported as 'ChatMessageStatusCallback') was not found in './common/ChatMessage' (possible exports: ChatCmdMessageBody, ChatCombineMessageBody, ChatCustomMessageBody, ChatDownloadStatus, ChatDownloadStatusFromNumber, ChatDownloadStatusToString, ChatFetchMessageOptions, ChatFileMessageBody, ChatImageMessageBody, ChatLocationMessageBody, ChatMessage, ChatMessageBody, ChatMessageChatType, ChatMessageChatTypeFromNumber, ChatMessageDirection, ChatMessageDirectionFromString, ChatMessageStatus, ChatMessageStatusFromNumber, ChatMessageStatusToString, ChatMessageType, ChatMessageTypeFromString, ChatRoomMessagePriority, ChatTextMessageBody, ChatVideoMessageBody, ChatVoiceMessageBody)
App Crash Android 14 : One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts android
Hello
I am using io.agora.rtc:chat-sdk:1.2.0 for chat in my android application. While running app on Android 14 device app crash and giving me below error:
java.lang.SecurityException: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts android
Can anyone please help me to solve this. Thanks in advance.
Web sample is not working on build
When running npm run build. I get the following error.
node:internal/crypto/hash:80
this[kHandle] = new _Hash(algorithm, xofLen, algorithmId, getHashCache());
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:80:19)
at Object.createHash (node:crypto:139:10)
at BulkUpdateDecorator.hashFactory (/Users/ghassanbarghouti/Documents/Agora-Chat-API-Examples/Chat-Web/node_modules/webpack/lib/util/createHash.js:155:18)
at BulkUpdateDecorator.update (/Users/ghassanbarghouti/Documents/Agora-Chat-API-Examples/Chat-Web/node_modules/webpack/lib/util/createHash.js:46:50)
at RawSource.updateHash (/Users/ghassanbarghouti/Documents/Agora-Chat-API-Examples/Chat-Web/node_modules/webpack-sources/lib/RawSource.js:77:8)
at NormalModule._initBuildHash (/Users/ghassanbarghouti/Documents/Agora-Chat-API-Examples/Chat-Web/node_modules/webpack/lib/NormalModule.js:888:17)
at handleParseResult (/Users/ghassanbarghouti/Documents/Agora-Chat-API-Examples/Chat-Web/node_modules/webpack/lib/NormalModule.js:954:10)
at /Users/ghassanbarghouti/Documents/Agora-Chat-API-Examples/Chat-Web/node_modules/webpack/lib/NormalModule.js:1048:4
at processResult (/Users/ghassanbarghouti/Documents/Agora-Chat-API-Examples/Chat-Web/node_modules/webpack/lib/NormalModule.js:763:11)
at /Users/ghassanbarghouti/Documents/Agora-Chat-API-Examples/Chat-Web/node_modules/webpack/lib/NormalModule.js:827:5 {
opensslErrorStack: [
'error:03000086:digital envelope routines::initialization error',
'error:0308010C:digital envelope routines::unsupported'
],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v21.7.1
Android 14 Crash com.hyphenate.chat.core.EMAdvanceDebugManager.h java.lang.SecurityException
Hi Agora,
I cannot find agora flutter chat_sdk repo on the github so ı opened issue to this repo.
We are getting crashes on the production.
sdk version 1.1.1
flutter version 3.13.9
Are you aware of the problem on the android 14 ?
should I update package version to 1.2.0 to solve problem. ?
Crash Details
Stack trace
Sample attributes:
[samsung dm1q (Galaxy S23)]
[Android 14 (SDK 34)]
Exception java.lang.SecurityException: at android.os.Parcel.createExceptionOrNull (Parcel.java:3069) at android.os.Parcel.createException (Parcel.java:3053) at android.os.Parcel.readException (Parcel.java:3036) at android.os.Parcel.readException (Parcel.java:2978) at android.app.IActivityManager$Stub$Proxy.registerReceiverWithFeature (IActivityManager.java:6137) at android.app.ContextImpl.registerReceiverInternal (ContextImpl.java:1913) at android.app.ContextImpl.registerReceiver (ContextImpl.java:1853) at android.app.ContextImpl.registerReceiver (ContextImpl.java:1841) at android.content.ContextWrapper.registerReceiver (ContextWrapper.java:772) at com.hyphenate.chat.core.EMAdvanceDebugManager.h at com.hyphenate.chat.core.EMAdvanceDebugManager.a at com.hyphenate.chat.EMClient.onNewLogin at com.hyphenate.chat.EMClient$8.run at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:644) at java.lang.Thread.run (Thread.java:1012) Caused by android.os.RemoteException: Remote stack trace: at com.android.server.am.ActivityManagerService.registerReceiverWithFeature (ActivityManagerService.java:16580) at android.app.IActivityManager$Stub.onTransact$registerReceiverWithFeature$ (IActivityManager.java:11530) at android.app.IActivityManager$Stub.onTransact (IActivityManager.java:2928) at com.android.server.am.ActivityManagerService.onTransact (ActivityManagerService.java:3195) at android.os.Binder.execTransactInternal (Binder.java:1375)
The method 'setMessageStatusCallBack' isn't defined for the type 'ChatMessage'
App crash
App crash with _initSDK code in the release build of Android.
Os:- Android 12
Device:- One Plus Nord 2
Flutter Demo Setup: SDK has not initialize
I followed the instructions outlined in the README file to set up user authentication for my chat application. Here are the steps I followed:
- Enabled chat functionality.
- Created two user profiles.
- Obtained the AppKey from the chat section.
- Generated the Chat User Temporary Token.
However, I'm encountering an issue when attempting to sign in from the app. It displays the following error message: Login failed, Code: 1, Description: SDK has not initialized.
This error is preventing me from using the application as intended. I would greatly appreciate any assistance in resolving this issue.
The attached screenshot illustrates the sections where I obtained the App Key and Token.
![Screenshot 2023-09-13 at 16 51 52](https://private-user-images.githubusercontent.com/23644210/267699341-226db897-1382-482a-81bc-7576ebddf072.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwMTI2NTgsIm5iZiI6MTcyNDAxMjM1OCwicGF0aCI6Ii8yMzY0NDIxMC8yNjc2OTkzNDEtMjI2ZGI4OTctMTM4Mi00ODJhLTgxYmMtNzU3NmViZGRmMDcyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDIwMTkxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTViMTdhN2UyYjZjZDFiYjYxMTY3M2RkNjUzNWM0MmUyYWMwMGFlNmUxMmE4MzM3NjJkMjJjMzAwNjYwMzVmZDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fUEAatsx6IibMPjDkXCgcerJ_RBGoMHMpI_nrEYmIKM)
Please let me know if you need any further information or clarification. Thank you in advance for your help!
Unable to upload a file to the agora server
I am uploading a file to the Agora server to reference it via its' URL when a user sends a message to their peer.
Here's how I structure the request that is sent to Agora's server:
pathToFile = 'C:\Users\gtori\OneDrive\Desktop\messaging_hud\users\files\testFile.png'
headers = {'content-type': 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW', 'Authorization': 'Bearer token'}
agoraUrl = https://a41.chat.agora.io/orgName/appName/chatfiles
res = requests.post(agoraUrl, { file: pathToFile }, headers=headers)
The response that I am getting from agora is a 400 error:
{'error': 'illegal_argument', 'exception': 'java.lang.IllegalArgumentException', 'timestamp': 1679065052094, 'duration': 1, 'error_description': 'file must be provided.'} fromServer: {'msg': 'The file was not uploaded successfully to agora server.'}
Even though the path to the file is valid, I get a True
boolean when I test its validity of it by passing it in for os.path.exists()
.
I'm following Agora's documentation linked here under "Upload a file": https://docs.agora.io/en/agora-chat/restful-api/message-management?platform=unity#upload-a-file
Thanks for any input.
android sdk-版本 4.0.1-用c++开发,初始化 m_rtcEngine->initialize(ctx); 闪退
App Crashed, Agora Chat SDK for Flutter app when running in release mode.
No pending exception expected: java.lang.ClassNotFoundException: com.hyphenate.chat.adapter.EMAREncryptUtils
same message is sent multiple times to the receiver
Same message was sent multiple times to the receiver (userId 1) from sender (userId 1) even though the sender only sent it once.
You can see the local time and server time are all the same for the message.
I/flutter (30685): {from: 2, to: 1, body: {type: txt, content: u, translations: {}}, direction: rec, hasRead: false, hasReadAck: false, hasDeliverAck: false, needGroupAck: false, msgId: 1063987074572487632, conversationId: 2, chatType: 0, localTime: 1665293596977, serverTime: 1665293595422, status: 2, isThread: false}
I/flutter (30685): {from: 2, to: 1, body: {type: txt, content: u, translations: {}}, direction: rec, hasRead: false, hasReadAck: false, hasDeliverAck: false, needGroupAck: false, msgId: 1063987074572487632, conversationId: 2, chatType: 0, localTime: 1665293596977, serverTime: 1665293595422, status: 2, isThread: false}
I/flutter (30685): {from: 2, to: 1, body: {type: txt, content: u, translations: {}}, direction: rec, hasRead: false, hasReadAck: false, hasDeliverAck: false, needGroupAck: false, msgId: 1063987074572487632, conversationId: 2, chatType: 0, localTime: 1665293596977, serverTime: 1665293595422, status: 2, isThread: false}
I/flutter (30685): {from: 2, to: 1, body: {type: txt, content: u, translations: {}}, direction: rec, hasRead: false, hasReadAck: false, hasDeliverAck: false, needGroupAck: false, msgId: 1063987074572487632, conversationId: 2, chatType: 0, localTime: 1665293596977, serverTime: 1665293595422, status: 2, isThread: false}
I/flutter (30685): {from: 2, to: 1, body: {type: txt, content: u, translations: {}}, direction: rec, hasRead: false, hasReadAck: false, hasDeliverAck: false, needGroupAck: false, msgId: 1063987074572487632, conversationId: 2, chatType: 0, localTime: 1665293596977, serverTime: 1665293595422, status: 2, isThread: false}
I/flutter (30685): {from: 2, to: 1, body: {type: txt, content: u, translations: {}}, direction: rec, hasRead: false, hasReadAck: false, hasDeliverAck: false, needGroupAck: false, msgId: 1063987074572487632, conversationId: 2, chatType: 0, localTime: 1665293596977, serverTime: 1665293595422, status: 2, isThread: false}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.