Closed dawkinsjeff closed 1 year ago
hello @dawkinsjeff I can see NullPointerException on QBFriendListHelper in your log, because of this friends are not saved, try to fix this error
Hello @tatanka987, i saw the error but I don't know how to solve it. Can you help me please.
Here is the Line 256: dataManager.getUserDataManager().createOrUpdate(user);
sorry, but I don't know logic of your app, try to check object friendListHelper on null in method getAllUsersByTag() in onSuccess callback before saving friends, if this object is null try to create new object of friendListHelper
@tatanka987 the object is not null and data are shown in logcat but the problem is when trying to save the object on Line 256. dataManager.getUserDataManager().createOrUpdate(user);
you must init friendListHelper after creation for init dataManager or you can init dataManager in constructor
@tatanka987 sorry I don't understand your answer can you show me the way to do it please?
@dawkinsjeff after string QBFriendListHelper friendListHelper = new QBFriendListHelper(getApplicationContext()); you must call method friendListHelper.init(privateChatHelper); for getting privateChatHelper you can use next snippet QBPrivateChatHelper privateChatHelper = (QBPrivateChatHelper) service.getHelper(QBService.PRIVATE_CHAT_HELPER); or other code in your app.
all users are already friends so I would like to skip the following steps:
send an initation
accept the invitation
save as friend
Other way to say this is, "Someone doesn't need to be a friend to start a Chat, anybody can start conversation with anyone within the app"
I've similar need, Is this possible to do in quickblox ?
@dawkinsjeff do you found any solution ? cc: @tatanka987
anyone there? Someone doesn't need to be a friend to start a Chat, anybody can start conversation with anyone within the app it is possible or not in android??
I'm developing an application that uses Q-municate as base code. In my application, all users are already friends so I would like to skip the following steps:
To summarize, I want to store all the users from the Quickblox platform in my table Friend at the opening of the application so that the friends list can appear when creating a new chat. The LogCat doesn't show any error but it seems like no user is stored in Table Friend because when i execute
addChat()
methode, the Toastnew_message_no_friends_for_new_message
appears.I need your help Please.
Here is my code: