Hi,
What is the problem? what can I do to fix it?
Kobi
The code
amityActivated = true;
AmityCoreClient.newUserRepository()
.getUser(profileProvider.currentUserData!.profile!.email!)
.then((user) async {
amityUser2 = user;
final amityProvider = Provider.of<AmityProvider>(context, listen: false);
amityProvider.initAmityGlobalfeed().then((value) async {
setState(() {
isLoading = false;
});
});
});
The error info
Hello, we’ll pass this on to our team for examination and will stay in touch with you for updates.
1 Like
Hello, do you use “GetIt” in your project?
I don’t use Getit
I’m using amity_sdk and amity using Getit
Kobi
Hello,
Upon investigation by our relevant team, we recommend not calling 'AmityCoreClient.newUserRepository()'
before 'AmityCoreClient.setup.'
Please try checking the functionality again. If the issue persists, please let us know.
Best regards
Support team
Hello
I verified that AmityCoreClient.setup
executed before AmityCoreClient.newUserRepository()
Kobi
Hello,
We recommend that you configure and log in to the SDK every time you start the application, and then test the functionality again.
Best regards
Support team