Detecting when Flex App is in background tab in safari

So here is my dilemma:
I load up my application (which streams data from a socket),
make a new tab in safari, wait x amount of minutes, and go back to
the application. I'm streaming video across the socket and on
return the frame rate goes through the roof, faster than the source
actually transfers at. So what I believe is happening is the flash
application stops playing, but the socket is still open so data is
being buffered at the lower level. Is there any way to detect when
the flex app goes into the background so I can close the sockets
and then reopen them later? Thanks!

okay spoke a little too soon - deactivate is fired off on any
time the app loses focus, not necessarily when it stops playing. Is
there an event which signals right before the player is going to be
paused? Thanks!

Similar Messages

  • Detecting when Flex app terminates

    In a editor-type application I'm writing using Flex 2 I'd
    like to show a
    popup dialog "Save changes?" when the user closes the browser
    window (or a tab in case of tabbed browsing) or when the
    browser
    navigates to another site / page.
    Anyone know if there's an event that signals the end of a
    flex app.
    Preferably a canceable event so the popup dailog could
    include
    a Cancel button.
    Thanks

    Not from within Flex. Some solutions involve using javascript
    onBeforeUnload and flex's ExternalInterface to do this.
    Tracy

  • Is it a security concern when Flex app in 2 browser tabs share the same session?

    This is a common senario. Want to hear from the experts here.

    Hi,
    on the ApplicationModule, did you set the locking behavior to optimistic ? For web applications it should be optimistic and not pessimistic, which is the default setting. Select the AM and choose "Configurations" from the context menu. Click edit and select the property tabs. Look for the locking setting, which should be set to "pessimistic if you did not change it before. Just replace the current value with optimistic
    Frank

  • Detecting when the app is not visible (behind start screen, etc)

    What is a good mechanism to detect when an application is behind a start screen (or loaded, but not visible?)

    use:
    CoreWindow.GetForCurrentThread().Visible and
    CoreWindow.GetForCurrentThread().VisibilityChanged;
    event
    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

  • Connecting to Flash debugger when AIR app comes from background

    Hello,
    I am trying to debug why my AIR app take a long time to load when it comes back from the background after an extended period of time.
    Currently, I can only connect to the Flash debugger (the popup asks for the IP) when I launch the app for the first time.
    Is it possible to debug it when it comes back from the background? Am I doing something wrong?
    Thanks!
    Melissa

    Post in the developer's forum.

  • Popup background tab ads Safari ios7

    I've been getting random, but more frequent, window/tabs opening in the background in Safari with ads! I've always had the "block popups" setting "on" and the "open new tabs in background" setting "off".
    Is there a way to block this?
    Fwiw, this is on an iPad air.

    HI,
    From the Safari Menu Bar click Safari/Block Pop Up Windows
    See if that helps.
    Glims can cause issues with Safari.. just be aware.
    Safari 4: May unexpectedly quit with "Glims for Safari"
    Carolyn

  • When the apple review team review our app,they point out that our  app uses a background mode but does not include functionality that requires that mode to run persistently.but in fact,when the app in background ,the app need data update to make the

    when the apple review team review our app,they point out that our  app uses a background mode but does not include functionality that requires that mode to run persistently。but in fact,when the app in background ,the app need data update to make the function of  trajectory replay come ture。in fact, we have added function when the app  is in background mode。we have point out the point to them by email。but they still have question on the background mode,we are confused,does anyone can help me,i still don't know why do review team can't find the data update when  the app is in background and how do i modify the app,or what is the really problem they refered,do i misunderstand them?
    the blow is the content of the review team email:
    We found that your app uses a background mode but does not include functionality that requires that mode to run persistently. This behavior is not in compliance with the App Store Review Guidelines.
    We noticed your app declares support for location in the UIBackgroundModes key in your Info.plist but does not include features that require persistent location.
    It would be appropriate to add features that require persistent use of real-time location updates while the app is in the background or remove the "location" setting from the UIBackgroundModes key. If your application does not require persistent, real-time location updates, we recommend using the significant-change location service or the region monitoring location service.
    For more information on these options, please see the "Starting the Significant-Change Location Service" and "Monitoring Shape-Based Regions" sections in the Location Awareness Programming Guide.
    If you choose to add features that use the Location Background Mode, please include the following battery use disclaimer in your Application Description:
    "Continued use of GPS running in the background can dramatically decrease battery life."
    Additionally, at your earliest opportunity, please review the following question/s and provide as detailed information as you can in response. The more information you can provide upfront, the sooner we can complete your review.
    We are unable to access the app in use in "http://www.wayding.com/waydingweb/article/12/139". Please provide us a valid demo video to show your app in use.
    For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. When the DTS engineer follows up with you, please be ready to provide:
    - complete details of your rejection issue(s)
    - screenshots
    - steps to reproduce the issue(s)
    - symbolicated crash logs - if your issue results in a crash log
    If you have difficulty reproducing a reported issue, please try testing the workflow as described in <https://developer.apple.com/library/ios/qa/qa1764/>Technical Q&A QA1764: How to reproduce a crash or bug that only App Review or users are seeing.

    Unfortunately, these forums here are all user to user; you might try the developer forums or get in touch with the team that you are working with.

  • Continue Task when app goes in Background

    Hello,
    I want to create a simple app for a Windows 8.1 Phone that vibrates each X seconds. But I need it also when the Display is off and the App switches in the background. So is it possible to continue a Task when the App goes in Background? At the moment the
    task will pause and continue when the App comes back to the foreground. I read something about Background tasks. But thats not what I need, because there is no defined trigger I can use. There are only issues with continue media playing that I can find, but
    they seems to be different.
    Best regards
    Viktor

    Hi ViktorBecker,
    I think there is no such feature for your requirement. As you have seen, background task was triggered by system event, but there is no event which correspond to this requirement. Maybe you can post it on UserVoice.
    https://wpdev.uservoice.com/forums/110705-dev-platform.
    If you need future help, please post more information about your scenario.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • When I close a tab it closes all tabs in safari

    Something happened to my safari appearance.  One, I have lost the search bar that use to be on the upper right hand side, and two, when I go to close a tab in safari, it closes all of my open tabs in safari.  I don't remember how to get that back.

    My pleasure. You can register your dissatisfaction with the search bar design here: http://www.apple.com/feedback/

  • Extensions tab in Safari preferences doesnt work

    Hi!! I'm trying to uninstall an extension from Safari, but when i go to the Extensions tab in Safari's preferences, it's just blank.  How do i fix that?

    Are you actually accessing iTunes over a remote desktop?
    If so, why?

  • Flex app doesn't work when moved from original location

    I'm trying to make an image gallery in flex. It works when I run it in Flex Builder perfectly fine. The html and swf files from the bin-debug folder work perfectly fine when opened in any browser also, but ONLY when those files and all related files are opened from the default location that the application was built in. When I export a build to a different folder, the swf loads but none of the information from the xml file displays. I tried setting all of the paths of the reference files (namely the xml) in the flex app to the exact absolute location on the server, and it still didn't work when I uploaded it to the server.
    I've tried several approaches starting from scratch and they have all come up with the same issue. I'm working with an educational license for Flex Builder, I'm not sure if they jip you on those and ruin the compiled swf.
    Please help! I'm losing my mind over this.I think it has to do with something else besides the code since it works fine when I hit "Run", but if anyone thinks it will help to post the code let me know.

    when you build an application using one of the wizards (like coldfusion flex application wizard) it hard codes
    paths to cold fusion CFC's, and sometimes gets it wrong.
    If your application references cfc's (or other remote objects) then it may be necessary to adjust the flex code
    when moving the code into a different base folder.
    For example in my own application, the url is http://localhost/crm_dev_flex and the built application gets put into
    c:\inetpub\wwwroot\crm_dev_flex\bin-debug
    References in the code to components found in c:\inetpub\wwwroot\crm_dev_flex\bin-debug\components\cfgenerated
    (in the flex code these looks like crm_dev_flex.bin-debug.components.cfgenerated.<mycomponent> )
    These need to change when you move the code to somewhere else.
    Also, if you are using wizard generated cfc's then these also contain similar references that need to be changed.
    IHTH.
    Cheers

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • Some events are not dispatched when app runs in background

    My Android app has a TIMER event which fires once every second to connect a TCP socket (class flash.net.Socket) and send a request.
    A packet sniffer confirms that a socket is in fact connecting, request is sent, reply comes back and connection is closed, all happening once per second.
    Clearly, even with the app in the background, the TIMER event is occurring every second, because the timer handler is initating every socket.
    But not every closing connection causes a CLOSE event to dispatch, because my close handler is called less frequently.  Sometimes once in 3 seconds, 8 seconds or even longer.
    The CLOSE dispatches correctly once per second when the app is in the foreground.
    Why are CLOSE events being missed when the app is in the background?  What is the difference between a TIMER event and a CLOSE event, causing one to dispatch correctly but not the other?
    Thanks.

    I've narrowed my problem down by chopping pieces of code until it works, and I think I have it narrowed down to the code that uses FlexGraphing but need to check a bit more...
    It's odd that it works in Flex3 builder though, and there are no errors when I run in as AIR. In fact, the app RUNS, since it is in the task manager, but it won't appear.

  • Flex app can't connect to the internet / server when uploaded?

    I made a simple app that submits a data via POST using the HTTPService. My problem is, when I Run the application from the Flash Builder IDE, and it opens in the browser as a local file, it interacts with my server (remote server) without any problem and does its job well. However, when I upload it to my website, it fails to interact. It displays on the status bar of Firefox that it's connecting to the server that requires interaction but after some time the status reverts to "Done" with my Flex app not showing any Alert boxes if it either succeeded or failed.
    It's really making me frustrated not knowing what's wrong..
    Also if it would be an added help, I decided to use the Flex 3.5 SDK to make it more compatible with commonly installed Flash Players on people's computers since the features that I used doesn't really need those of 4.0.

    Contact the app developer and ask... That's an XML error on the host.

  • Flex app behaves differently when Adobe automation files loaded

    We have an application built with Flex 3.1. I am attempting to create QTP tests for this application.  The instrumentation files are loaded at run time, not compiled into the application.
    I am using QTP 9.5 with the Adobe Flex Add-in 3.0.  I am able to see the controls an run tests to some extent.
    The main issue I am trying to resolve is that there is a difference in behavior of the application when it is started with the instrumentation files. The differences occur both inside and outside of the QTP environment.
    The observed differences are:
    The initial page is a login screen. After entering the id and password, I can click ‘Enter’ or click the “Log in” command button. With the instrumentation files loaded, the ‘Enter’ key no longer works.
    When I log out of the application, a progress screen displays while the environment clean-up occurs.  When the progress bar hits 100%, the original login screen is displayed. With instrumentation files loaded, activity stops when the progress bar hits 100% and the original login screen is never displayed.
    After logging in, a window with perspective tabs displays.  Each perspective tab page contains a window containing a list of resource associated with the perspective. When instrumentation files are loaded, the tab pages exist, but the perspective windows are not created.
    I realize I am dealing with application-specific behavior here and I am pursuing this with our developers. What I am looking for is any information related to differences in application behavior when instrumentation files are loaded.

    I can't seem to reproduce what you are seeing with this sample application:
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark">
        <s:states>
            <s:State name="state1" />
            <s:State name="state2" />
        </s:states>
        <s:controlBarContent>
            <s:Button label="change state" click="currentState=currentState=='state1'?'state2':'state1'" />
        </s:controlBarContent>
        <s:Button x="50" y="50" label.state1="state1" label.state2="state2" skinClass="CustomButtonSkin" />
    </s:Application>
    Can you provide a similar sample application that demonstrates the issue?

Maybe you are looking for

  • BBcRed Button no longer available from today

    I am trying to watch the concert from Hyde park streamed live on the Red button however after some confusion talking to the so experts at bt who thought I meant the red record button I finally spoke to a manager who advised me the red button channel

  • Form with Submit Button

    I recently purchased the acrobat professional 8 and tried to create forms that people can fill in and submit it to us. I tried email button but for some reason never get the email for the data. I thought about http button, but it need some scripting

  • Combo Box Calculations

    Is there any way to use the drop down box or "combo box" with numbers in a calculation for another field. ex.  "Combo box1"= 500 , 1000, 2000 and "Text1" calculation should be "Combo box1 - 25" It doesn't seem to recognize the number in "Combo Box1"

  • Medieval Tech Help: a good example of the movie-maker's art

    http://www.youtube.com/watch?v=LRBIVRwvUeE It's not only hillarious, but a very skillful example of short movie-making.

  • Is the ipad 2 3g locked or not??????

    Hi, I'm planning to buy an ipad2 with 3g, I live in the US but next year I will move back to Germany, so I need to know if I can use my ipad with a german carrier. I can find online both answers (yes the at&t modell will work the ipad is unlocked, an