Deactivating portrait mode does nothing on iOS
Even when I had portrait mode deactivated in settings the game still starts with portrait mode. The only way to enter landscape mode is to open the game with the device in landscape mode already.
Actually, I found it can only launch in portrait mode on iOS 16 when you holding the phone vertically.
but in the same scene, it will launch in landscape mode on iOS 15.
But I tried search things on repos of SDL2 and love2d, didn't found anything
maybe this commit fixed this issue: https://github.com/libsdl-org/SDL/commit/70656b133c89c614422130b6c7e0a52cdccc6d4f#diff-de1e3f37ab58f8229cf963eff7070fde81645400705c9f34aff43d9a84af9418
When I tried to use a simple demo to reproduce, it just behaves good both on iOS 15 and iOS 16.

ios related source code are the same.
getWidth and getHeight return right value on demo, but error value in Techmino

Actually, I found it can only launch in portrait mode on iOS 16 when you holding the phone vertically.
but in the same scene, it will launch in landscape mode on iOS 15.
![]()
But I tried search things on repos of SDL2 and love2d, didn't found anything
maybe this commit fixed this issue: libsdl-org/SDL@70656b1#diff-de1e3f37ab58f8229cf963eff7070fde81645400705c9f34aff43d9a84af9418
What's your love2d revision? Techmino iOS uses c35356c, see here
not relevant with the version of love2d I'm using, if you download from the App Store then you will meet the same problem.
not relevant with the version of love2d I'm using, if you download from the App Store then you will meet the same problem.
It seems this issue love-android #196 happens on iOS16 again. You can try these configs in love.conf():
t.window.width,t.window.height=1280,720
t.window.fullscreen=true
t.window.resizeable=false
This should be temporarily fixed by removing the W.fullscreen config in conf.lua #862
tested ci-ios-test branch, works well.
![]()
tested
ci-ios-testbranch, works well.
Could you test these configs on your simple demo? We currently don't have a mac to simulate iOS 15 devices.
not relevant with the version of love2d I'm using, if you download from the App Store then you will meet the same problem.
It seems this issue love-android #196 happens on iOS16 again. You can try these configs in love.conf():
t.window.width,t.window.height=1280,720 t.window.fullscreen=true t.window.resizeable=false
These configs should make your demo launch in landscape mode on iOS 15, but in portrait mode on iOS 16
Ok, I will try it now.
both launched in landscape mode
That's weird...
But ci-ios-test branch actually worked, and works on my real device(ios 16.3) too.
https://gist.github.com/bytemain/0e4e93e4cc195c9c744518583005fc4b
demo which I used for testing
In Techmino's conf.lua, this would cause portrait on iOS 16. I'll try your main.lua
https://gist.github.com/bytemain/0e4e93e4cc195c9c744518583005fc4b
demo which I used for testing
You haven't tried using conf.lua? Wiki said it woudn't work if defined in main.lua.

Try newest code in ci-ios-test, it would cause demo launch in portrait mode on iOS 16.
It uses a conf.lua with demo main.lua
oh I forget it, let me try again
This is newest build on ci-ios-test
You are right.
Okay, fullscreen config affects orientation again. so this should be an upstream issue of Love, I'll report an issue to them
`da code
Frequency Incremental
Update!!!
Hz Meter: 0 Hz
Notice: It Got Improved. So Don't Mess The Code.
`