Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to implement iPhone push notifications in a Google App Engine application?

I'm in the planning phase of an iPhone application and am considering using Google App Engine for my server component due to its scalability features.

Push notifications are sent using a binary interface to gateway.push.apple.com:2195.

However, the JRE for the server is only allowed to use the following standard classes, which does not include the Socket classes. Can URLConnection be used somehow to do this?

Is there a way to implement push notifications given the restrictions on Google App Engine applications?

I'd like to avoid using a third-party service such as AppNotify or UrbanAirship if possible.

like image 523
Ben S Avatar asked Nov 28 '09 03:11

Ben S


People also ask

Does Apple support push notifications?

Use the Apple Push Notifications Service to send notifications to your website users, right on their Mac desktop — even when Safari isn't running. Safari Push Notifications work just like push notifications for apps.

How does push notifications work on the iOS platform?

An iOS push notification is a message that pops up on an Apple device such as an iPhone. Before receiving push notifications from an app, iOS device users must explicitly give permission. Once a user opts-in, mobile app publishers can send push notifications to the users' mobile devices.

How do I get push notifications from Google?

Turn on notifications for Android devicesTap More on the bottom navigation bar and select Settings. Tap Turn on notifications. Tap Notifications. Tap Show notifications.


2 Answers

Nope. Google App Engine forbids native socket connections. You either need to use a third party service (like the ones you mentioned) or have another dedicated server for sending notifications.

EDIT: Please note that the limitation of GAE on sockets and outgoing calls isn't a library limitation only. Google servers actually block all outbound network connections; they only allow HTTP requests through URL Fetching servers.

If you like, you can star Issue 1164: Add Support for Apple Push Notification Service.

like image 60
notnoop Avatar answered Oct 08 '22 09:10

notnoop


Now with Appengine Release 1.7.7 its possible!

like image 33
Sam Avatar answered Oct 08 '22 09:10

Sam