I am trying to create a small iOS app in Flex, with Push Notifications, with Air 3.4. This is my first attempt:
<?xml version="1.0" encoding="utf-8"?>
<s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.PushNotifTestHomeView" applicationDPI="160"
applicationComplete="init()">
<fx:Script>
<![CDATA[
import flash.notifications.RemoteNotifier;
public function init():void{
trace(RemoteNotifier.supportedNotificationStyles);
}
]]>
</fx:Script>
</s:ViewNavigatorApplication>
When I run it, either in the Air Simulator or iOS Simulator, I get an error "ReferenceError: Error #1065: Variable flash.notifications::RemoteNotifier is not defined".