Win a license for our ANE Package!

Update: The competition is now closed. We'll be announcing the winner soon.


distriqt_ane_competition_v3

Do you want to win a license for the full ANE package?

We're giving away a full license and copy of our complete native extensions package. All you have to do is follow us on Twitter, and post a tweet with the hashtag #distriqtANE telling us what you'd make with the extensions.

Make sure to include the competition hashtag to be in the running!

1. Follow us!

2. Tweet it!


This competition will run from the 18th of November 2013 until the 2nd of December 2013, in Australian time (AEST). We'll select the most creative idea posted, and the winner will be provided with a full license key for the package.

Native Extensions // Using Native Extensions

This tutorial will cover adding a Native Extension for Adobe AIR to your application.
We are going to be focusing on the native extensions developed by distriqt, but this guide should apply to any native extension (ANE).

Native Extensions for Adobe AIR are code libraries that contain native code wrapped with an ActionScript API. Native extensions provide easy access to device-specific libraries and features that are not available in the built-in ActionScript classes.

Their usage is similar to a SWC package of precompiled Flash symbols.

In the following tutorial we’re going to go through the process of adding an ANE to your AIR application using some of the most common AIR development tools. We assume you already understand the process of developing and deploying mobile applications using AIR so will just be concentrating on the additional steps required to get an ANE working.

Read the full tutorial online
Tutorial // Using Native Extensions
Download a pdf of the tutorial
Download PDF

Native Extensions // Push Notifications Tutorial // Part 2

This tutorial is the second part of our tutorials covering setting up and running the Push Notifications Native Extension for Adobe AIR from distriqt.

The Push Notifications extension enables the push notification functionality in your mobile AIR application allowing you to send (or push) notifications and data to users of your application. The extensions API will have you up and running with remote notifications in minutes.

Importantly this extension allows you to write code once and have access to push notifications on multiple platforms allowing you to quickly integrate push notifications no matter what platform you are developing for!

In this tutorial we will run through the concepts involved in getting your application setup and running with push notifications including:

  • Including the extension in your application
  • Registering for notifications
  • Listening for notifications
  • Sending a test notification

Continue reading Native Extensions // Push Notifications Tutorial // Part 2

Native Extensions // Push Notifications Tutorial // Part 1

This tutorial will cover setting up and running the Push Notifications Native Extension for Adobe AIR from distriqt.

With the Push Notifications extension enables the push notification functionality in your mobile AIR application allowing you to send (or push) notifications and data to users of your application. The extensions API will have you up and running with remote notifications in minutes.

Importantly this extension allows you to write code once and have access to push notifications on multiple platforms allowing you to quickly integrate push notifications no matter what platform you are developing for!

In this first tutorial we will run through the concepts involved in getting your application setup and running with push notifications including:

  • Setup and registering certificates for APNS
  • Setup for GCM

Continue reading Native Extensions // Push Notifications Tutorial // Part 1

Google Cloud Messaging using PHP

Google Cloud Messaging

Using PHP to send a message to a Google Cloud Messaging registered device is quite simple. In this example we'll be using curl to create a message request to send to the Google GCM server.

The code shown in this example is just going to demonstrate how to send a message to a registered device ID.
Continue reading Google Cloud Messaging using PHP

Google Cloud Messaging using C#

Google Cloud Messaging

Sending a notification to an Android device just keeps getting simpler and simpler. The current implementation of Google Cloud Messaging provides developers with a very simple way to send push notifications to a particular device.

What I'm going to show here is how to send a notification to a device once it's registered with your server.
Continue reading Google Cloud Messaging using C#

Native Extension Tip // Finding an Android Resource ID

Often when writing native extensions we've been faced with the problem of retrieving resources from the library. The official way to do this is to use the FREContext instance and the getResourceById() function. However there are several times when you'll want to access a resource packaged in your extension when the application has not been initialised (for example, onReceive events with a BroadcastReceiver), which initially seems impossible as you won't have access to your FREContext as yet.

There is however a simple workaround using the code below. You'll still need to be able to determine the package name of your application, which you can generally get from the Android Context.getPackageName().
Continue reading Native Extension Tip // Finding an Android Resource ID

Native Extension // Google Cloud Messaging (GCM)

After a few weeks, we've updated our Push Notification extension to support the newly introduced Google Cloud Messaging, which depreciated C2DM. So once again you'll be able to receive push notifications in your AIR applications on Android.

Google Cloud Messaging

It's now available as part of our extension package here. Happy messaging!

Native Extension Tip // ld: unknown option

When packaging an iOS AIR application you may encounter the following error:

Error occurred while packaging the application:
ld: unknown option: -ios_version_min
Compilation failed while executing: ld64

As in the following screenshot:

This error simply indicates that the native extension you are attempting to package requires some features from the iOS SDK or a version greater than the one you are currently using. To remedy this, make sure you are using a recent version of the iOS SDK and correctly including it in your packaging options.

Native Extension Tip // ld: framework not found …

Continuing our series of help tips with using ANE's a very common error you'll come across is the one shown below, a linker error:

ld: framework not found ...
Compilation failed while executing : ld64

Continue reading Native Extension Tip // ld: framework not found …