How to solve deprecation message on tizen.systeminfo.getCapabilities()

I’m using the tizen.systeminfo.getCapabilities() api on my app to retrieve the property platformVersion that contains the Tizen version that runs on the device.

In my new Samsung TIZEN-B2B-TRUNK2023-PontusML-LFD-HOTFIX-RELEASE_20230810.1 QM43C device I see a deprecation warning message

How can I avoid that message?

I tried using getCapability as suggested in the message but I can’t find a way to retrieve the same information

any idea?

I think the Samsung Developer API Reference is a but clearer

See if that helps

Samsung Developer Relations