Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13078] WebView: Pause event fired but resume doesn't fire.

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-06-20T20:40:21.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsevents, location, pause, webview
ReporterFlorian Bühlmann
AssigneeEric Merriman
Created2013-02-19T09:44:29.000+0000
Updated2017-06-20T20:40:21.000+0000

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.
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):
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

FileDateSize
IMG_0043.PNG2013-02-19T09:44:29.000+0000276314

Comments

  1. Lee Morris 2017-06-20

    I am unable to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source