Fullscreen - can't change window type on launch

Hi,

Having a weird issue. Initially published my app to launch full screen but wanted to change it to launch in a window so have changed the settings in the build.settings file but it’s still launching full screen.

Is there some kind of a setting / equivalent of a “cookie” that is set somewhere by the app the first time it launches that I need to delete to allow it to launch with the new mode?

I can’t find anything about this and whatever I do it still launches full screen.

Any ideas?

Thanks,

Ian

What’s happening is that the desktop window is remembering/restoring its last position and mode.

You can clear your app’s last cached settings by deleting the following file…

   C:\Users\<UserName>\AppData\Local\<CompanyName>\<AppName>.system\CoronaPreferences.sqlite

Notes for the above:

  • <UserName> is your Windows login name.
  • <CompanyName> and <AppName> are the names you’ve entered into the Win32 build dialog.

Alternatively, in your “main.lua” file, you can detect if your app was launched in fullscreen mode and then change it back to normal windowed mode.  This is probably your best option if your app has already been deployed to your customers.  Just note that your app is still technically launching at fullscreen and then quickly changing mode immediately afterwards, which will trigger a “resize” event.

if (system.getInfo("platformName") == "Win") then if (system.getInfo("environment") == "device") then if (native.getProperty("windowMode") == "fullscreen") then native.setProperty("windowMode", "normal") end end end

I hope this helps!

Thanks. Much appreciated. Worked like a charm.

What’s happening is that the desktop window is remembering/restoring its last position and mode.

You can clear your app’s last cached settings by deleting the following file…

   C:\Users\<UserName>\AppData\Local\<CompanyName>\<AppName>.system\CoronaPreferences.sqlite

Notes for the above:

  • <UserName> is your Windows login name.
  • <CompanyName> and <AppName> are the names you’ve entered into the Win32 build dialog.

Alternatively, in your “main.lua” file, you can detect if your app was launched in fullscreen mode and then change it back to normal windowed mode.  This is probably your best option if your app has already been deployed to your customers.  Just note that your app is still technically launching at fullscreen and then quickly changing mode immediately afterwards, which will trigger a “resize” event.

if (system.getInfo("platformName") == "Win") then if (system.getInfo("environment") == "device") then if (native.getProperty("windowMode") == "fullscreen") then native.setProperty("windowMode", "normal") end end end

I hope this helps!

Thanks. Much appreciated. Worked like a charm.