Highlighted

Adobe AIR Rich Media notifications on iOS 10+

Community Beginner ,
Dec 19, 2017

Copy link to clipboard

Copied

Does anyone able to implement Rich media push notifications for iOS?

My findings:

I'm working on Adobe AIR iOS application and want to implement rich media notifications through Native extensions(ANE). I'm creating iOS static library for ANE with UNNotificationServiceExtension implementation. Also adding serviceextension.appex file as Target Dependency in Static Library target. But not able to add serviceextension.appex in platformoptions.xml packagedDependencies.

Flash code, I've enabled UIBackgroundModes for remote notification.

<key>UIBackgroundModes</key> <array> <string>remote-notification</string> </array>

Service extension code is not getting called and notification is shown without rich media image. Please let me know whether its possible to implement in Adobe AIR or I'm doing something wrong.

This can be done, but not as an ANE. You need to make a real iOS app extension in XCode just like in Apple's developer guides. To do this you have to first set up an xcode 'wrapper' project, and you'll have to repackage your app after building it with ADT to add the iOS app extension. This is a very old archived blog post but it pretty much tells you exactly what you need to do to set up the project, short of actually creating the extension(s), for which you can just follow Apple's docs. You can even debug these with breakpoints, imagine that

https://web.archive.org/web/20170423101015/http://blogs.adobe.com/rajorshi/2011/11/18/debugging-native-extensions-for-air-ios/

It might seem scary and it is a bit of a pain to set up initially but it works, we have a NotificationServiceExtension and a NotificationContentExtension working fine. Good luck

TOPICS
Development

Views

333

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Adobe AIR Rich Media notifications on iOS 10+

Community Beginner ,
Dec 19, 2017

Copy link to clipboard

Copied

Does anyone able to implement Rich media push notifications for iOS?

My findings:

I'm working on Adobe AIR iOS application and want to implement rich media notifications through Native extensions(ANE). I'm creating iOS static library for ANE with UNNotificationServiceExtension implementation. Also adding serviceextension.appex file as Target Dependency in Static Library target. But not able to add serviceextension.appex in platformoptions.xml packagedDependencies.

Flash code, I've enabled UIBackgroundModes for remote notification.

<key>UIBackgroundModes</key> <array> <string>remote-notification</string> </array>

Service extension code is not getting called and notification is shown without rich media image. Please let me know whether its possible to implement in Adobe AIR or I'm doing something wrong.

This can be done, but not as an ANE. You need to make a real iOS app extension in XCode just like in Apple's developer guides. To do this you have to first set up an xcode 'wrapper' project, and you'll have to repackage your app after building it with ADT to add the iOS app extension. This is a very old archived blog post but it pretty much tells you exactly what you need to do to set up the project, short of actually creating the extension(s), for which you can just follow Apple's docs. You can even debug these with breakpoints, imagine that

https://web.archive.org/web/20170423101015/http://blogs.adobe.com/rajorshi/2011/11/18/debugging-native-extensions-for-air-ios/

It might seem scary and it is a bit of a pain to set up initially but it works, we have a NotificationServiceExtension and a NotificationContentExtension working fine. Good luck

TOPICS
Development

Views

334

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 19, 2017 0
Contributor ,
Dec 19, 2017

Copy link to clipboard

Copied

This can be done, but not as an ANE. You need to make a real iOS app extension in XCode just like in Apple's developer guides. To do this you have to first set up an xcode 'wrapper' project, and you'll have to repackage your app after building it with ADT to add the iOS app extension. This is a very old archived blog post but it pretty much tells you exactly what you need to do to set up the project, short of actually creating the extension(s), for which you can just follow Apple's docs. You can even debug these with breakpoints, imagine that

https://web.archive.org/web/20170423101015/http://blogs.adobe.com/rajorshi/2011/11/18/debugging-nati...

It might seem scary and it is a bit of a pain to set up initially but it works, we have a NotificationServiceExtension and a NotificationContentExtension working fine. Good luck

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 19, 2017 0