Flex AIR iOS application with rtmps

Hi,
If I am accessing flex AIR application from Mac or iOS (iPad) using secure rtmp then it gives me error. It is not able to connect to the server.  I have a self signed certificate generated using java keytool. I have configured it on tomcat and it works for the ssl in browser with https://localhost:8080, but fails when using rtmps from flex application especially in Mac and iPad.  It works in Android tablet and windows machine though.
Here is the configuration in I gave in the server for ssl.
<server id="secure-nio-server" class="flex.messaging.socketserver.SocketServer">
        <properties>
            <keystore-file>D:/keystore.jks</keystore-file>
            <keystore-password>password</keystore-password>
        </properties>
    </server>
<channel-definition id="mobility-rtmp"
      class="mx.messaging.channels.SecureRTMPChannel">
      <endpoint url="rtmps://{server.name}:@flex.rtmp.port@"
        class="flex.messaging.endpoints.SecureRTMPEndpoint"/>
   <server ref="secure-nio-server">
      <properties>
        <idle-timeout-minutes>20</idle-timeout-minutes>
        <!-- for deployment on WebSphere, must be mapped to a WorkManager available in the web application's jndi context.
        <websphere-workmanager-jndi-name>java:comp/env/wm/MessagingWorkManager</websphere-workman ager-jndi-name>
        -->
</properties>
</server>
    </channel-definition>
Here is the exception I am getting on server side.
INFO: [LCDS] 01/21/2012 17:14:44.258 [ERROR] [SocketServer.General] Thread[secure-nio-server-WorkerThread-2,5,main] failed to read Connection '521330370' or process the data; Connection is in the 'Handshaking' state and will be forced closed.
javax.net.ssl.SSLException: Inbound closed before receiving peer's close_notify: possible truncation attack?
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLEngineImpl.closeInbound(Unknown Source)
at flex.messaging.socketserver.SSLConnection.handshake(SSLConnection.java:298)
at flex.messaging.socketserver.Connection$ConnectionReader.run(Connection.java:845)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Jan 21, 2012 5:14:44 PM org.apache.catalina.core.ApplicationContext log
INFO: [LCDS] 01/21/2012 17:14:44.258 [DEBUG] [SocketServer.General] Thread[secure-nio-server-WorkerThread-2,5,main] Connection '521330370' has changed state to: Closing
Jan 21, 2012 5:14:44 PM org.apache.catalina.core.ApplicationContext log
INFO: [LCDS] 01/21/2012 17:14:44.258 [DEBUG] [SocketServer.General] Thread[secure-nio-server-WorkerThread-2,5,main] closing Connection '521330370'.
Jan 21, 2012 5:14:44 PM org.apache.catalina.core.ApplicationContext log
INFO: [LCDS] 01/21/2012 17:14:44.258 [DEBUG] [SocketServer.General] Thread[secure-nio-server-WorkerThread-2,5,main] Connection '521330370' has changed state to: Closed
Jan 21, 2012 5:14:44 PM org.apache.catalina.core.ApplicationContext log
INFO: [LCDS] 01/21/2012 17:14:44.258 [DEBUG] [SocketServer.General] Thread[secure-nio-server-WorkerThread-2,5,main] closed Connection '521330370'.
Jan 21, 2012 5:14:44 PM org.apache.catalina.core.ApplicationContext log
INFO: [LCDS] 01/21/2012 17:14:44.258 [DEBUG] [SocketServer.General] Thread[secure-nio-server-WorkerThread-2,5,main] Connection '521330370' finished a read. -1 bytes were read.
Please help.
Thanks,
Swathi.

Did you get anywhere with this, I'm having a similar issue?
I have an Air app that works fine using rtmp in iOS but not rtmps (it works fine in Android for both). The release notes for 3.1 (http://kb2.adobe.com/cps/923/cpsid_92350.html) suggest there was a problem for rtmps on iOS, but I'm using the latest 3.1 SDK version.
I'm suspecting an SSL certificate issue as in Android I get prompted as to whether I trust the certificate, but not on the iPhone. I have installed the certificate manually but to no avail.

Similar Messages

  • Detect CD drive from Flex-AIR desktop application???

    Can we detect CD drive from  Flex-AIR destop application even though there is no CD or Blank CD inside the drive?

    AIR 2.0 supports native code integration.
    http://labs.adobe.com/technologies/air2/
    This may be useful in hooking into native CD/DVD writing capabilities.

  • Integrating iOS applications with FMS using RTMP

    Hi guys,
    In case if you develop native iOS applications and are looking to connect them with your FMS, check out this blog post: http://bit.ly/n1OZwQ
    It reviews a Communication Library for iOS which includes an implementation of the RTMP protocol. There is also a video demonstrating the connectivity between native iPhone and iPad apps with server-side ActionScript deployed into FMS. Supported features include client-server invocations, data push and remote shared objects.
    Cheers,
    Mark

    Hello,
    Could you give use more information/examples of what you are trying to achieve?
    I donot understand your question...
    Regards
    Tugdual Grall

  • Flash CC Air iOS: Problems with loading text from an external xml located on a server.

    So I have this code allowing me to load text from an xml located on a server. Everything works fine on the Air for Android. The app even works in the ios emulator, but once I export my app to my ios device with ios 7, I don't see any text. The app is developed with Air sdk 3.9. What could be the reason? Do I need any special permissions like on Android? Does ios even allow to load xml from an external server?
    Any clues?

    It was my bad. I linked to a php file to avoid any connection lags, which was absolutely fine on the android, but didn't seem to work on the ios 7. So all I did is change the php extension to xml and it worked without any problems.

  • Change Encore Project into a adobe air desktop application with password

    Good afternoon,
    I am trying to find a a way that i can change or inport a Encore project into a adobe air desktop application so that a can password protect it. I have a training simulator built in Encore that has a large number of menus and videos that i would like to tern into a tesk top application that i can password protect. Encore out puts this as a swf file. Is there any way to do this? I have bin looking around an the web and can't seem to find any information on this kind of problem. Any help would be greatly appreciated.
    Many thanks,
    Justin

    Hi Justin,
    ok, assuming that your external SWF tries to access some hosting application context (methods/properties) you could try:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                xmlns:s="library://ns.adobe.com/flex/spark"
                                xmlns:mx="library://ns.adobe.com/flex/mx"
                                applicationComplete="applicationCompleteHandler(event)">
         <fx:Script>
              <![CDATA[
                   import mx.controls.Alert;
                   import mx.events.FlexEvent;
                   private var loader:URLLoader = null;
                   protected function applicationCompleteHandler(event:FlexEvent):void
                        loader = new URLLoader();
                        loader.dataFormat = URLLoaderDataFormat.BINARY;
                        var url:String = "MyApplication.swf";
                        loader.load(new URLRequest(url));
                        loader.addEventListener(Event.COMPLETE, loaderCompleteHandler);
                        loader.addEventListener(IOErrorEvent.IO_ERROR, loaderErrorHandler);                   
                   protected function loaderCompleteHandler(event:Event):void
                        // allow cross-scripting in case loaded content tries to access
                        // that context properties or methods
                        var context:LoaderContext = new LoaderContext();
                        context.allowCodeImport = true;
                        swfLoader.loaderContext = context;
                        swfLoader.load(loader.data);
                        cleanup();
                   protected function loaderErrorHandler(errorEvent:IOErrorEvent):void
                        mx.controls.Alert.show(errorEvent.text, "ERROR");
                        cleanup();
                   private function cleanup():void
                        loader.removeEventListener(Event.COMPLETE, loaderCompleteHandler);
                        loader.removeEventListener(IOErrorEvent.IO_ERROR, loaderErrorHandler);
                        loader = null;
              ]]>
         </fx:Script>
         <!-- ui -->
         <s:SWFLoader width="100%" height="100%" id="swfLoader"/>
         <!-- -->
    </s:WindowedApplication>
    See that doc for some details "allowCodeImport":
    http://www.adobe.com/devnet/flashplayer/articles/fplayer10_1_air2_security_changes.html
    note: I'm not sure if that would 100% work. I don't know what Encore authored .swf really do, for that you could ask on Encore forum:
    http://forums.adobe.com/community/encore/encore_general
    regards,
    Peter

  • Adobe AIR HTML Application with Window Shadow

    I have been building a HTML based AIR application that uses a transparent window. I want the window to have a drop-shadow effect which using a combination of JavaScript and CSS3 I make the shadow change depending on window focus.
    The application looks like the following (wireframe diagram):
    The red area is the <html> container itself. The blue box is the application content area (a simple <div>) and the black border with green shadow is a container <div> that is positioned absolute on the page. This black container is the application itself in my design.
    As you can see the black border (around the blue box) has a subtle green shadow in the outer edges of the <html> page.
    The problem is that because the <html> is the application in AIR it means that the application can never touch the edge of the screen due to the fact that AIR is treating the <html> as the application edge rather than the container <div> for the black border.
    Any ideas on how to get around this? The only thing I could think of was some crazy JavaScript that could offset the application somehow.... Anyone else had this problem?

    I use this function to center the window on the screen. Could I use any parts of this to perhaps always offset the window to handle the spacing around the chrome div?
    function centerWindow(instance){
                        //default bounds of nativeWindow
                        var applicationBounds = instance.nativeWindow.bounds;
                        //determine which screen we're located on
                        var screens = air.Screen.getScreensForRectangle(instance.nativeWindow.bounds);
                        var screenBounds = (screens.length > 0) ? screens[0].visibleBounds : air.Screen.mainScreen.visibleBounds;
                        //get initial position
                        x = (screenBounds.width - applicationBounds.width) / 2;
                        y = (screenBounds.height - applicationBounds.height) / 2;
                        //adjust for offset x or offset y (multi monitors)
                        x = screenBounds.x + x;
                        y = screenBounds.y + y;
                        instance.nativeWindow.x = x;
                        instance.nativeWindow.y = y;

  • I can't compile for iOS anymore with Flex and AIR 3.8

    Hi Adobe team and others,
    I'm using Apache 4.10 Flex framework and adobe Air 3.8 for my business projects.
    I always had some problems to compile and publish iOS application (with Air 3.5 before), but with AIR 3.8, that was a miracle, I could compile my projects without any errors on Windows ... until today.
    I'm executing this command in DOS to compile my project:
    "C:\Program Files\Java\jre7\bin\java.exe" -jar "C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.10 - AIR 3.8\lib\adt.jar" -package -target ipa-app-store -hideAneLibSymbols no -provisioning-profile "S:\Directory_to_MobileProvision.mobileprovision" -storetype pkcs12 -keystore "S:\Directory_to_Certificats_ios.p12" -storepass my_private_password Proginov_FVTE_V45.ipa Proginov_FVTE_V45-app.xml assets com config_app.xml [email protected] Proginov_FVTE_V45.swf -extdir "S:/Directory_to_ANE/air_3.8_pnv_3.00"
    And I'm getting this result after 1 hour compiling:
    If you want, I can send you my bin-release-temp folder and ANE to try by yourself, but I need a private mail, because I don't want to publish my private project to everyone.
    Thanks

    Thank you a lot.
    I remember I tried this with AIR 3.5, and that didn't work.
    But with AIR 3.8, it's OK.
    Perfect

  • Publish video to flex ios application from flex app in flash builder 4.6

    Hi, i am publishing my live video stream from flex application like this
    ns_out.publish("livestream", "live");
    and receiving it from flex mobile (IOS) application
    ns_in.receiveVideo(true);
    ns_in.play("liveStream");
    but i am not receiving yet anything on my simulator, but in mean while when i publish my video from flash media live encoder, my flex ios application runs it smoothy..:)
    I  am using Adobe Flash Builder for this development..
    Any help is appreciated!
    Thanks

    yes!!!!!!!!!
    I got the answer, i need to encode video into H.264 format and then publish.
    cheers!!!!!!!!!!!!

  • AIR + iOS + geolocation updates + screen off = FAIL

    Where do I start... I have been trying to tackle this issue for quite some time now and every time I think I have the answer something else comes along to crash the party.
    I am in the process of building a multi-screen AIR mobile application with the AIR 3.0 SDK that records geolocation updates as they are sent from the device.
    Everything works fine on Android but when I test on iOS here are my findings...
    Geolocation updates work fine while the app is active.
    In order for you app to be eligible for background services you need to set the UIBackgroundModes in your app-xml file for the service you would like to enable... in my case 'location' (which I did)
    I found that doing this alone will not allow you to receive the location updates when the app is in the background. As soon as the app is "minimized", it goes into a suspended state and no code is being executed until the app beomes active again ...therefore none of the location updates are received.
    I found that setting the 'audio' AND 'location' values together somehow allows me to run code while the app is in the background, just not while the screen is turned off.  The moment you press the power button to turn the screen off, the app goes into a suspended state again.
    To test if code can be run, I have set up an event listener that gets triggered when the app is deactivated and activated.  I am setting a timer the moment the app gets deactivated and incrementing a variable every 100 milliseconds while the app is inactive.  When the app becomes active again I report the number back in a debug textfield.  If I dectivate the app by pressing the home button or open even open another app, the number that gets reported back when I go back to my app is accurate... but as soon as I press the power button to shut the screen off, the number stops incrementing shortly after.
    I have seen plenty of native iOS geolocation-based apps get location updates while the screen is off, why is this not the case for an AIR iOS app? Is there a workaround for this? Does someone at Adobe need to fix this issue?  At this point, I'm not even sure Native Extensions would do the trick... Am I doing something wrong?
    ANY help would be greatly appreciated.
    Thanks!

    Hi:
    The issue you are facing on iOS is because of the known bug where there are no events fired when the screen is off(including the time events). This bug will be fixed in future releases. I will take care of posting on this thread when the release with this fix is out.
    Thanks for posting.
    Regards,
    Saumitra Bhave

  • Re: Flash Air desktop application

    Hi there,
    I have developed a flash air desktop application with the help of a flash programmer.
    Soon I will put it online for sale. How could I avoid illegal copy from spreading around?
    I need a lot of info regading this.
    Please help me with this issue.
    Many thanks

    A possible solution is described here:
         http://nsdevaraj.wordpress.com/2009/01/20/licensing-flex-air-application/
    HTH.

  • Access Raw Outgoing NetStream Data in Flex/AIR

    I have a Flex/AIR desktop application that connects a local camera and microphone to a NetStream for delivery to a Flash media server.
    However, I would also like to archive a copy of the outgoing stream locally on the filesystem. Is there any access to the actual bytestream of a NetStream object (even in the dreaded mx.internal namespace) that I could turn around and feed to a FileStream for the local archive?

    Am I to guess there's just no way to access that raw bytestream from within Flex?

  • AIR application with Flex 4.5 will not render content. What gives?

    OK,
    So I've upgraded to Flash Builder 4.5 Premium and I am unable to develop desktop AIR applications with the 4.5 Flex SDK. I start by simply creating a brand new AIR application using the default SDK (Flex 4.5). I set the title property on WindowedApplication and include a simple Label component. The project compiles fine but when I run the application all I see is the adl window in the dock but that's it. If I modify the Main-app.xml file to set the visible attribute to true, I will get a small window but there is no content although the output window shows the application swf being loaded. Checking the release version of the Main-app.xml file shows the correct path location to the swf.
    Here is what I've tried so far:
    Install/reinstall Flash Builder, 4+ times
    Downloaded the trial installation twice
    Downloaded the SDK's for 3.6, 4.1 and 4.5.0. I then copied each SDK folder and merged the AIR 2.6 SDK with each copy. So now I have 6 SDK versions; one pristine and the other with the AIR 2.6 SDK merged. I then added each SDK individually and created an AIR desktop application for each. Each and every one works fine with the exception of the two 4.5 SDK's. They will not render content.
    I created a simple creation complete handler for the application that declares a simple variable and assigns a value to it. I then put a break point on the assignment and it never gets caught. More evidence that the swf isn't getting loaded.
    The computer I'm running on is a Mac Book Pro with Snow Leopard 10.6.7. If I create a web project in each of the 6 SDK's, those will work just fine. What the heck is it with Flex 4.5 and the AIR 2.6 SDK on this machine? I have the AIR 2.6 runtime installed as well as a number of AIR applications that work just fine. I also tried my 4.5 test on my windows machine and that worked like a champ.
    I am completely out of ideas. Finding information has been difficult because everyone is all about mobile so searching for desktop issues is a losing battle. I realize this is a long email but I'm desperate for help. There must be someone out there that knows more about the low level interaction between Flex 4.5/AIR 2.6 and the OS.

    Well, I finally found the issue, a corrupted mm.cfg file in /Library/Application Support/Macromedia. I deleted the file and then adl ran just fine.

  • Squareup integration with Adobe AIR based ios Application

    Hi All,
    Does anyone is having any experice to work with 'Squareup' i.e.   https://squareup.com/
    I want to integrate it with my adobe air based ios application.Is there any native extension is available for this?
    Any information will be appriciated.
    with Regards,
    Shardul

    Hi, please forget my last message. I was changing so many things I finished using a wrong mobileprovision. That's why I couldn't install the app in the device.
    On the other hand I have found the problem. Some changes in one of our ANE were not tested in iOS 5.0.1 devices and it made the app crash because it found a Adobe Air 3.5 bug. Adobe fixed it in AIR 3.6

  • AIR application with Native application crash on iOS because of numFunctionsToTest

    I wrote a simple Hello World AIR Native Extension and have implemented following context initializer
    void helloWorldContextInitializer(void* extData, const uint8_t* ctxType, FREContext ctx,
                                      uint32_t* numFunctionsToTest, const FRENamedFunction** functionsToSet)
        NSLog(@"Entering ContextInitializer");
        *functionsToSet = _methods;
        NSLog(@"Method list initialized");
        if(numFunctionsToTest != NULL)
            NSLog(@"numFunctionToTest is not null");
            *numFunctionsToTest = (uint32_t)2;
        NSLog(@"Exiting ContextInitializer");
    My Application crash on iOS device with following message in console.
    Dec 29 15:58:41 unknown HelloWorld[24298] <Warning>: Entering ContextInitializer
    Dec 29 15:58:41 unknown HelloWorld[24298] <Warning>: Method list initialized
    Dec 29 15:58:41 unknown HelloWorld[24298] <Warning>: numFunctionToTest is not null
    Dec 29 15:58:42 unknown ReportCrash[24302] <Notice>: Formulating crash report for process HelloWorld[24298]
    Dec 29 15:58:42 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:org.divy.contactmanagement[0x5c0]) Job appears to have crashed: Bus error: 10
    Dec 29 15:58:42 unknown SpringBoard[15] <Warning>: Application 'HelloWorld' exited abnormally with signal 10: Bus error: 10
    Dec 29 15:58:43 unknown ReportCrash[24302] <Error>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/
    It seems line following line is cause of the problem.
    *numFunctionsToTest = (uint32_t)2;
    modified the line to *numFunctionsToTest = 2; still no luck.
    It seem the pointer is pointing is not correct.
    Following is the Device log if it helps.
    Incident Identifier: 650833B2-9F2E-4186-B499-29C9088EBD66
    CrashReporter Key:   f559e8609ce49e196f1137a3c1c7d27b40377472
    Hardware Model:      iPhone3,1
    Process:         HelloWorld [24065]
    Path:            /var/mobile/Applications/35BEA219-A5DF-48BB-8602-228EB8AF3D61/HelloWorld.app/HelloWorld
    Identifier:      HelloWorld
    Version:         ??? (???)
    Code Type:       ARM (Native)
    Parent Process:  launchd [1]
    Date/Time:       2011-12-29 14:36:08.226 -0800
    OS Version:      iPhone OS 5.0.1 (9A405)
    Report Version:  104
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x011c6d85
    Crashed Thread:  0

    It was my mistake in configuration of extension.xml file. Instead of mentioning Extesion Initialization funtion i was using context initialization funtions there. It started working after correcting this problem.
    Thanks for all the help.

  • Flex/Air applications with an OS X Menu Bar icon

    (Flash Builder 4 beta)
    I'm developing a flex/air application for mac os x exclusivley. The application should be very unobtrusive to the user, and as such, I want to eliminate the dock icon for the application and have it run exclusivley in the os x menu bar. Similar to a twitterific app. I've scoured the documentation for a way to do this, but only come up with methods for a system tray in windows, and dock icon function on a mac.
    Does AIR really lack the ability to have a menu bar icon?
    Thanks in advance!

    I've made menu's already for the application. They are native os x menu's but they are used create contextual menus (file, edit, view...etc...) and are only visible when the application is open. Unless their is a feauture I missed I don't think I can do it with those. I'm looking for the ability to create a menubar icon application similar to twitter, or the default apple spotlight.

Maybe you are looking for

  • Renaming the index.htm file

    Folks - I welcome some help on this one! I'm running RoboHelp 9, and authoring a help system for a dev group whose buildmeister has requested I rename (if possible) RoboHelp's compiled 'index.htm' file to something else, so as not to conflict with an

  • How to send a mail from a PL/SQL-block in Apex

    Hi, I am using Apex 3.0. On a page in my application users are fill out some fields, and clicking a button Apex inserts a new record in an table processing a PL/SQL-block. I would like to add "something" in this block so that Apex every time when it

  • My Powerbook is bleeding electricity

    Dear Apple & Apple Support, I have discovered that my powerbook bleeds electricity across its casing/chassis when plugged into USB devices that have their own power source. This discovery came after a few instances, including getting shocked while tr

  • What number is Mavericks and Yosemite?

    TThe General>About tells me a release number and Apple uses names (Mavericks & Yosemite). How do I figure out what named release I'm using from the number on my device?

  • Output should be in Text format from Back ground job

    Hi friends, I have scheduleda back ground job. In the receipent i ahve put my user mail ID. when the job was finished the output came as HTML file. where as my user wants a Text file or excel file. We are in ECC 5.0 and i am just scheduling standard