No error code if buddy request sent to nonexistent user

0 votes

Hi

When I send a friend request using

[buddyService sendFriendRequestFromUser:self.localSenderName toBuddy:self.localReceiverName withMessage:self.localMessage];

to a non-existent user, there is no error message returned - is this normal?

asked Dec 5, 2014 in App42 Cloud API-BaaS by 2357.dev (15 points)

1 Answer

0 votes
Buddy service does not maintain the listing of users and will not check the non existance.

In your app, you can maintain it from the source list population. You have to show them the users who exist in your source list. For example, if you are using App42 User Service, you can fetch all users and show them the listing. App user can select one from the list and send the friend request to him.

Let me know if it makes sense.

Thanks

Ajay
answered Dec 6, 2014 by ajay123 (899 points)
Thanks Ajay - I ended up just doing a getUser on the target friend name, which provides the required info
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...