HTML5 App freezing after stopping geocoordinatewatcher (sometimes)

Hi
I have a problem with my html5 app freezing when I stop monitoring geolocations. The strange thing is that the freeze only occurs if the phone has been unable to receive gps positions for some time. When this happens, the app never gets
to the “done” alert (see code below). The funny thing is that the app returns to idle detection mode (the screen gets black after a few minutes), so that must mean that coordinateWatcher.Stop() is called without any error.
If I am outside receiving gps positions and stop the geomonitoring, then everything works fine.
If I have been without gps positions for some time, and then take the phone outside until gps is ok, then things also work.
Is there anything I can do to handle this situation?
JavaScript:
function stopMonitorLocation() {
  window.external.notify("stopGPS");
  alert(”done”);
Native code:
private System.Device.Location.GeoCoordinateWatcher coordinateWatcher;
// Constructor
public MainPage()
  InitializeComponent();
  coordinateWatcher = new System.Device.Location.GeoCoordinateWatcher();
private void Browser_ScriptNotify_1(object sender, NotifyEventArgs e)
  if (e.Value ==
"startGPS")
try
         coordinateWatcher.Start();
PhoneApplicationService.Current.UserIdleDetectionMode =
IdleDetectionMode.Disabled;
catch {}
    else if (e.Value == "stopGPS")
       try
coordinateWatcher.Stop();
PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Enabled;
       catch {}

Ok, so I finally got the 8.1 update, probably as one of the last humans on earth, and this solved the problem.

Similar Messages

  • Mail app freezes after first use on iPad 3 and ios 8.1.  How to solve?

    Apple mail app freezes after first use after reset.  iPad 3 and IOS 8.1.  How do resolve?

    Hi, sixfinger.  
    Thank you for visiting Apple Support Communities.
    Try forcing all applications to close and restart the device.  Once this is done test to see if the Mail app functions correctly.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    Cheers,
    Jason H.

  • Iphone 4S apps freeze after connecting to itunes

    When I plug my iphone 4S into my laptop and sync it, all downloaded apps freeze and I have to delete them and re-install them which is start to **** me off. Can anyone please tell me what is going on. I never had this issue with my iphone 3. Cheers,

    I seem to have this issue as well.  Sometimes after syncing and sometimes they just stop working.  What I have found is that I can resolve this by going to the app store on my phone.  Previous times there were updates to my current apps, I would update and then they would all work.  Yesterday, they just stopped working and there were no updates available.  I downloaded an app I didn't have (just a random app) and then they all started working.  The issue has always been resolved by doing this.  Hope that helps.

  • Music App Freezes After 4.1 Upgrade

    I recently upgraded my 3GS to 4.1, and I am now experiencing an issue whereby the music app (the ipod?) would freeze if I do any other activity while playing music
    For example: I'm listening to music, and a phone call arrives. After hanging up the call, the music starts to play again, but then stops and the music app freezes. Or, I am receiving and sending text messages while the music is playing, then the same thing will happen. Or, if I open another app while listening to music.
    The phone itself won't freeze, but I can no longer play music, and selecting the music icon just displays a white screen. After a few seconds, the music app closes and I return to the home screen. To make the music app work again, I have to reboot the phone.
    Is this a known issue? Is there a workaround?
    Thank you!

    I have the same situation here. The files in questions are the no-longer sold iTunes store file format of M4P. Most likely it will have to be addressed in a future upgrade.

  • Safari, Quicken Essentials, other apps freezing after installing Maveric

    Okay, I installed OS X 10.9 when it first came out.  Then started having issues with apps freezing, like Safari, Quicken Essentials and other apps.   I noticed this only after installing Maverick.   The only time the freeze would go away, would be after re-starting.    Then, it seemed the app would freeze again ONLY after I have been away from the computer for a while (maybe screen saver mode causes this issue?).   After not being able to figure it out, I un-installed Maverick and went back with TimeMachine and stayed away from Maverick thinking the issue would get fixed and letting bugs go by.  I just re-installed Maverick a few days ago and the issue is still there.  So, before I un-intsall again, I figured I would check here for any fix or if anyone else was having the same issue. 
    Example would be, as soon as you try to open the app, it immediately freezes and you get the round twirling circle that goes on indefintely.    The only time it will work, is after you re-start and then you can open it up.  If I leave the computer un-attended for a few hours and then come back, freezing happens again.   Not all apps act this way.  FireFox seems to have no issues. 
    Anyone else having this issue and if so, have you found a resolution? 
    Here is my EtreCheck
    Hardware Information:
              iMac (20-inch, Early 2009)
              iMac - model: iMac9,1
              1 2.66 GHz Intel Core 2 Duo CPU: 2 cores
              8 GB RAM
    Video Information:
              NVIDIA GeForce 9400 - VRAM: 256 MB
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0
              AirPlay: Version: 1.9
              AppleAVBAudio: Version: 2.0.0
              iSightAudio: Version: 7.7.3
    System Software:
              OS X 10.9 (13A603) - Uptime: 0 days 0:19:50
    Disk Information:
              WDC WD3200AAJS-40H3A0 disk0 : (320.07 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) /: 319.21 GB (131.14 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              OPTIARC DVD RW AD-5670S
    USB Information:
              Apple Inc. Built-in iSight
              Seagate FreeAgent Go 1 TB
                        EFI (disk1s1) <not mounted>: 209.7 MB
                        MacOS FreeAgent Drive (disk1s2) /Volumes/MacOS FreeAgent Drive: 999.86 GB (198.29 GB free)
              Apple Inc. iPad
              Apple Computer, Inc. IR Receiver
              HID compliant-mouse HID compliant-mouse
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
    FireWire Information:
    Thunderbolt Information:
    Kernel Extensions:
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist
              [loaded] com.macpaw.CleanMyMac2.Agent.plist
              [loaded] com.realvnc.vncserver.plist
              [loaded] com.rim.BBDaemon.plist
              [loaded] com.symantec.sharedsettings.plist
              [loaded] com.symantec.symdaemon.plist
    Launch Agents:
              [loaded] com.brother.LOGINserver.plist
              [loaded] com.divx.dms.agent.plist
              [loaded] com.divx.update.agent.plist
              [loaded] com.rim.BBLaunchAgent.plist
              [loaded] com.sony.PMBPortable.AutoRun.plist
              [loaded] com.symantec.uiagent.application.plist
    User Launch Agents:
              [loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist
              [loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist
              [loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist
    User Login Items:
              Flux
              CleanMyDrive
              Degrees
              Connect360Helper
              VerizonUpdateCenter
    3rd Party Preference Panes:
              Connect360
              EarthDesk
              Flash Player
              Flip4Mac WMV
              Java
              MacFUSE
              Norton\nQuickMenu
              Perian
    Internet Plug-ins:
              AmazonMP3DownloaderPlugin101750.plugin
              CouponPrinter-FireFox_v2.plugin
              Default Browser.plugin
              DivX Web Player.plugin
              echospin.plugin
              Flash Player.plugin
              FlashPlayer-10.6.plugin
              Flip4Mac WMV Plugin.plugin
              GarminGpsControl.plugin
              googletalkbrowserplugin.plugin
              iPhotoPhotocast.plugin
              JavaAppletPlugin.plugin
              LogitechHarmony.plugin
              npgtpo3dautoplugin.plugin
              nppanda3d.plugin
              o1dbrowserplugin.plugin
              OVSHelper.plugin
              QuickTime Plugin.plugin
              Silverlight.plugin
              Unity Web Player.plugin
    User Internet Plug-ins:
              Move_Media_Player.plugin
              WebEx64.plugin
    Bad Fonts:
              None
    Time Machine:
              Skip System Files: NO
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 319.21 GB Disk used: 188.08 GB
              Destinations:
                        MacOS FreeAgent Drive [Local] (Last used)
                        Total size: 999.86 GB
                        Total number of backups: 37
                        Oldest backup: 2013-10-01 11:06:49 +0000
                        Last backup: 2013-11-12 22:43:48 +0000
                        Size of backup disk: Excellent
                                  Backup size 999.86 GB > (Disk size 319.21 GB X 3)
    Top Processes by CPU:
                   5%          WindowServer
                   2%          System Information
                   1%          firefox
                   1%          EtreCheck
                   1%          fontd
                   0%          SymDaemon
                   0%          plugin-container
                   0%          loginwindow
                   0%          com.apple.IconServicesAgent
                   0%          ocspd
    Top Processes by Memory:
              385 MB   firefox
              238 MB   mds_stores
              156 MB   Safari
              147 MB   com.apple.IconServicesAgent
              82 MB    com.apple.WebKit.WebContent
              74 MB    Finder
              74 MB    WindowServer
              49 MB    plugin-container
              41 MB    Preview
              33 MB    mds
    Virtual Memory Statistics:
              4.78 GB  Free RAM
              1.87 GB  Active RAM
              480 MB   Inactive RAM
              645 MB   Wired RAM
              635 MB   Page-ins
              0 B      Page-outs

    JoeScafone wrote:
    ...  Do you recommend something else that would take it's place?   Like a free program, since I paid something for CleanMyMac2.
    No. Using CleanMyMac2 can result in deleting required system components that must not be deleted, and cannot be deleted using normal means. Reports of misery resulting from using it or similar "cleaning" utilities are common on this site. You should demand your money back.
    OS X maintains itself very well. Periodic "cleaning" is not required and can only result in degraded performance at best; a corrupted and useless Mac at worst. The perceived need for aftermarket utilities is probably attributable to many new Mac users who became inured to them after years of using Windows PCs.
    Though Norton / Symantec's garbage has a different purpose, it is capable of doing nothing beneficial will also cause the same results.
    A much better question is "how should I protect my Mac":
    Never install any product that claims to "speed up", "clean up", "optimize", or "accelerate" your Mac. Without exception, they will do the opposite.
    Never install pirated or "cracked" software, software obtained from dubious websites, or other questionable sources. Illegally obtained software is almost certain to contain malware.
    Don’t supply your password in response to a popup window requesting it, unless you know what it is and the reason your credentials are required.
    Don’t open email attachments from email addresses that you do not recognize, or click links contained in an email:
    Most of these are scams that direct you to fraudulent sites that attempt to convince you to disclose personal information.
    Such "phishing" attempts are the 21st century equivalent of a social exploit that has existed since the dawn of civilization. Don’t fall for it.
    Apple will never ask you to reveal personal information in an email. If you receive an unexpected email from Apple saying your account will be closed unless you take immediate action, just ignore it. If your iTunes or App Store account becomes disabled for valid reasons, you will know when you try to buy something or log in to this support site, and are unable to.
    Don’t install browser extensions unless you understand their purpose. Go to the Safari menu > Preferences > Extensions. If you see any extensions that you do not recognize or understand, simply click the Uninstall button and they will be gone.
    Don’t install Java unless you are certain that you need it:
    Java, a non-Apple product, is a potential vector for malware. If you are required to use Java, be mindful of that possibility.
    Disable Java in Safari > Preferences > Security.
    Despite its name JavaScript is unrelated to Java. No malware can infect your Mac through JavaScript. It’s OK to leave it enabled.
    Block browser popups: Safari menu > Preferences > Security > and check "Block popup windows":
    Popup windows are useful and required for some websites, but popups have devolved to become a common means to deliver targeted advertising that you probably do not want.
    Popups themselves cannot infect your Mac, but many contain resource-hungry code that will slow down Internet browsing.
    If you ever see a popup indicating it detected registry errors, that your Mac is infected with some ick, or that you won some prize, it is 100% fraudulent. Ignore it.
    Ignore hyperventilating popular media outlets that thrive by promoting fear and discord with entertainment products arrogantly presented as "news". Learn what real threats actually exist and how to arm yourself against them:
    The most serious threat to your data security is phishing. To date, most of these attempts have been pathetic and are easily recognized, but that is likely to change in the future as criminals become more clever.
    OS X viruses do not exist, but intentionally malicious or poorly written code, created by either nefarious or inept individuals, is nothing new.
    Never install something without first knowing what it is, what it does, how it works, and how to get rid of it when you don’t want it any more.
    If you elect to use "anti-virus" software, familiarize yourself with its limitations and potential to cause adverse effects, and apply the principle immediately preceding this one.
    Most such utilities will only slow down and destabilize your Mac while they look for viruses that do not exist, conveying no benefit whatsoever - other than to make you "feel good" about security, when you should actually be exercising sound judgment, derived from accurate knowledge, based on verifiable facts.
    Do install updates from Apple as they become available. No one knows more about Macs and how to protect them than the company that builds them.
    Summary: Use common sense and caution when you use your Mac, just like you would in any social context. There is no product, utility, or magic talisman that can protect you from all the evils of mankind.

  • All apps freeze after os x update

    After I updated to Mavericks all of my apps open, but freeze. I have to force quit all of them just to get them to close. does aanyone have any idea how to fix this?

    Try a Safe Mode boot ...
    Startup your Mac in Safe Mode
    A Safe Mode boot takes much longer than a normal boot so be patient.
    Once you are in Safe Mode, click Restart from the Apple () menu.
    Then see if apps freeze.

  • Firefox freezes after 2 seconds, sometimes 3 after opening.

    Well i was going to report it privatly via feedback, but i have to be using firefox to do that. If i could use firefox i wouldnt be here would i num nuts. But anyway, firefox freezes after i open it. Maybe 2 or 3 seconds after opeing the program. So if im quick on the tabs i can get awindow open and start a page loading before it freezes but thats it. Its unusable. I have restarted et al, but to no noticable benefit.

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If the new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Why do apps freeze then stop on the 7.0?

    Why does the new 7.0 iOS stop apps or freeze them.  Photos, apps, safari, start then stop and goes back to main screen.

    Standard troubleshooting...
    1. Try a Restart by pressing the sleep/lock button until you see the slider.  Slide to power off.  Restart by pressing the sleep/lock button until you see the Apple logo.
    2. Try a Reset by pressing the home and sleep buttons until you see the Apple logo. Takes about 5-15 secs of button holding and you won't lose any data or settings.
    3. Remove apps from Recently Used (multi-tasking) list...
    - From any Home Screen, double tap the home button to bring up the Recents List
    - Swipe up on the app preview card to remove it from the list
    - Press the home button when done.
    4. If still a problem restore with your backup.
    5. If still a problem restore as new, i.e. without your backup. See how it runs with nothing synced to it.
    6. If still a problem, it's likely a hardware issue.

  • HTML5 videos freeze after loaded, audio keeps playing

    This started happening some months ago in my old laptop and it also occurs now in the new one. A lot of times, when I play an HTML5 video (not just in YouTube, it also happens in Streamcloud for example), after it's fully loaded and I start playing it, it will stop (on YouTube the "loading" animation appears), and the audio will keep playing. The only thing I can do is mute it and reload the page. Whenever it happens, it usually happens again after a while, and it's really frustrating to have to reload a few times after it's loaded to be able to watch a 1 hour video.
    My laptop has two video cards, an Intel HD integrated one and a dedicated NVIDIA GeForce. It doesn't matter which one I use or if I turn hardware acceleration on or off, the issue persists.
    What can I do?

    Check that all of your software is up to date.
    Also, post the web address where you are having problems.

  • Remote desktop (MAC) app freezes after a sleep/scree-timeout

    Hello,
    My company needs the Remote Resource Connection -> Remote Desktop Client to be used to connect to Windows (7) desktops over the Internet. The connection is through duo-authentication and once connected all works fine. Highly recommending the Microsoft
    Remote Desktop for MAC therefore.
    One small annoying glitch I found was when the MAC goes to sleep or screen shuts off (This happens about in a minute to save battery). Once the screen awakes, the Remote Desktop doesn't seem to be able to restore it state. What I notice is that the screen
    for Remote Desktop is Frozen. MAC is not frozen, its healthy and all the rest of the apps seem to work fine, just this Remote Desktop app isn't. I will have to either kill the process from the command line (terminal) or just exit the Remote Desktop app (well,
    its not frozen, the menus work fine) and restart the process of logging in. 
    Any advise to fix this issue? Or is this a bug and needs fixing? Please ask if you need further from me.
    Thanks
    Madu

    Hi,
    Would you please provide us the log file after you reproduce the issue. Also, please give us the timestamp you put your Mac to Sleep.
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • Finder, web browser & other apps freezes after updating to 10.6.6

    as soon as i've updated from 10.6.4 to 10.6.6 my system has gone significantly slower...off & on finder, web browser etc freezes, although features like "expose" and "show desktop" still works. other than that nothing works which ultimately returns to normal after waiting for certain agonizing minutes.
    If i downgrade back to 10.6.4 through time machine everything runs smooth again...
    ANY GUESSES ??

    For general speeds/unresponsive issues here's what you want to try:
    PRAM/NVRAM Reset: Turn on the computer holding CMD-Option-P-R (Command-Option-P-R) and keep holding until you get a second start up chime (more are perfectly alright)
    Clear the caches: Go to each users home folder by opening up finder. Go into the Library folder and find a folder called Caches. Drag that into the trash. Do it for all users, restart and empty trash (files are still active so you can't delete until restart)
    Then you want to go into Safari on each User and click on the word Safari in the top right hand corner. Go down to Reset Safari and have everything checked but: Reset topsites, clear history, remove other autofill form text, remove passwords
    Shut down your computer, on boot it may be a bit slower because of all the resets it's auto regenerating a bunch of files, but over all your system should be faster

  • Mail.app freezes after restart if left in full screen mode

    Dear all,
    I wanted to ask if this is only me or is a commin issue.
    with Lion if I leave the mail.app in fullscreen and then i reboot (reopen windows at login in - disabled), at the new login the mail.app is still in fullscreen as espected but is completely blocked! no possibility to select any mail or folder....only solution quit and reopen...
    what coudl it be?
    thank in advance for your help
    luca

    5 tabs open in Safari and 15k emails in Mail app. . .  still before upgrading OS X 10.9 its working perfcetly..
    lots of works i can do at the times no more RAM use. . .   in 10.9 RAM using higher.. but still its working Faster.
    Thanks 

  • Apple apps freezes after upgrading to Yosemite

    Dear Apple community,
    I have been running Yosemite (10.10.2) on an iMac 21.5 inch late 2009 model, 2TB HD, 3.06 GHz Intel Core 2 duo with 16Gb RAM for the last 1 month.  No major hiccups.
    Just today I was not able to make any selections on the menu bar and within the window with the mouse/keyboard for apps by Apple, eg. App Store, Mail, Contacts, Calendar, Pages, Numbers and Keynote.  The only way to close the app was by selecting [Quit] for the respective app on the dock.  Occasionally that does not work and only a  [Forced Quit] will do.  Even when in
    Some apps worked flawlessly like iTunes, iPhoto, Safari and non-apple apps e.g. Word, Excel, Skype
    I have done some troubleshooting and carried out the following remedies to no avail:
    1. Resetting the NVRAM
    2. Ran in safe mode
    3. Disk recovery; checking of permissions and disk repair (not much errors there)
    4. Restarted a couple of times (warm and cold)
    5. Tried to restore previous mail via Time-machine but could not even select a folder in Mail to restore.  Time-machine worked for the other 'flawless apps' as mentioned above
    4. Prayed....
    Short of having to reinstall the OS X, anything else I can do?
    Regards,
    Michael

    Try a restart.
    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one.
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account

  • Gaming apps freezes for few seconds , then resumes by itself or crashes sometimes ,after upgrading to iOS 8.3 on iphone 6

    Gaming apps freezes for few seconds , then resumes by itself or crashes sometimes ,after upgrading to iOS 8.3 on iphone 6

    Update: my phone's connecting to the WiFi again. I don't know what did the trick. I did nothing since reinstalling the software. It hadn't worked then, it is now. I tried connecting to my dad's phone's hotspot( he uses a Moto G), and it worked. I then tried connecting to the WiFi at a friend's house, and when I came back home, my phone was able to connect to my WiFi! Is it of any significance that my friend's router doesn't require a password? My issue has been resolved( for now; I hope I'm not counting my chickens before they've hatched). For anyone facing a similar issue, I suggest you try everything I did:
    1. Turn your router off for a minimum of 30 seconds, turn it back on and try connecting.
    2. Click on the WiFi network you are connected to, scroll to the bottom, tap "Renew Lease".
    3. Do a soft and hard reset.
    4. Reset network settings.
    5. Back your data up, erase all content from settings menu, restore from backup.
    6. Reinstall your software( put it in recovery mode).
    I am not sure which of the above worked for me. Make sure you try everything. If none of the above works, take it to a genius bar or an authorised service provider. Good luck! :)

  • Sometimes my screen freeze after unlock my phone . sometimes after open an app the touch screen not respond to my touch...

    help.... i've faced this problem since the windows phone 8.1 updates.... sometimes my screen freeze after unlock my phone . sometimes after open an app the touch screen not respond to my touch... i tried all the ways like turning off wifi etc and still
    no recover my problem , and still screen freezing problems appear on windows phone 10 technical support..... just wish had to cure it... or i was depressing ....

    Hello,
    This is a developer forum and is intended only for discussions of Windows Phone APIs and app development.
    For technical issues regarding usability, updates, or other Windows Phone usability problems you might want to try the Microsoft Mobile Community forums:
    http://answers.microsoft.com/en-us/winphone/forum?tab=Threads
    Thanks,
    James
    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

Maybe you are looking for