Obtain version number

Hi, I’m wondering if it’s possible to get during runtime the values of versionName (in Android) and Bundle version string (in iOS) in order to show in a Label which version has the user installed. I’ve been searching and cannot find the way to do it…

Thank you in advance.

  1. JavaScript and Java Communication using JsbBridge | Cocos Creator.
  2. JavaScript and Objective-C Communication using JsbBridge | Cocos Creator. you can refer to the links.