Skip to main content
Inspiring
November 7, 2011
Question

Native extension: Device token for push notifications (iOS)

  • November 7, 2011
  • 4 replies
  • 5422 views

Hello!

Have anyone seen a native extension that simply returns the device token on iOS?

After reading Apple's documentation, all I think I need is the device token to perform simple push notifications on iOS. Please correct me if I'm wrong.

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html

My AIR-app would send the device token to the server, which stores it. When something happens on the server, the server will assemble the notification, including the device token, and send it to APNS, which then notifies the user.

Sounds pretty straight forward to me... if I just had the device token.

/anders

This topic has been closed for replies.

4 replies

Participant
June 23, 2014

plz help me to do local notification using AS3 Air for Android

Thank You

rawan

August 14, 2012
Innovatology
Participating Frequently
January 20, 2012
Inspiring
January 20, 2012

I have already created my own extension for APNS. I recently submitted anew version of my app to App Store.

More in this thread:

http://forums.adobe.com/thread/940310

Participating Frequently
November 20, 2011

Hey Anders,

Any luck with that? The extension link you pointed is Local notification no Remote / push, ritgh?

M

Inspiring
November 20, 2011

Hello Mario!

Nope. Haven't got started. I would need to hire a C-programmer, but I haven't got any response (from Adobe or anyone else) if this is possible even with native programming. No-one has tried it, nobody knows... Appearantly it's more diffiicult than I first thought,

The link in my post leads to Apple's documentation about Push Notifications. It's not an extension. It's what you need to know to create an AIR extension for APNS (that's push/remote, not local). Local notifications seem pretty easy, but it's useless to us.

Participating Frequently
November 20, 2011

Hi Anders,

Thought your link was the one pointing to the Adobe "notification" extension for iOS.

The constraint seems to be the background mode. In my tests, any code routines in background mode will stop, therefore the Local notification extension instead of the Push one (which requires code execution in bg mode)

Having that said, in AIR 3.0 beta I had code running over P2P calls in the background, so via rtmp push notifications were theoretically possible via a Local notification, yet this would require good testing (iOS Local notification api usage seems to be for scheduled notifications)

I'm having another goal based on the latest AIR version on Adobe pre-release, but due to NDA with Adobe no info can't be posted here. We can continue talks in the pre-release though