-2

I am working with XMPP iOS SDK and I need to get the Presence of a user that may or may not be in my buddy list.

Through didReceivePresence delegate method of SDK provides presence of only users that are already added in my buddy list.

Quick help will be appreciated.

Azeem Akram
  • 103
  • 1
  • 10

1 Answers1

2

You cannot receive presence that are not it your roster. This is per design in XMPP. You need to have the user approve the presence sharing.

Mickaël Rémond
  • 9,035
  • 1
  • 24
  • 44