Coder Social home page Coder Social logo

agoraio / agora-chat-api-examples Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 33.0 6.95 MB

Java 24.07% HTML 0.60% CSS 0.12% JavaScript 12.61% Objective-C 19.38% Ruby 1.00% C# 7.00% Kotlin 0.02% Swift 6.53% Dart 1.11% C++ 1.90% C 0.21% Starlark 0.32% Makefile 0.38% Objective-C++ 3.84% Python 8.36% TypeScript 12.57%

agora-chat-api-examples's People

Contributors

asteriskzuo avatar dujiepeng avatar fudonghai avatar githubzhaoliang avatar jinanzhuan avatar kevin-rabefaritra avatar lixm1988 avatar lizg001 avatar luckyyuqiang avatar myzhangdong avatar xuchengpu avatar xuzhengli avatar zjc19891106 avatar

Stargazers

 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

agora-chat-api-examples's Issues

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

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)

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

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.

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 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.