Ask User To Upgrade

Hello,

I need to check and compare the version of the mobile app built using cordova and the server code using yii framework. How can I do this?