Quantcast
Channel: Adobe Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 290743

Problems with iOS Push Notifications

$
0
0

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".


Viewing all articles
Browse latest Browse all 290743

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>