i have developed facebook chat app for iphone using XMPP. But the app can not get push notification from Facebook. How can i get push notification from Facebook on my application?
Rather than polling continuously, you should try to use Facebook's realtime updates API where applicable. https://developers.facebook.com/docs/reference/api/realtime/
It's only applicable for certain kinds of content, but if it covers what you need, it'll be more efficient than polling like prasanna suggests.
Basically Facebook will send a request to a URL on your server whenever an event happens. The handler for that URL should then be responsible for sending the push notifications.
You can't bring Facebook to send a push notification to your app, you would have to set up a web server that continuously polls Facebook for changes and then sends a push notification to the iOS device when it detects a change.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.