I Have implemented following code but not getting the Device Token?
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
NSLog(@"deviceToken: %@", deviceToken);
}
...
I currently have an Apple Push Notification running on my server in Ruby. I'd like to get one going in Erlang as I'd like to use a supervisor to keep watch over it. Does anyone have any code that they could help me with?
Here's my Ruby code. One thing I do not like about this current implementation is that it does not seem to stay ...
I have a shed load of 'aps_developer_identity.cer' certificates exported from iPhone Developer portal. They were all created using the same Certificate Signing Request and (thus) the same private key. If I export just the private key from the Apple Key Chain is it then possible to take the private key and the 'aps_developer_identity.cer'...
I'm preparing to set up a APNS message server, and I was wondering if anybody has done any analysis on APNS server load that they would be able to share. Minimum server specs, maximum messages per second, anything like that.
Thanks!
edit: I'm planning to implement this with .NET, but info about any platform would be incredibly useful....
Hello, I've recently started developing iphone applications for a project at school and I've been having some problems testing push notifications. I've read I need to get some SSL certificate from the program portal, but I cannot find the link AppID where I am supposed to get them. Is it really necesary even though I am just starting out...
Does anybody know of any limitations on the sounds that can be played when an iPhone app receives a push notification? Specifically, is there a maximum sound length?
Also, I am assuming that the volume of the sound will match whatever the user has set their ringer volume to, and if set to vibrate mode, the phone will vibrate instead of...
Hi,
I have been trying to use the default code in the iPhone APNS documentation to generate a device token using registerForRemoteNotificationTypes() but without succes.
Neither the didRegisterForRemoteNotificationsWithDeviceToken or the didFailToRegisterForRemoteNotificationsWithError is called. I had placed a UIAlert in both these meth...
i tried to run using local mac machine but go the following errors
Warning: stream_socket_client() [function.stream-socket-client]: Unable to set private key file `/Applications/XAMPP/xamppfiles/htdocs/apns/apns-dev.pem’ in /Applications/XAMPP/xamppfiles/htdocs/apns/apns.php on line 9
Warning: stream_socket_client() [function.stream-so...
HI All,
Has anybody been able to extract the device tokens from the binary data that iPhone APNS feedback service returns using PHP? I am looking for something similar to what is been implementented using python here
http://www.google.com/codesearch/p?hl=en&sa=N&cd=2&ct=rc#m5eOMDWiKUs/APNSWrapper/%5F%5Finit%5F%5F.py&q=f...
I'm looking to avoid running my own server all the time when dealing with Apple's push notification service. From my understanding, I need a constant connection to the APNS which I can't afford... I was planning on releasing my app for 0.99 or for free and I really don't want to spend a lot of money elsewhere.
After a bit of googling ...
Hi
I tried sending the test message
$apnsHost = 'gateway.sandbox.push.apple.com';
$apnsMessage = chr(0).chr(0).chr(32)
.pack('H*', str_replace(' ', '', $deviceToken))
.chr(0).chr(strlen($payload)) . $payload;
fwrite($apns, $apnsMessage);
I got the message
Connection Establishedsending message :�� d^÷Îå0ZCd%1ÄuwOOYš'ÊÈ}ârðm¾Í�...
"Feedback works now - open incoming port 2196
Sep 26, 2009 6:57 AM
Be sure that your server has port 2196 open for INCOMING data, not just outgoing. This was after I had my server support guy open 2196 for incoming data.
This works - I un-installed the app, sent a push to it, and then checked feedback:"
It's feedback on appleforum.
S...
Hi ,
i tried the following code (PHP)
$apnsHost = 'gateway.sandbox.push.apple.com';
$apnsPort = 2195;
$apnsCert = 'apple_push_notification_production.pem';
$streamContext = stream_context_create();
stream_context_set_option($streamContext, 'ssl', 'local_cert', $apnsCert);
$apns = stream_socket_client('ssl://' . $apnsHost . ':' . $apn...
Hi,
I was wondering if it is possible for the app on the client to be able to read the data in the payload when an APNS notification is sent?
For example, if the APNS notification said "Hello world!", and the user clicked 'View' to go to the app, would there be a way for the app to see that the APNS notification said "Hello world!".
...
I have been simply trying to get deviceToken from my iPhone application using Apple Push Notification Service.
I don't have any implementation on server side for the time being.
I have created APP Id, got SSL certificate, Provision Profile with APN and calling
- (void)applicationDidFinishLaunching:(UIApplication *)application {
//view ...
I'm looking for a way to determine if the user has, via settings, enabled or disabled their push notifications for my application.
Thanks.
...
Hi
I've successfully managed to connect to Apple's feedback APNS server but I'm not sure how to unpack the binary data you get from fread(). Does anyone know how to do this? The documentation says the first 4 bytes are the timestamp, the next 2 are the token length and the rest are the device token.
How does this info get unpacked into...
Hi
I would like to know , the best affordable Hoster for APNs
Because it requires 2195&2196 ports to be opened to work...
i checked site5 & justhost
Please let me know which one is the best to go with it
Thanks a million in advance
...
I started to write a provider for APNs in .Net today, and it seems I've hit a brick wall...
Everything I'm finding about securing sockets says that a System.Net.Sockets.Socket cannot implement SSL. I'm fairly new to raw sockets programming...does anyone know of a way to connect a raw socket to a server over SSL?
...
Hi friends, I am developing an alarm app in iphone. To set alarm I have to use APNS (Apple Push Notification Service). Can you suggest me how to do this or some important tutorial regarding this.
Thanks in Advance.
Ruchir Shah
([email protected])
...