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

Setting Screen.orientation to ScreenOrientation.Portrait or ScreenOrientation.LandscapeLeft breaks the authorization view #12

Open
brianchasalow opened this issue Sep 28, 2017 · 2 comments

Comments

@brianchasalow
Copy link

I made a demo scene here, built to device that demonstrates the issue. tested on Unity 2017.1.0p5, and the latest twitterkit + twittercore built from a podfile. If you ever change the Screen.orientation to Portrait or LandscapeLeft, it will permanently break the authorization view. I'm using iOS 11.

brianchasalow@017ff20

Open TwitterDemo.unity, add your twitter api key / secret, add an icon, copy the twitterCore library into the project, set minimum device target to iOS 9.0, set provisioning profile and build/run to device.

@adamc01
Copy link
Contributor

adamc01 commented Oct 6, 2017

I don't see where you are calling your set orientation methods in your example.
In the original Twitter Kit Demo, I added

	void Start ()
	{
		Screen.orientation = ScreenOrientation.LandscapeLeft;
	}

and the game started in landscape mode and loaded the login fine in landscape mode too and was able to rotate back and forth.

@brianchasalow
Copy link
Author

check out TwitterDemo.cs - i call those methods in the TwitterDemo.unity scene that I modified in my branch to have UI canvas buttons that change the orientation. it def breaks 100% of the time in my repro, for some unknown reason.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants