App Update in ionic4

Hi i want to show app is having update to user so how can i show this even i tried all the solution and its not working i am using ionic 4 let me know solution

use API to check version and then if version in app < Apiversion, open the pop up dialog update