One time registration concept in ionic

I need to do one time registration in my application, for this when install my app first time in user device it should ask user to register with their basic details after that only they can use my application. Once the register with their details means it will sent OTP to entered mobile number, so that user can confirm their details with otp.
Currently I’m using the login as whenever the app open for every time passing the device uuid to server and checking whether this uuid registered or not. If not register I will navigate to registration page, If register and not yet verified OTP means navigate to OTP page else I will navigate to main page.
Is there any other way to do this or is this correct way.