Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't. #159

Open
jatin-web opened this issue Sep 30, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jatin-web
Copy link

Describe the bug
I am getting this bug when I tried to run the basic code copied from agora_uikit package.

To Reproduce
Steps to reproduce the behavior:

  1. Add the package to your project
  2. Add the Code mentioned in the package documentation in pub dev
  3. Run the project

Expected behavior
Should run the project

Screenshots
Screenshot 2023-09-30 at 2 00 56 PM

@jatin-web jatin-web added the bug Something isn't working label Sep 30, 2023
@jatin-web jatin-web changed the title [BUG] The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't. Sep 30, 2023
@ardeshir-33033
Copy link

I added userName to my AgoraClient and fixed this.
AgoraClient(
agoraConnectionData: AgoraConnectionData(
appId: appId,
channelName: callName!,
tempToken: token,
uid: calleeId,
username: callName!),
);

although I did not even updated my Agora package. I did see this bug but the problem is after I added this I get this error.

AgoraRtmChannel sendMessage failed errorCode: 102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants