Native Maps ANE – New features and changes

We've released another update to the NativeMaps ANE, which includes some new features and changes.

Getting BitmapData of the map view (iOS only)
Firstly, we've added a new method to allow you to draw the current map view to a BitmapData object on iOS. Unfortunately due to the way Android renders maps internally, it is currently not possibly to do this in the Android version.

Example:

var bmd:BitmapData = NativeMaps.service.drawMapToBitmapData();

Custom marker icon changes
This is a breaking change to the way custom marker icons are used. This new method should make it easier and less memory intensive when using a lot of custom icons.

This example shows how you should create and use custom markers now:

var icon:CustomMarkerIcon = new CustomMarkerIcon("myCustomIcon", someBitmap.bitmapData);
NativeMaps.service.addCustomMarkerIcon( icon );

var marker:MapMarker = new MapMarker("someMarker");
marker.customIconId = "myCustomIcon";

This new change also fixes a possible bug that could have occurred when using many different custom markers on a map.

As always we'd love to hear feedback about our ANEs, so feel free to get in touch.

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

Roadtrip Forever

This project is a personalised online video experience developed in conjunction with RunPixelRun and SCA for the Victorian Transport Accident Commission (TAC).

Roadtrip Forever, is a personalised experience for you and your best friend where nothing is off limits. Take supplies, take friends and take the trip www.roadtripforever.com You won't regret it.

The application integrates with Facebook to pull information and images about the users friends to make the video experience highly personalised. The user will see photos and names of their friends throughout the video making the experience feel like it was actually the user "taking the road trip".
Continue reading Roadtrip Forever

Native Extensions Update 1.6 – NativeMaps and Calendars

Promo1

We've just released the latest update to our ANE package. This update includes our new Native Maps extension, plus additional updates to the Calendar ANE to support calendars on Android, and also now multiple calendars on iOS.

Continue reading Native Extensions Update 1.6 – NativeMaps and Calendars

DisasterMapper wins the Knowledge Innovation Award (2012)

adg-disastermapper-screenshot

DisasterMapper, an interactive resource for schools, has received the Australasian Fire and Emergency Services Authorities Council (AFAC)/Motorola Knowledge Innovation Award for 2012.
Continue reading DisasterMapper wins the Knowledge Innovation Award (2012)

Native Extension Tip // iOS Push Notification Custom Sound

Playing a custom sound when a push notification arrives from the Apple Push Notification Service (APNS) is quite simple.

This tip assumes you're using our extension and that you've already got push notifications running.

Firstly you need to create your sound and export as an iOS supported format, such as caf.

Then you need to include the sound to your AIR application and make sure it's packaged with the application. If you are using adt then you just need to make sure it's included as a packaged resource in your script / command line. In Flash Builder you should make sure the sound is checked to be packaged in the following location:

Project / Properties / Actionscript Build Packaging / Apple iOS / Package Contents

To play this sound you must specify the filename of the sound in the notification payload. For example, lets say you've added a sound file named example.caf into your application, we can play this sound with the notification payload as below:

  1. {
  2. aps =
  3. {
  4. alert = "test example notification message";
  5. sound = "example.caf";
  6. };
  7. }

Then the custom sound will play when your notification arrives.