Code Monkey home page Code Monkey logo

Comments (22)

t3hfx avatar t3hfx commented on May 16, 2024 3

Yeah, can anybody confirm that they got it working on iOs 14.4 with token?

from agora-react-native-rtm.

t3hfx avatar t3hfx commented on May 16, 2024 1

Can confirm that creating a project without token worked

from agora-react-native-rtm.

plutoless avatar plutoless commented on May 16, 2024

is the token null? have you turned on token?

from agora-react-native-rtm.

t3hfx avatar t3hfx commented on May 16, 2024

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.

jawang94 avatar jawang94 commented on May 16, 2024

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.

RoJoHub avatar RoJoHub commented on May 16, 2024

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.

jawang94 avatar jawang94 commented on May 16, 2024

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.

RoJoHub avatar RoJoHub commented on May 16, 2024

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.

jawang94 avatar jawang94 commented on May 16, 2024

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.

RoJoHub avatar RoJoHub commented on May 16, 2024

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.

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.

jawang94 avatar jawang94 commented on May 16, 2024

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.

RoJoHub avatar RoJoHub commented on May 16, 2024

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?
WX20210331-140556@2x

from agora-react-native-rtm.

jawang94 avatar jawang94 commented on May 16, 2024

Let me give that a try tomorrow! Thanks for the help. Seems to be my issue then for sure.

from agora-react-native-rtm.

jawang94 avatar jawang94 commented on May 16, 2024

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?
WX20210331-140556@2x

@RoJoHub It worked for me this morning! I'm not positive what fixed it but these are the changes I made.

  1. Update iOS to 14.4.2.
  2. Create project without token on Agora console.
  3. 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.

jawang94 avatar jawang94 commented on May 16, 2024

Wondering how we might get the token to work since we'd probably want that in production.

from agora-react-native-rtm.

RoJoHub avatar RoJoHub commented on May 16, 2024

You may need to consult a backend.

from agora-react-native-rtm.

jawang94 avatar jawang94 commented on May 16, 2024

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.

RoJoHub avatar RoJoHub commented on May 16, 2024

This involves the authentication mechanism, it is recommended to submit a ticket on the agora official website.

from agora-react-native-rtm.

t3hfx avatar t3hfx commented on May 16, 2024

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.

jawang94 avatar jawang94 commented on May 16, 2024

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.

jawang94 avatar jawang94 commented on May 16, 2024

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.

hdcaruth avatar hdcaruth commented on May 16, 2024

Any update here? I cannot login via token as described above.

from agora-react-native-rtm.

Related Issues (20)

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.