Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13078

WebView: Pause event fired but resume doesn't fire.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Environment:

      ios 6.0.1 (real device, iPhone 4S).

      Description

      Problem description

      When a webview's website requests location access, an alert message shows up, where the user can either allow or disallow sending location information to the website. This alert causes the "pause" event to be fired, but after closing the alert, no "resume" event is fired.

      Steps to reproduce

      Use the following code; click on the location link in the home page to activate the message.

      app.js

      Ti.App.addEventListener('resume', function() {
      	Ti.API.info('resumed');
      });
       
       
      Ti.App.addEventListener('pause', function() {
      	Ti.API.info('paused');
      });
      	
      var win = Ti.UI.createWindow();
       
      var webview = Ti.UI.createWebView({
      	url: "http://www.google.com"
      });
       
      win.add(webview);
       
      win.open();
      

      Logs

      Log output from the device (through xcode -> organizer -> device console):

      log output

      Feb 19 10:36:44 my-iPhone amfid[1351] <Error>: Feb 19 10:36:44  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
      Feb 19 10:36:44 my-iPhone kernel[0] <Debug>: launchd[1350] Builtin profile: container (sandbox)
      Feb 19 10:36:44 my-iPhone kernel[0] <Debug>: launchd[1350] Container: /private/var/mobile/Applications/0AB3FFB0-AF36-4009-969B-6AF8C2637120 (sandbox)
      Feb 19 10:36:44 my-iPhone my-App[1350] <Warning>: [DEBUG] Reading stylesheet from: /var/mobile/Applications/0AB3FFB0-AF36-4009-969B-6AF8C2637120/my-App.app/stylesheet.plist
      Feb 19 10:36:44 my-iPhone my-App[1350] <Warning>: [INFO] my-App/1.0 (3.0.2.v20130215190201.5a77fe7)
      Feb 19 10:36:44 my-iPhone my-App[1350] <Warning>: [DEBUG] Analytics is enabled = YES
      Feb 19 10:36:44 my-iPhone my-App[1350] <Warning>: [DEBUG] Loading: /var/mobile/Applications/0AB3FFB0-AF36-4009-969B-6AF8C2637120/my-App.app/app.js, Resource: app_js
      Feb 19 10:36:45 my-iPhone backboardd[52] <Warning>: CoreAnimation: updates deferred for too long
      Feb 19 10:36:45 my-iPhone SpringBoard[68] <Warning>: CoreAnimation: failed to receive fence reply: 10004003
      Feb 19 10:36:45 my-iPhone backboardd[52] <Warning>: CoreAnimation: timed out fence 24187
      Feb 19 10:36:45 my-iPhone backboardd[52] <Warning>: CoreAnimation: failed to send fence reply: 10000003
      Feb 19 10:36:45 my-iPhone my-App[1350] <Warning>: [DEBUG] Application booted in 750.191033 ms
      Feb 19 10:36:45 my-iPhone my-App[1350] <Warning>: [DEBUG] New scheme: <NSMutableURLRequest http://www.google.com/>
      Feb 19 10:36:47 my-iPhone my-App[1350] <Warning>: [DEBUG] Firing app event: pause
      Feb 19 10:36:47 my-iPhone my-App[1350] <Warning>: [INFO] paused
      Feb 19 10:36:49 my-iPhone locationd[41] <Notice>: Location icon should now be in state 'Active'
      Feb 19 10:36:49 my-iPhone kbd[57] <Warning>: -[TIXPCDataTransport _handleForPurpose:withReplyBlock:] couldn't get data source for purpose=__TIRDTAB
      Feb 19 10:36:49 my-iPhone backboardd[52] <Warning>: CoreAnimation: timed out fence 22cab
      Feb 19 10:36:49 my-iPhone SpringBoard[68] <Warning>: CoreAnimation: failed to receive fence reply: 10004003
      Feb 19 10:36:49 my-iPhone backboardd[52] <Warning>: CoreAnimation: failed to send fence reply: 10000003
      Feb 19 10:36:50 my-iPhone awdd[1353] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
      Feb 19 10:36:50 my-iPhone awdd[1353] <Error>: CoreLocation: CLClient is deprecated. Will be obsolete soon.
      Feb 19 10:36:51 my-iPhone backboardd[52] <Warning>: CoreAnimation: timed out fence 2445b
      Feb 19 10:36:51 my-iPhone SpringBoard[68] <Warning>: CoreAnimation: failed to receive fence reply: 10004003
      Feb 19 10:36:52 my-iPhone my-App[1350] <Warning>: CoreAnimation: failed to receive fence reply: 10004003
      

      In the middle of the log output, the pause event is fired, but no resume is fired afterwards.

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              fletschge Florian Bühlmann
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15906
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration