[TIMOB-27839] Orientationchange Stops Firing on iPadOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2020-05-07T11:57:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 9.0.2 |
Components | n/a |
Labels | ios, ipad |
Reporter | Donovan Lewis |
Assignee | Vijay Singh |
Created | 2020-04-09T19:16:40.000+0000 |
Updated | 2020-05-07T11:57:44.000+0000 |
Description
When using Titanium SDK, 8.3.0, 8.3.1 or 9.0.0 Orientationchange will stop firing on iPadOS after a short time. Using the example code below you can open the app in the simulator or on device and rotate after a few rotations the event will stop firing, the label and console log will stop changing. Going home, and reopening the app often makes the issue happen right away. A screen recording of the issue can be found here: https://streamable.com/j7m95u
var win = Ti.UI.createWindow({
backgroundColor: 'white',
});
var label = Ti.UI.createLabel({
text: 'Height: 0, Count: 0',
textAlign: 'center'
})
var rotateCount = 0;
Ti.Gesture.addEventListener('orientationchange', function (e) {
console.log('Height: ' + Ti.Platform.displayCaps.platformHeight);
rotateCount++;
label.text = 'Height: ' + Ti.Platform.displayCaps.platformHeight + ', Count: ' + rotateCount;
});
win.add(label);
win.open();
Someone noticed this issue many versions ago but didn't seem to create an issue here in Jira. https://stackoverflow.com/questions/58167424/titanium-orientationchange-event-does-not-fire Seemed to break after 8.1.0.
"location" event of Ti.Geolocation is also not firing in iOS 13.x . In iOS < 13.0 it is working fine. See the test case -
Thats a great one to be missing also. I had not noticed it but I will double check in my app as well.
PR(master) - https://github.com/appcelerator/titanium_mobile/pull/11643 PR (9_0_X) - https://github.com/appcelerator/titanium_mobile/pull/11648
FR passed, Waiting on Jenkins build for Master and 9_0_X.
merged to master for 9.1.0 target and 9_0_X for 9.0.2 target