push

How to send a push notification using Erlang?

I'm trying to send a push notification to APNs using Erlang. This is the code I came up with so far: -module(apnstest2). -export([connect/0]). connect() -> application:start(ssl), ssl:seed("someseedstring"), Address = "gateway.sandbox.push.apple.com", Port = 2195, Cert = "/path/to/Certificate.pem", Key = "/path/...

Multiple iPhone APN messages, single connection.

I have a strange issue. I'm trying to get Apple Push Notifications working with Python. I can connect and send individual messages without a problem. The issues pop up when I start sending more than one message, but it's more bizarre than even that. I'm testing with multiple devices... some iPhones and some iPod Touches. I can send mult...

Server Push vs Server pull in IIS

Hi, I was thinking of building a chat application in ASP .NET. I was thinking of either using push or pull. I have found that pull is more scalable than push. But does any body know if the web chat messenger like gtalk, yahoo etc use pull or push ?. Thanks. ...

Need opinion regarding design/architecture of a web application

I am working on a web application which needs to get data from some local and some non local resources and then display it. As it could take arbitrary amount of time to get the data from these resources I am thinking of using the actors concept so that each actor is responsible for getting data from the respective resource. The request t...

iPhone: how to remove badge after Push Notification?

Hi guys, What is the code to remove the badge on my app's icon? When I receive push, I need to remove it when a button is clicked! ...

How to push data over the Internet?

I want to push data to a client application. The client app can be thick or a thin. The push has to happen over the Internet. How can this be done? EDIT: Is there a way wherein the client app opens a connection to the server, keeps it alive for its lifetime and then continues receiving data over that connection. Can I build something li...

Sinatra/Rack Sleep until Response Ready (like Exchange ActiveSync)

I'm wanting to do a lightweight push-style HTTP response in my existing Sinatra web app. Is there any mechanism that allows me to not respond to an HTTP request and keep the connection open until I wake up the connection at a future time? ...

Getting errors using APNS PHP

heres the code I'm using <?php $deviceToken = 'my device key'; // not putting in for security $payload['aps'] = array('alert' => 'This is the alert text', 'badge' => 1, 'sound' => 'default'); $payload = json_encode($payload); $apnsHost = 'gateway.sandbox.push.apple.com'; $apnsPort = 2195; $apnsCert = 'apns-dev.pem'; $streamContext...

why Mercurial doesn't authenticate first before push data?

I have a big size clone to push to google code, and it takes a long time for the authenticate dialog to show up after the push is fired up, so does TortoiseHg push data first authenticate second? if so, that's stupid. ...

Avoiding union by join?

Hi, My problem is on Oracle, but is probably database independent (?). I have the following tables: aa vid cb --- -- 1 10 2 15 bb vid cb --- -- 3 25 4 24 *rep repid vid p ----- --- -- 99 1 aa 99 2 aa 99 3 bb 99 4 bb The column p indicates in which table to get the row....

Set up git to pull and push all branches

I'd like to push and pull all the branches by default, including the newly created ones. Is there a setting that I can define for it? Otherwise, when I add a new branch, locally and I want to pull it from the server, what is the simplest way to do it? I created a new branch with the same name and tried to pull but it doesn't work. Ask...

How to create HTTP server push (also known as HTTP streaming) with PHP?

How to create HTTP server push (also known as HTTP streaming) with PHP (better streaming video)? Tuts Libs are vary welcome ...

Port Number for Incoming Apple Push Notifications

What network services, port numbers, outgoing incoming or both, need to be open on a network for an ipod touch to receive Apple Push Notifications? I know the outgoing port number to set when sending the apns. The only thing is, in my school practically every outgoing (and incoming) port is blocked and as a result APNs do not work. I am...

How to make all connected browsers reload initiated by a server-side event

Suppose there is a webpage with dynamically generated content -- say a div containing the current number of connected browsers. When the count changes on the server I want all connected browsers to reload the count so that everyone sees the increment/decrement. What's the best way to accomplish this? Keywords: ajax, broadcast, browse...

Implementing sms push in iphone

Is it possible to invoke an application on reception of an sms. I have created a sample application and it need to be launched when the iphone recieves a particular message. Is it possible to implement this in iphone. If possible, which way shall i do that... pls help... ...

How does RSS reader know that a feed is updated?

Just learning about this via youtube but could not find answer to my question of how reader knows there is an update. Is it like a Push in blackberry? ...

Array .push() if does not exist?

How can i push up into an array if neither values exist? Here is my json array/object: [ { name: "tom", text: "tasty" }, { name: "tom", text: "tasty" }, { name: "tom", text: "tasty" }, { name: "tom", text: "tasty" }, { name: "tom", text: "tasty" } ] If i tried to push again into the array with either name: "tom" or...

Server push: comet vs ape?

I've read a little about comet and also APE. Which one is better? I want the users to see other users updated content. Like Google Wave. And in comet, there are 2 versions: iframe vs traditional ajax. what is the difference and which is better. I dont quite understand it. Thanks. ...

Push Notifications in your application

Hi, I am wonder how to enable push notifications in my application.Actually i have some messages that server sends me to display. Whenever there is a new message i want push notification to be sent to me. Kindly guide that how i can enable push notifications in my application.. ...

Twitter New tweets feature ?

How does tweeter implement the asynchronous notifications for new tweets ? If it is a form of server push technology, does any one know or suggest how this feature could have been implemented ? Thanks ...