Bug 60544 - Dependency Service page orientation only working on iPhone, not iPad
Summary: Dependency Service page orientation only working on iPhone, not iPad
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.5.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-11-06 23:34 UTC by Jordan Barker
Modified: 2017-12-04 20:21 UTC (History)
5 users (show)

Tags: orientation, dependencyservice, ac
Is this bug a regression?: ---
Last known good build:

Sample Project (3.23 MB, application/x-zip-compressed)
2017-11-07 15:49 UTC, Jordan Barker

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 60544 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Jordan Barker 2017-11-06 23:34:24 UTC

When compiling and running a Xamarin.Forms iOS application implementing a dependency service to lock the orientation of a page, iPhone will work and lock the orientation of a page, but on the iPad the screen orientation is not locked.
We are using the dependency describe in the following forum post:  

##Steps to replicate

1). Download attached sample project
2). Compile and run on Mac
3). Run on iPhone simulator
4.) Select "Custom Calculator" button
5.) The screen should automatically flip to landscape
6.) Run on iPad simulator
7.) The screen does not lock in landscape orientation 

##Observed results 

The iPhone simulator works properly and locks the orientation of the screen. The iPad simulator does not lock the orientation of the screen.

##Expected Results

The orientation on the iPhone and iPad would be locked depending on which method was implemented - Portrait or Landscape

##Version information
Microsoft Visual Studio Enterprise 2017 
Version 15.4.1
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Enterprise

Visual C# 2017   00369-60000-00001-AA598
Microsoft Visual C# 2017

Application Insights Tools for Visual Studio Package   8.9.00809.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.0.30925.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services   1.0
Provides languages services for ASP.NET Core Razor.

Mono Debugging for Visual Studio   4.7.4-pre (c2d89eb)
Support for debugging Mono processes with Visual Studio.

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

Xamarin (fe36bec)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.iOS and Xamarin.Mac SDK (9a9f054)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 1 Jordan Barker 2017-11-07 15:49:57 UTC
Created attachment 25586 [details]
Sample Project

In the steps to recreate, select "Next Page" instead of Custom Calculator
Comment 2 Paul DiPietro [MSFT] 2017-11-07 17:36:27 UTC
Will set to confirmed until further investigation can be made.