Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27453] iOS: Cannot show fullscreen modal windows anymore (8.2.1 regression)

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-10-15T11:07:14.000+0000
Affected Version/sn/a
Fix Version/sRelease 8.2.1
ComponentsiOS
LabelsengSchedule
ReporterHans Knöchel
AssigneeVijay Singh
Created2019-10-08T08:08:02.000+0000
Updated2020-10-05T07:17:51.000+0000

Description

Since TIMOB-27427, we cannot show fullscreen modal windows on iOS anymore (8.2.1 regression). Before, setting the modalStyle to fullscreen made it possible, which doesn't work anymore.

Comments

  1. Satyam Sekhri 2019-10-08

    The issue is reproducible. The modal window with fullscreen modalStyle is shown as formsheet modalStyle. The issue occurs on iOS 13 device. Can use the code below to reproduce:
       var win = Ti.UI.createNavigationWindow({
           window: Ti.UI.createWindow({
               title: "Modal Window",
               backgroundColor:'green'
           })
       });
       
       win.open({
           modal: true,
           modalStyle: Ti.UI.iOS.MODAL_PRESENTATION_FULLSCREEN
       });
       
  2. Vijay Singh 2019-10-08

    PR (master) - https://github.com/appcelerator/titanium_mobile/pull/11267 PR (8_2_X) - https://github.com/appcelerator/titanium_mobile/pull/11268 Test Case -
       var window = Ti.UI.createWindow({ backgroundColor: 'green' });
       var nav = Ti.UI.createNavigationWindow({ window })
       var btn = Ti.UI.createButton({ title: 'Open Next Window' });
        
       btn.addEventListener('click', () => {
         var window2 = Ti.UI.createWindow({ backgroundColor: 'red' });
         window2.open({modal:true})//,  modalStyle: Titanium.UI.iOS.MODAL_PRESENTATION_FULLSCREEN});
       });
        
       window.add(btn);
       //nav.open({ modal: true, forceModal:true});
       nav.open({ modal: true, forceModal:false, modalStyle: Titanium.UI.iOS.MODAL_PRESENTATION_FULLSCREEN});
       
    Note - Please test on iOS < 13 as well.
  3. Satyam Sekhri 2019-10-11

    FR Passed. Modal windows shown properly as per the style.
  4. Sohail Saddique 2019-10-14

    Verified on build 8.2.1.v20191014062741 Waiting on master to be deployed.
  5. Sohail Saddique 2019-10-15

    Verified on build 8.3.0.v20191014114038. Ticked closed.
  6. Marian Kucharcik 2019-11-07

    Hi guys, I use modal window to display login screen, since iOS 13 it’s not fullscreen anymore and can be dismissed by swiping it down. it should be fixed in 8.2.1GA, but it’s not working for me. Is there any workaround? I tried to set modalStyle to any constant(btw modalStyle property is missing in Ti.UI.Window docs), but nothing changed. Thanks
  7. Satyam Sekhri 2019-11-07

    [~max87] the details for modalStyle can be found at http://docs.appcelerator.com/platform/latest/#!/api/openWindowParams-property-modalStyle Also with 8.2.0.GA another property *forceModal* has been added to allow or prevent dismissing the modal window on iOS 13. Check the details at http://docs.appcelerator.com/platform/latest/#!/api/openWindowParams-property-forceModal

JSON Source