AIR 3.0 Socket, Standard packaging method = won't works on iOS device

Hello,
I'm using FB 4.5.1. with AIR 3.0.
My project uses Socket connection class, which works as expected in the simulator run, even when packaged and run in the iOS device (iPad or iPhone) with Fast package method. But whenever we're doing the package as Standard mode (the certificates are okay to package for iOS) it stops working (the socket). The connection even not returning any event either - i.e. IOError, Security Error nothing. What's the difference the connection creates between Fast and Standard package mode (?)
Any security reason or it's just a bug.
Any help would be great!
Thanks & Regards,
Santanu Karar

Its a very basic code . You need a server to which you will connect this socket .
Enter ip address and port number before clicking the send button
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.MouseEvent;
import flash.events.ProgressEvent;
import flash.events.SecurityErrorEvent;
import flash.net.SecureSocket;
import flash.net.Socket;
private function init():void
var socket:Socket = new Socket
socket.addEventListener(Event.CONNECT,connecthandler)
try
socket.connect(remoteip.text,Number(remoteport.text))
catch(e:Error)
myarea.text = e.name + e.message
private function connecthandler (e:Event)
{   myarea.text += "hi i am connected"
e.target.writeUTFBytes("hello");
e.target.flush()
]]>
</fx:Script>
<s:Button x="83" y="96" label="Send" click="init();"/>
<s:TextInput x="251" y="96" id="remoteip"/>
<s:TextInput x="251" y="137"  id="remoteport"/>
<s:Label x="198" y="98" text="ip"/>
<s:Label x="171" y="137" text="pport"/>
<s:TextArea x="70" y="197" width="392" id="myarea" height="210"/>
</s:Application>

Similar Messages

  • Auto tab focus method is not working in iOS devices please share the ideas why its not working?

    Auto tab focus method is not working in iOS devices. Please share the idear i am facing this issue while developing code for devices.

    Hi there,
    I can confirm this bug.
    Not sure if this info is relevant, but this is my experience:
    I am on the FIDO network, and so are two other people I know.
    We all tried blocking numbers, and calls ring right through. Text messages are blocked successfully. (never tried facetime)
    I also tried a ROGERS device running IOS7, and was successfully able to block my phone call from ringing through. HOWEVER, my call was forwarded to their voicemail, I was able to leave a voicemail for the person, and they did get an alert that they had a new voicemail.
    I have not yet had a chance to test this on Bell, Telus, or any other carriers.
    Spoke to Apple, and they advised me to do a hard reset (hold both buttons to shut off and reboot the phone), and if that fails to do an iOS restore.
    I have yet to try this, but hopefully someone will have a better solution.

  • Keynote won't work on iOS devices using icloud - works on Desktop or online

    I use my iPad 3 and iphone 5 to deliver presentation for work. I can create them on my laptop or desktop using icloud beta.  I have the latest OS and updates of Keynote. Please help.

    This is the Mac discussion, as this is Keynote for iOS issue, post in that discussion and iPad
    users will give you help.
    Keynote for iOS discussion

  • ITunes Match Genius Mixes won't work on iOS devices anymore

    Hi,
    I had the iTunes Match Genius Mixes running on my Apple TV and iPhone without any problems until yesterday. Since then the iPhone still shows the list of mixes, but no cover art of the contained songs nor does anything happen when I press the play button. On the Apple TV it says that I should first enable Genius in my iTunes on my Mac, but that has already happened.
    I tried signing out and in again from iTunes Match several times. The iTunes library load everywhere without problem and all songs are availble but no Genius or Genius Mixes. I also tried disabling iTunes Match on my Mac and turned it on again. Same result. All iOS device does not offer Genius or Genius Mixes anymore.
    Any help would be appreciated.
    Thanks!

    I'm having the same issue as well. Tried same process of turning off and on match on all my devices, nothing works.
    I really miss my genius mixes, and considering I just purchased iTunes Match, this kind of stinks.
    kra_ste wrote:
    Hi,
    I had the iTunes Match Genius Mixes running on my Apple TV and iPhone without any problems until yesterday. Since then the iPhone still shows the list of mixes, but no cover art of the contained songs nor does anything happen when I press the play button. On the Apple TV it says that I should first enable Genius in my iTunes on my Mac, but that has already happened.
    I tried signing out and in again from iTunes Match several times. The iTunes library load everywhere without problem and all songs are availble but no Genius or Genius Mixes. I also tried disabling iTunes Match on my Mac and turned it on again. Same result. All iOS device does not offer Genius or Genius Mixes anymore.
    Any help would be appreciated.
    Thanks!

  • Importing cr2 raw files won't work on ios 6 when it worked fine on ios5. Anyone have a solution?

    I have  been importing cr2 raw files to my iPad using ios 5 but importing cr2 raw files won't work on ios 6. Sees files in camera but when import stops it fails with an exclamation mark in red circle. Anyone have a solution?

    Don't know if you care anymore or it applies, but I was able to get things working but it took drastic measures.
    I had to do a full system reset and update by doing the following:
    - Make note of all your settings in your system and apps especially accounts and forget about in app data that's only on your iPad and not in a cloud service because it will be gone after this
    - Connect iPad to Mac and startup iTunes
    - Hold down Home and Power buttons simultaneously for about 8 sec until the screen turns black
    - Release the Power button but continue holding the Home button until there's a popup on your screen which indicates it's in recovery mode
    - Follow the instructions to recover your iPad but recover it to factory state, not recover from a backup
    - Reinstall all your apps and content
    - Reconnect to all your services on your system and apps
    I could not restore from a backup since it brought back my bad data too.  It also didn't restore my music and no matter what I tried it wouldn't put my music onto my iPad.  Had to start clean.
    It appears over time that the system gets dirty and there's lots of bad data that can't get resolved.  This is especially true if some of your apps have crashed a bunch.

  • Why is my Air application taking so long to show the first view on iOS devices?

    I built an Air application that runs on Android devices and iOS devices. The application uses Air 3.4 and Flex SDK 4.6. On my Android device, the application starts in 5 seconds. On my iPad device, the application starts in 90 seconds.
    My application has a splash screen, which is launched via the ViewNavigatorApplication property, splashScreenImage.
    The application was built in release mode and the SWF file is 1.384M. After I create the ad-hoc build, which includes the Air Captive Runtime, I see the following file sizes and startup times.
    iPad 2 - ipa size, 8.6M
    12 seconds of black screen. Then my splash screen appears. 80+ seconds of splash screen. Then my first view appears.
    Android Nexus 7 - apk size, 4.0M
    2.5 seconds of black screen. Then my splash screen appears. 2.5 seconds of splash screen. Then my first view appears.
    Here are more details about my app.
    It's a video conferencing app. So I have to set renderMode to "cpu". The app has 5 views and several popups. The popups use the SkinnablePopupContainer. The app uses dependency injection as provided by the Parsley framework to share two small data objects between the views. The app uses web service calls to manage the conference state.
    The problem occurs at startup. I haven't rendered a view with video logic, and the first view is a welcome page with a scrollable text area for terms and conditions, one button with an icon, one toggle button, and one hyperlink button.
    The app has about 400k of embedded images which are rendered using the MultiDPIBitmapSource.
    The app has 43.3K of icons for the various sizes as specified in the application xml file.
    Any help would be greatly appreciated.

    I figured out how to resolve the issue. I had to change the renderMode from "cpu" to "direct". That solved the problem, and the application performs perfectly. Even the video displays work ok. It's interesting that Adobe advises against using "gpu" or "direct" renderMode when displaying video. I need to figure out why and make sure the application is acceptable as is.
    I have more testing to conduct, but I'm very encouraged.

  • FormsCentral form won't work on iOS 8!

    I have a client who gains access to an online-hosted form that I created for them via FormsCentral. They have iPads in their airplanes and complete my "safety checklist" before they fly. They upgraded every pilot's iPad to iOS 8 yesterday, except for one. The iOS 7 iPad is the only one that will allow them access to complete and submit their form. Now they're looking to me for the answer, and I'm hoping Adobe jumps on this quick!! Any thoughts on how to correct this?

    2007SUFF wrote:
    > NEED URGENT HELP!!! (Re: website made with dreamweaver)
    I have made
    > the buttons of AGREE and DISAGREE for terms and
    conditions on my site
    > and this is to take you to a form page to fill out your
    details. The
    > buttons work on the mac but on a PC they won't work. The
    website is:
    > www.sydneyundergroundfilmfestival.com and its when you
    go to the
    > SUBMIT page and use the online forms. Please help!!!
    There isn't a form on the page entry.html.
    You do have two input tags, such as
    <input name="Agree" type="submit" id="Agree"
    value="Agree">
    but these need to be enclosed in <form></form>
    tag to work.
    The page doesn't have a doctype, and fails validation; the
    page will be in
    quirks more, and Macintosh browsers are probably making
    different guesses
    than the PC browser as to what should be done.
    Easiest solution? Create two images (one for agree, one for
    disagree) which
    looks like a button, and change the code
    <td><a href="
    http://www.sydneyundergroundfilmfestival.com/entry2.html">
    <input name="Agree" type="submit" id="Agree"
    value="Agree">
    </a></td>
    <td><a href="
    http://www.sydneyundergroundfilmfestival.com/index.html">
    <input name="Disagree" type="submit" id="Disagree"
    value="Disagree">
    </a></td>
    to
    <td><a href="
    http://www.sydneyundergroundfilmfestival.com/entry2.html">
    <img src="image-agree.gif" alt="I Agree">
    </a></td>
    <td><a href="
    http://www.sydneyundergroundfilmfestival.com/index.html">
    <img src="image-disagree.gif" alt="I disagree">
    </a></td>
    HTH,
    Pete.
    Peter Connolly
    http://www.acutecomputing.co.uk
    UK

  • Home Sharing won't load on iOS devices - works fine on AppleTV

    I've been struggling with Home Sharing and cannot understand why it simply won't work. I have a relatively large library (25,000 songs/300movies/1000 tv shows). I'm running all Apple devices, all with the latest OS/software versions. AEBS is my router.
    Home Sharing has always worked flawlessly from iTunes on my Mac to AppleTV.
    When I load up the Videos App on and any of my several iPhones and iPads in the house, my Shared Library always appears...
    ...however, if I tap to load it...the spinning circle appears and that's where it ends. It will spin endless for several minutes until it Fails or I stop it.
    What could be the problem here? I've tried all the basic troubleshooting of turning HS on/off, in iTunes and the iOS devices, restarted every device plenty of times...Nothing.
    It used to work intemittently with iOS 6, but not at all on iOS 7.

    Contrary to the marketing, Music or Video using Home Sharing simply does not work on the iPad. I have spent hours on the phone with Apple Care. There is no solution. If you really need to watch video, buy an Apple TV and a small monitor or some other setup. The problem is not with Home Sharing, which works fine between my computers. Neither is it with the Wi-Fi, which I use with the Remote app to load and play the same library that Music stalls on. The problem is with the Music and Video apps, which can only load shared libraries intermittently.

  • My macbook's sound won't work - no output devices found in settings?

    I've been having a lot of issues with my Macbook.  It has a 2.4 GHz Intel Core 2 Duo processor and is running on version 10.6.8 Mac OS X.  It asks for certification whenever surfing the web or loading websites, and always redirects to a different page.  Now, the sound won't work at all - regardless of mute on/ off or sound turning up and down. I went to settings to check out the problem, and there is no output or input device listed or found on that page.  I have no idea what's going on, and now, even though it's plugged in it won't charge.

    First thing I would try for your sound output issue would be to reset the parameter RAM.
    Best of luck.

  • CS design standard download install won't work

    Adobe support gave me the link to download DesignStandard CS5 on my mac.  I downloaded it and now when I try to install, it give me an error. (Install can't be opened because it is from an unidentified developer).

    Hi Panacea,
    This error is due to MAC security settings "Gatekeeper". You can follow the article: OS X: About Gatekeeper and makes required changes to the setting and try again it will work.
    Let us know in case of any issues.
    Thanks,
    Ratandeep Arora

  • Error occurred while packaging application: fails to run on iOS device...

    I am building a project in Apple Mavericks using FlashBuilder 4.7 using AIR SDK 3.9 and Flash Player 11.9. 
    The project is plugin project that builds and runs for android in the AIR simulator as well as on the device (so far so good)… it also builds and runs for iOS in the Xcode simulator but fails on the device… I have checked and double checked to make sure that my certificate (p12) and provisioning profile are correct and have also confirmed that the Application descriptor correctly mirrors the app ID (in flash builder as well as in the provisioning profile). I have allowed System Events in the Security & Privacy setting in Mavericks.
    If I try to build and run for the device… after a few minutes it fails with a message… “Exception occurred during launch  Reason: Error occurred while packaging application:” without any detailed information.
    If I try to “Export Release Build” it fails after a few minutes with message… “Error occurred while packaging application: Id: framework not found UIKit  Compilation failed while executing  :  Id64” Even though I know UIKit was included in the Xcode project when I started and UIKit is (I thought) automatically included by Flash Builder!
    Can anyone help me out or point me in the right direction? I really need to get this project running on the device, I was pretty sure that the provisioning was my problem but have not had any luck getting it running no matter how many times I review and check my settings and provisioning. Please Help

    I am building a project in Apple Mavericks using FlashBuilder 4.7 using AIR SDK 3.9 and Flash Player 11.9. 
    The project is plugin project that builds and runs for android in the AIR simulator as well as on the device (so far so good)… it also builds and runs for iOS in the Xcode simulator but fails on the device… I have checked and double checked to make sure that my certificate (p12) and provisioning profile are correct and have also confirmed that the Application descriptor correctly mirrors the app ID (in flash builder as well as in the provisioning profile). I have allowed System Events in the Security & Privacy setting in Mavericks.
    If I try to build and run for the device… after a few minutes it fails with a message… “Exception occurred during launch  Reason: Error occurred while packaging application:” without any detailed information.
    If I try to “Export Release Build” it fails after a few minutes with message… “Error occurred while packaging application: Id: framework not found UIKit  Compilation failed while executing  :  Id64” Even though I know UIKit was included in the Xcode project when I started and UIKit is (I thought) automatically included by Flash Builder!
    Can anyone help me out or point me in the right direction? I really need to get this project running on the device, I was pretty sure that the provisioning was my problem but have not had any luck getting it running no matter how many times I review and check my settings and provisioning. Please Help

  • Iphone 4 speaker won't work after ios 4.3.2 upgrade

    I upgraded to 4.3.2 yesterday and since then the speaker on my iphone 4 has stopped working completely. Phone will not ring, ipod won't play, no sound on the speaker at all. Can use the phone but no speakerphone or any other sound on the speaker. Please help!!!!!

    The error message I get is "cannot connect using SSL".  I've tried soft re-booting the iPhone.  No joy.

  • HT4623 Reminders won't work after iOS 6.1 update on iPhone 5?

    I updated to the new iOS 6.1 update last night. Went to make a reminder through siri and i get to the point were it asks to confim. When I press confirm Siri tells me that she can't do it. I try to set a reminder manually and the app does not give me the option to add a reminder manually. Everything worked fine before the update when my iPhone 5 had the 6.0 iOS?
    Any ideas on what the problem coulb be? Any help would be appreciated.
    Thanks in advance.
    GS47

    The problem is more than likely being cause by corruption that occured during the iOS install or in the backup that was used to restore the phone after the update.
    Standard troubleshooting is:
    Re-boot the phone
    Restore the phone from your backup
    Restore the phone as a new device.
    One of the 3 should fix the problem.

  • IBooks won't work in iOS 7.0

    I downloaded ios 7.0 and iBooks won't open anything in the library.  The app itself opens but the books only flash and then they don't open.  Any thoughts?

    Umpf! I've tried WIFI, I've tried 3G & LTE, I've opened and closed and opened and closed, and checked the settings-  it won't connect me to the iBooks Store, though my library is still intact/opens without issues. Also does displays "Top Authors" in iBooks Store but nothing else.... 

  • HT4972 my imessage won't work with ios 7 update

    I upgraded my iphone 4s to IOS 7 and it won't let me enable text massaging

    Try this help article here:
    Troubleshooting FaceTime & iMessage Activation: http://support.apple.com/kb/TS4268??

Maybe you are looking for