Bug 27474 - When using the Facebook component, locale set in app is not respected on first launch. iOS 8 devices only. (Simulator works as expected)
Summary: When using the Facebook component, locale set in app is not respected on firs...
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: N/A
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Israel Soto [MSFT]
Depends on:
Reported: 2015-02-26 15:57 UTC by Jon Goldberger [MSFT]
Modified: 2015-12-21 21:37 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jon Goldberger [MSFT] 2015-02-26 15:57:48 UTC
## Description

I am not sure whether this is a Component issue, a Forms issue, or an XI issue, but since it only seems to occur when using the Facebook component, I am filing it as a bug for that component. Feel free to reassign as need be, of course. 

When launching the attached test project, which has the app's language set as English (US), to an iOS 8 device with the device language set to English (UK), the app initially shows an English (UK) string on first launch. Killing the app and relaunching then shows the English (US) string. Comment out all code for the Facebook component and the issue goes away and the language is shown correctly on first launch.

## Steps to reproduce

1. Download the sample project from the dropbox link in the private comment below.

2. In the iOS Project options, change the iOS Bundle Signing key to one of your own keys and provisioning profiles.

3. Set the language for your iOS 8 device to English (UK)

4. Launch to the app to the iOS 8 device (issue only occurs on device, not simulator)

Expected result: The string "Hello US" will be displayed.

Actual Result: the string "Hello GB" is displayed.

5. Kill and relaunch the app from the device

Expected result: The string "Hello US" will be displayed.

Actual result: As expected. 

## Notes

Try the above after commenting out or deleting all code for the Facebook component, found in AppDelegate.cs lines 35-41 and Main.cs, lines 50-56. Once that code is commented out the issue goes away and "Hello US" is displayed on initial launch of the app.
Comment 3 David Humphreys 2015-12-21 21:37:17 UTC
This issue seems to be resolved in the latest version of the component, though it now only supports Unified.