Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7756703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:53:27+00:00 2026-06-01T12:53:27+00:00

I am developing a XMPP based chat application for iOS. One of the features

  • 0

I am developing a XMPP based chat application for iOS. One of the features of the app is that i need to block some of the users from my rooster.Is there any method available to this in the XMPP framework ? If not, is there some work around to do this ?

Also can some one help me in sending images from one user to other using XMPP ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:53:29+00:00Added an answer on June 1, 2026 at 12:53 pm

    There are a number of things you might want to consider:

    Likely your user is subscribed to the contact’s presence and vice-versa. He will unsubscribe from the contact’s presence (so he will no longer receive presence notifications from him) by sending:

    <presence to='contact@example.com' type='unsubscribe'/>
    

    He will revoke subscription to his own presence from the contact by sending:

    <presence to='contact@example.com' type='unsubscribed'/>
    

    Finally you can remove the item from your roster.

    <iq from='user@example.com/home' type='set' id='roster'>
      <query xmlns='jabber:iq:roster'>
        <item jid='contact@example.com' subscription='remove'/>
      </query>
    </iq>
    

    In fact, if you send the stanza above, i.e. if you want to cancel both subscriptions, you do not need to send the presence stanzas, they will be handled by the servers.

    Finally, you can now block further interaction with the user by means of the jabber:iq:privacy API. This is explained in detail here.

    The general presence/roster management is explained in the same rfc, probably best here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a XMPP based chat client for iOS. One of the requirements
I am developing a chat application based on XMPP/Jabber. How the stanzas in XMPP
I am developing a chat application over android and i need an xmpp chat
Im developing an iPhone app that has an groupchat. Im using the XMPP framework.
I am developing a chat application using XMPP/JQuery. In a chat application, for a
I'm developing an application that receives push notifications via XMPP ( I know C2DM,
I'm developing an iOS app. There are different 'areas' to the app, and users
Developing a Sencha Touch MVC app that pulls data from json store (thats set
Developing a web application that I've registered with Twitter. In this app, I might
Hi i am new to stackoverflow. I am developing an xmpp client application for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.