Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23548] iOS: Orientation issue when open the share dialog.

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionNot Our Bug
Resolution Date2016-09-24T22:25:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsandroid, ios
ReporterYashvant Revandkar
AssigneeEric Merriman
Created2016-06-17T14:11:52.000+0000
Updated2017-03-22T21:55:57.000+0000

Description

Faced orientation issue on Android as well as iOS device when we open the share dialog in the application. I have created an application to share a text message with friends, using applications installed on the device. I have locked the application's orientation to portrait from tiapp.xml as well as a set the orientationModes of the window to [Ti. UI. PORTRAIT]. I have tried setting the screenOrientation for Android as a "portrait" as well as "nosensor", but none of them work. Facing orientation issue only after opening the share dialog. For Android device, I have used intent to share text and for IOS device, I have used module to share text. I have also created a native IOS application and did not face this issue in a native application. Let me know your feedback on this issue.

Attachments

FileDateSize
applicationToShareText.zip2016-06-20T10:53:43.000+0000621610
Share_text.png2016-06-17T14:06:03.000+000051766
shareText_Android_Device.png2016-06-20T08:18:35.000+000069248
shareText_IOS.png2016-06-20T11:05:21.000+000053381

Comments

  1. Sharif AbuDarda 2016-06-17

    Hello, Thanks for creating the ticket. Please provide a full reproducible code that successfully generate the issue in both platforms. We will test the issue in our environment and when we are able to regenerate, I will escalate the ticket for our engineers for a bug fix. So, we need a reproducible test case. Please provides a minimal sample code that only generates the issue. Also, a list of steps to follow for successful regeneration. Regards, Sharif.
  2. Yashvant Revandkar 2016-06-20

    I have removed assets from the application.
  3. Yashvant Revandkar 2016-06-20

    Hi Sharif, Attaching the Appcelerator project to share a text. Steps to follow: * Enter a text in the textfield. * Click on "share text" button. * Rotate the device to the landscape mode. For Android device, the issue occurs when we open an application which does not occupy the entire display and rotate the device to the landscape mode.
  4. Sharif AbuDarda 2016-06-20

    Hello, Looks like you are using an old SDK. We have the latest GA release on SDK 5.3.0 GA. I have tested your sample app in Android platform with that said SDK. I wasn't able to reproduce the issue. I have tested in Android 4.4.2 device. I have screenshots of my test. 1. [Screenshot 1](https://postimg.org/image/s76lk5xlz/). 2. [Screenshot 2](https://postimg.org/image/5808q3vjb/) I would recommend updating your SDK to the latest GA release.
  5. Yashvant Revandkar 2016-06-21

    Hi Sharif, I tried with SDK 5.3.0 GA. And facing the same issue on 5.3.0 GA. For Android device, facing the issue for those applications which does not occupy the entire screen. If we rotate the device after opening an application which does not occupy the entire screen, then our application in the background also goes to landscape mode.
  6. Yashvant Revandkar 2016-06-21

    My main concern is for the IOS application as issue can be easily reproducible on IOS device. Can you please update me about the issue in IOS application?
  7. Sharif AbuDarda 2016-06-21

    Hello, I have tested it on iOS with the latest SDK. The issue looks to be happening for iOS. This is a valid bug for iOS. My environment info: SDK: 5.3.0.GA , Appcelerator Command-Line Interface, version 5.3.0 , iPod 5G (9.2). 1. [Screenshot](https://s32.postimg.org/p7sch4rhx/IMG_0293.jpg) 2. [Screenshot](https://s31.postimg.org/r8szpq8nf/IMG_0292.jpg) Moving the ticket to engineering. Regards, Sharif.
  8. Angel Petkov 2016-07-15

    [~yashrevandkar] Hello, was this working with any previous versions of the SDK? Since this isn't a [module](https://github.com/VincentWenShuo/ti-module-share) created or maintained by Appcelerator, if the problem lays within the module you will need to contact the module creator.
  9. Yashvant Revandkar 2016-07-26

    Hi, To check if the problem lies within the module, I have created an IOS module and still facing the same orientation issue. When I created an IOS application with the same code, it is working fine and not facing such orientation issue in IOS application.
  10. Hans Knöchel 2016-09-24

    Resolving as Not Our Bug for now, since the orientation problems are obviously caused by the thirdparty-module around [this line](https://github.com/VincentWenShuo/ti-module-share/blob/master/Classes/MaCarTiModuleShareModule.m#L194), because the created view controller does not check the orientation before being presented. The module vendor needs to take care of the issue.
  11. Lee Morris 2017-03-22

    Closing ticket as the issue mentioned here is not our bug.

JSON Source