Comments (22)
Yeah, can anybody confirm that they got it working on iOs 14.4 with token?
from agora-react-native-rtm.
Can confirm that creating a project without token worked
from agora-react-native-rtm.
is the token null? have you turned on token?
from agora-react-native-rtm.
I have this issue on iPhone 11 14.4 too. I don't send token as soon as my app is in testing mode.
Just simple "Error" message.
from agora-react-native-rtm.
Thanks yeah, I've tried with both a temp token (in testing mode) and a null token. Works on earlier iOS versions but not on newer versions. Again, I've only tested iOS 14.0 and 14.4.1 so I'm not sure at what version this may have started occurring. Is it working for you @plutoless ?
from agora-react-native-rtm.
Sorry to reply you so late
@t3hfx ,@jawang94
Currently our error object cannot be printed directly.
In the next release, we will improve the error code prompt information of our SDK.
Now. please use
catch((e)=>{
console.log(‘code:',e.code);
})
Error code For login : LoginErrorCode
Error code For join channel: JoinChannelErrorCode
Error code For send message: SendMessageErrorCode
Please adjust the response code according to the error message
Hope this helps you
from agora-react-native-rtm.
Yeah for whatever reason on the newer iOS versions logging into RTMEngine just returns Error Code 9 for timeout. Doesn't specify why. The other two return Error Code 102 due to not being logged in =/. Any ideas?
from agora-react-native-rtm.
Maybe you should check you fireware?
https://docs.agora.io/en/Real-time-Messaging/region_java_linux_rtm?platform=Linux#firewall-requirements
from agora-react-native-rtm.
I could be wrong but I don't think it has to do with firewalls? This seems to be a problem only with iOS 14.4+. Logging in (both login()
and loginV2()
)times out after 6s. Works on iOS 14.0. I'm not really sure what's wrong here. I set up server generated tokens too and I'm using those for both RTC and RTM now. RTC works, but not RTM. I'll keep trying things. Thanks for the help. Hopefully someone else is also having the same problem and can give more info.
from agora-react-native-rtm.
I could be wrong but I don't think it has to do with firewalls? This seems to be a problem only with iOS 14.4+. Logging in (both
login()
andloginV2()
)times out after 6s. Works on iOS 14.0. I'm not really sure what's wrong here. I set up server generated tokens too and I'm using those for both RTC and RTM now. RTC works, but not RTM. I'll keep trying things. Thanks for the help. Hopefully someone else is also having the same problem and can give more info.
Do you mean that iOS can't login by use rtm sdk?
In this case, you should follow this doc.
https://docs.agora.io/en/Real-time-Messaging/messaging_ios?platform=iOS#a-nameappidaget-an-app-id
from agora-react-native-rtm.
Yes, correct. This RTM SDK cannot login on iOS 14.4.1. I've tried on two separate iPhones. I can confirm it works on earlier iOS version (14.0.0). I'm familiar with the docs and followed the procedures properly. Can you verify that you are able to login to the RTM SDK on iOS version 14.4.1?
from agora-react-native-rtm.
Yes, correct. This RTM SDK cannot login on iOS 14.4.1. I've tried on two separate iPhones. I can confirm it works on earlier iOS version (14.0.0). I'm familiar with the docs and followed the procedures properly. Can you verify that you are able to login to the RTM SDK on iOS version 14.4.1?
Yes, I confirm that both my iPhone XS Max (14.4.1) and the simulator (14.4.1) will work.
Maybe you should create project without token on agora console?
from agora-react-native-rtm.
Let me give that a try tomorrow! Thanks for the help. Seems to be my issue then for sure.
from agora-react-native-rtm.
Yes, correct. This RTM SDK cannot login on iOS 14.4.1. I've tried on two separate iPhones. I can confirm it works on earlier iOS version (14.0.0). I'm familiar with the docs and followed the procedures properly. Can you verify that you are able to login to the RTM SDK on iOS version 14.4.1?
Yes, I confirm that both my iPhone XS Max (14.4.1) and the simulator (14.4.1) will work.
Maybe you should create project without token on agora console?
@RoJoHub It worked for me this morning! I'm not positive what fixed it but these are the changes I made.
- Update iOS to 14.4.2.
- Create project without token on Agora console.
- Completely remove app from device & clean XCode build folder, then rebuild onto device.
Thanks for your help everyone! I'll continue to monitor and try to understand what initially caused the problem.
from agora-react-native-rtm.
Wondering how we might get the token to work since we'd probably want that in production.
from agora-react-native-rtm.
You may need to consult a backend.
from agora-react-native-rtm.
I have tried it with backend token generation as well as temp tokens via console, neither worked. Would also like to know if someone got it working on iOS 14.4+ w/ token.
from agora-react-native-rtm.
This involves the authentication mechanism, it is recommended to submit a ticket on the agora official website.
from agora-react-native-rtm.
Why isn't it linked to agora-react-native-rtm library if it's not working with token only on iPhone 14.4? Android however works
from agora-react-native-rtm.
I would like to know that too. I did submit a ticket directly in the Agora console regarding implementation of token based RTM logins so I'll reply here with what they say.
from agora-react-native-rtm.
This has been resolved for me although I didn't necessarily do anything differently. Can't explain why it was happening before or how I managed to fix it. May want to leave this open to see if others experience the same issues :)
@t3hfx is yours still timing out?
from agora-react-native-rtm.
Any update here? I cannot login via token as described above.
from agora-react-native-rtm.
Related Issues (20)
- Raw RTM Messages HOT 1
- deprecated at VideoSession or Error Message HOT 2
- need help
- Sending Image / File HOT 1
- Issue with minSdkVersion HOT 1
- Getting error code 9 on IOS during login HOT 9
- cancelLocalInvitation2 crashing
- Module `@babel/runtime/helpers/interopRequireDefault` does not exist in the Haste module map HOT 2
- iOS build error on M1: Requested but did not find extension point HOT 6
- TypeError: null is not an object (evaluating 'AgoraRTM.prefix') HOT 1
- ChannelMessageReceived callback doesn't have the channel id HOT 1
- setChannelAttributes accept array in mobile sdk and object in web sdk HOT 3
- acceptRemoteInvitationV2 fails on iOS HOT 3
- acceptRemoteInvitationV2 fails on iOS
- 打包上传到Google商店提示“有缺陷的版本: OpenSSL 1.1.1h in lib/x86/libagora-rtm-sdk-jni.so” HOT 2
- 调用登录时候报错
- Error reported when rejoining the channel
- Security issue about SQL injection attacks
- Agora-react-native-rtm checkDebugManifest FAILED
- iOS 监听channelMessageReceived频道消息接收不行
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.
from agora-react-native-rtm.