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 6975335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:21:17+00:00 2026-05-27T17:21:17+00:00

I’m developing an iOS app. There are different ‘areas’ to the app, and users

  • 0

I’m developing an iOS app. There are different ‘areas’ to the app, and users can post ‘things’ to them. Other users watching the same area should have the posted thing sent to their phone (but only if the app is running).

I’ve started work on a Django backend with a RESTful API. I plan on hosting the backend on Amazon Web Services, and each time something is added to an ‘area’, placing the time of update and ‘area’ into a queue, using Amazon Simple Queue Service. I’m going to make a Python app that processes items in the queue, querying the database to see which users have new ‘things’ they can download – currently this part is planned to then send an Apple Push Notification to the phone, and if the app is running it can make a simple RESTful request to get the new data in JSON format.

However I believe XMPP would be a better solution (using XMPPFramework on the iOS side), and would make it possible to support Android in the future.

I’ve done a lot of research into how to use XMPP for this purpose, but the documentation suggests that you would be using the public XMPP network, that users would have to set up an XMPP account, and is unclear how to send non-chat information.

This project requires the use of XMPP purely to send information from the server to a users device. Thus it should be a private XMPP network, if necessary users can be registered for an XMPP account on this private network (but behind the scenes, they shouldn’t know what technology is powering the app.)

Is it possible to use XMPP just to send information to a mobile app? A lot answers/tutorials on the internet basically just suggest using an XMPP server and client – with no mention of how you can hook up the two on a private network to send data as determined by something other than the XMPP server.

Thank you for your help in advance 🙂

  • 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-05-27T17:21:18+00:00Added an answer on May 27, 2026 at 5:21 pm

    Yes, it is possible. More than that it is completely possible to send and recieve anything you want through XMPP.

    Generally XMPP is used for jabber chat accounts. This means a few things.

    1. Each user needs to be set up as a user on the server. This is so that the server knows which clients to push messages to. Its not difficult just to set up a random user/pass and link it directly to the app.

    2. The sending of chat information just means that there is a sender and a reciever. In your case you can probably disregard the sender, but it might be useful if you have multiple places where the messages could come from.

    3. A message can contain any information you want. I can’t remember completely (its been a while since I’ve used XMPP) but I think that you can either send XML within the actual message itself (or json or whatever) or you can ATTACH extra XML to the message and just leave the message itself blank (or with a nominal value).

    What you need to get started is an XMPP server. You can install this on your web server (I assume you can probably install it on AWS, but I’m not sure). This is the server I always use, Openfire, its very simple to set up and use (and has a nice web interface which you can use to set everything up). This lets you send a recieve messages, and makes the whole thing “private”. This means that, although you could potentially connect to public jabber networks, you can also restrict access to the server.

    Next you want a web-based api. There is a good php framework, xmpphp which will help you set up an api. This api will allow you to send messages from your python script (e.g. post req to curl) to the xmpp server which will deliver it to the iphone. If you don’t want to send messages back then you’re all set. Listening for XMPP messages using php is a whole other kettle of fish!

    Another thing to keep in mind is that you will need to send statuses from the app so that the server knows if you are logged in and “listening” or not. Again, this is all reasonably well documented on the internet if you look for it (I can’t quite remember the exact ins and outs). So in your python/php script you can test to see if the user you are trying to send a message to is currently “logged on” and “listening” as it were. If they’re not you will need to implement the push notifications thing and send a push notification. If you’re unsure about this there is a fantastic service called urban airship which I will reccommend. They send upto 1,000,000 push notifications a month for free (and subsequent notifications are pretty reasonable). Otherwise be prepared for a world of hurt setting up the service yourself! (I’ve heard!)

    I hope that’s answered most of your questions. Its a pretty specialist subject (lots of people won’t know about XMPP – its one of those things you’ll only know about if you need to know about it). XMPP is very powerful though, and a much better solution than repeating http requests and all sorts. There’s quite a lot of information on the internet if you can find it, but you might have to be a bit clever about how to interpret the information, its one of those things that hasn’t quite moved over to iPhone in the mainstream yet (in my opinion).

    EDIT… one more thing

    Beware of drop outs – internet drop outs and such. It sounds obvious, but it always bites me! Always forget that sometimes the internet cuts off and my XMPP connections need to be reconnected. Esp if people are putting the app in the background and then coming back to it later. 🙂 Remember to reconnect when you need to.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
Does anyone know how can I replace this 2 symbol below from the string
I am writing an app with both english and french support. The app requests
I'm trying to create an if statement in PHP that prevents a single post
I am using Paperclip to handle profile photo uploads in my app. They upload
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.