How can i send a push notification? - objective-c

i'm trying to add push notification to my app, but, so far, i could find only tutorial that seems to be old and outdated... Can someone explain me how can i make my app send a notification?
My app takes some content from an xml online and i want to send the notification when the xml contains a date of update more recent. Can i?

I found a simple and clear video about this here: http://www.youtube.com/watch?v=_3YlqWWnI6s.
It is simple and clear, and after that i followed http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12 and http://blog.serverdensity.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/. So i managed to send push notification. Needs some work but it's not do difficult as i thought.

Related

Dropbox API: Get Notified On File Events Without Polling

I found this post on getting Notified when a file changes on dropbox. The problem is that the "/delta" API endpoint requires polling. I want instead to subscribe to events about file changes.
Ideally, I could subscribe to both "new file" and "file updated" events for a specific folder. I could then give dropbox a URL pointing to my own app that would be called when those events occurred. This is similar to how Twilio works. You can provide a URL to be POSTed to whenever your phone number receives a text message, and then your app can respond to POSTs to that URL however it wants. This seems like a much more elegant solution than polling -- is there any way to do it with the dropbox API?
UPDATE 6/5/2014
We actually have webhooks now: https://www.dropbox.com/developers/webhooks
(original reply below)
No, Dropbox doesn't support this.
BTW, the general term for the sort of notification you describe is a "webhook."
http://developers.box.com/webhooks/
it seems like Box API has webhook. You may want to try it.
I received an email today regarding Dropbox WebHooks that is in the beta phase:
If you're interested in helping us out, just click through to fill out
your information, and we'll be in touch:
https://dropboxapi.wufoo.com/forms/dropbox-webhooks-api-beta-feedback-contact-info
Happy Dropboxing!
Dropbox now offers webhooks, although not with a event_type filter
https://www.dropbox.com/developers/blog/90/announcing-dropbox-webhooks

how to send a system message to campfire, using API?

I've seen something like this in GitHub blog:
The question is: How to send a system messaget (the one with green background)? I really want to send deploy message that way, it would really help our team chat. Or is it all userscripts? :(

Creating Chat function in iOS - Through continuous request

I was tasked to create a Chat function for our app in iOS. I found this tutorial which creates a Chat app from scratch.
http://www.ibm.com/developerworks/library/x-ioschat/index.html
The link above is very helpful, but there is a small problem. In the app, a request will be made every 5 seconds to look for new responses. One of my colleagues said that it is not advisable to make a request to the server every now and then.
So I decided to look for other alternatives. I learned about long-polling through this link.
From what I understood, once a request was made the server will "hold" the request until something interesting comes up. Does this mean that once a response was thrown to the user, the request ends? If that's true, this means that a request will be made every now and then as well, right?
If that's the case, can anyone tell me what's the best way to implement a chat function in iOS?
My friend showed me a AJAX JavaScript code (I just found out that he also used a plug-in, which I am not familiar with) where a single continuous request was made, and this request doesn't end even if a response was already thrown to the user. Is there a way to do this in iOS?
It is not a good approach to make http ajax request to send and receive chat. A chat response should be displayed at the moment when the other user press "Send". We cant ask for the users to wait 1 second to fetch if there any new responses.
You must use a chat server to accomplish this. I hope the following url would be helpful. I just wanted to give you the Idea of using a Chat Server.
http://wiki.remobjects.com/wiki/SuperHTTP_Chat_(iOS)Sample(Xcode)

Bundle ID issues when adding Push notifications

my iPhone app has been approved and I am ready to add push notifications to it. I've been following a tutorial that is going step by step in doing the certificates etc etc
I've hit a road block though. I need to make a new app ID but it won't let me use the bundle ID I have used before. My understanding is that the bundle ID must be the same as before in order to update my app. I have no idea what to do and have spent a couple of very frustrating hours trying to figure it out. I have read somewhere about using a wildcard ID... not quite sure what this means.
Any feedback or help would be much appreciated.
Thanks
You don't need to create a new app ID. You only need to configure your existing one and enable Push Notifications. Go to the provisioning portal, and under "App IDs" press the Configure link for your existing ID:
You will then be able to enable Push Notifications for this app ID:
Once you create an app ID, you can use it for doing whatever you need. Even enabling Push Notifications later. And this is your case. You should simply go to Apple's Developer Center and edit you current App ID enabling Push Notifications. No need to create another one, it will be useless.

APNS Push Sound Files

in my App I want to integrate some Push Notification Sounds, which the user can select.
My problem is to find soundfiles, I am not able to do it myself.
I searched in Google a lot, but I found nothing. Does anyone know where I can get some Push Sounds?
Thanks
what about pond5?