Skip to main content
Inspiring
Nov 7, 2011 11:36 PM UTC
Question

Native extension: Device token for push notifications (iOS)

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 is closed to new replies. Start a new post to keep the conversation going.

9 replies

Jun 23, 2014 8:29 AM UTC

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

Thank You

rawan

Translate
Aug 14, 2012 12:18 PM UTC

Have you guys tried out this ANE

https://github.com/freshplanet/ANE-Push-Notification

Translate
Innovatology
Participating Frequently
Jan 20, 2012 5:56 AM UTC
Inspiring
Jan 20, 2012 10:03 AM UTC

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

Translate
Participating Frequently
Nov 20, 2011 1:32 PM UTC

Hey Anders,

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

M

Translate
Inspiring
Nov 20, 2011 2:03 PM UTC

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.

Translate
Participating Frequently
Nov 20, 2011 5:50 PM UTC

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

Translate