Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] PreferredStatusBarStyle is not called inside PageRenderers when using the Shell #14246

Closed
knasher opened this issue May 5, 2021 · 0 comments · Fixed by #14247
Closed

Comments

@knasher
Copy link
Contributor

knasher commented May 5, 2021

Description

When using the Shell the PreferredStatusBarStyle method is not called in an iOS PageRenderer and therefore the colour of the status bar text cannot be changed on devices using latest OS.

Steps to Reproduce

  1. Create Shell Forms app
  2. Add a least two child pages
  3. Create PageRenderer in iOS for the second page
  4. Override method PreferredStatusBarStyle to return different style to default specified in info.plist
  5. Place a breakpoint on the method you just created
  6. Run the app and view the second page

Expected Behavior

Breakpoint is hit and on continuation the colour of the status bar text on iOS changes from the default colour specified in info.plist

Actual Behavior

The breakpoint is not hit

Basic Information

  • Version with issue: 5.0.0.2012
  • Last known good version: Unknown
  • Platform Target Frameworks:
    • iOS: 14.5
  • NuGet Packages:
  • Affected Devices: Simulator/Hardware

Environment

Show/Hide Visual Studio info
=== Visual Studio Professional 2019 for Mac ===

Version 8.9.8 (build 7)
Installation UUID: e8aebc75-fa53-4e35-84db-80d885788bd0
	GTK+ 2.24.23 (Raleigh theme)
	Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)

	Package version: 612000125

=== Mono Framework MDK ===

Runtime:
	Mono 6.12.0.125 (2020-02/8c552e98bd6) (64-bit)
	Package version: 612000125

=== Roslyn (Language Service) ===

3.9.0-6.21152.10+c10f884b30737542ddd84ca889a4aad9281ce210

=== NuGet ===

Version: 5.8.0.6860

=== .NET Core SDK ===

SDK: /usr/local/share/dotnet/sdk/5.0.202/Sdks
SDK Versions:
	5.0.202
	5.0.201
	5.0.103
	5.0.102
	5.0.101
	3.1.408
	3.1.407
	3.1.406
	3.1.405
	3.1.404
MSBuild SDKs: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Sdks

=== .NET Core Runtime ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
	5.0.5
	5.0.4
	5.0.3
	5.0.2
	5.0.1
	3.1.14
	3.1.13
	3.1.12
	3.1.11
	3.1.10

=== .NET Core 3.1 SDK ===

SDK: 3.1.408

=== Xamarin.Profiler ===

Version: 1.6.15.68
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Version: 11

=== Apple Developer Tools ===

Xcode 12.5 (18205)
Build 12E262

=== Xamarin.Mac ===

Version: 7.10.0.5 (Visual Studio Professional)
Hash: ab40b131d
Branch: xcode12.5
Build date: 2021-04-22 08:56:41-0400

=== Xamarin.iOS ===

Version: 14.16.0.5 (Visual Studio Professional)
Hash: ab40b131d
Branch: xcode12.5
Build date: 2021-04-22 08:56:42-0400

=== Xamarin Designer ===

Version: 16.9.0.324
Hash: b1e216c75
Branch: remotes/origin/d16-9
Build date: 2021-04-16 00:02:50 UTC

=== Xamarin.Android ===

Version: 11.2.2.1 (Visual Studio Professional)
Commit: xamarin-android/d16-9/877f572
Android SDK: /Users/davenash/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		None installed

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 30.0.4
SDK Build Tools Version: 30.0.2

Build Information: 
Mono: 5e9cb6d
Java.Interop: xamarin/java.interop/d16-9@54f8c24
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.34.1@daff8f4
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-9@d210f11

=== Microsoft OpenJDK for Mobile ===

Java SDK: /Users/davenash/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android SDK Manager ===

Version: 16.9.0.22
Hash: a391de2
Branch: remotes/origin/dev/bretjohn/readme-tweak~3
Build date: 2021-04-21 21:23:40 UTC

=== Android Device Manager ===

Version: 16.9.0.17
Hash: fc2b3db
Branch: remotes/origin/dev/jmt/d16-9bump~1
Build date: 2021-04-21 21:23:58 UTC

=== Build Information ===

Release ID: 809080007
Git revision: 85b793ce322599fe423c2d233c346b13824ca4d8
Build date: 2021-04-28 12:54:34-04
Build branch: release-8.9
Xamarin extensions: 85b793ce322599fe423c2d233c346b13824ca4d8

=== Operating System ===

Mac OS X 10.16.0
Darwin 20.3.0 Darwin Kernel Version 20.3.0
    Thu Jan 21 00:07:06 PST 2021
    root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64

Workaround

I have been working on a fix and will create a separate PR and will link this issue.

@knasher knasher added s/unverified New report that has yet to be verified t/bug 🐛 labels May 5, 2021
@jsuarezruiz jsuarezruiz added this to New in Triage via automation May 6, 2021
@jsuarezruiz jsuarezruiz moved this from New to Needs Estimate in Triage May 6, 2021
@jsuarezruiz jsuarezruiz removed the s/unverified New report that has yet to be verified label May 6, 2021
Triage automation moved this from Needs Estimate to Closed Jan 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Triage
  
Closed
Development

Successfully merging a pull request may close this issue.

2 participants