Hi There,
I'm starting to migrate development from web app to .net (C#), and right now the issue I'm facing is how to keep the screen on.
please note that this is development for a tizen wearable with version 4. - Is there a wearable with v5 yet? -
Anyway, on web applications I used
tizen.power.request("SCREEN", "SCREEN_NORMAL");
on .net the equivalent would be
Tizen.System.Power.RequestLock(PowerLock.DisplayNormal,0);
but this is for API Version 5. and if (as expected, I guess) on my tizen-manifest.xml the Api version is set to 5 I am unable to deploy the tpk on the wearable( that has tizen 4). If I set the version to 4, and play around with the NuGet dependencies. so it actually compiles the tizen v5 code for a tizen v4 app, on runtime the app crashes and I get the error:
I/DOTNET_LAUNCHER(27268): Unhandled Exception:
I/DOTNET_LAUNCHER(27268): System.MissingMethodException: Method not found: 'Void Tizen.System.Power.RequestLock(Tizen.System.PowerLock, Int32)'.
in conclusion:
what can I do to keep the screen on on a .NET C# app on a tizen 4 wearable?
Thanks!