Heroku has no influence on back-end services.
It’s just a way to host your Java/Spring application.
For the mobile app, what matters are the routes of the services provided by the back-end.
If you have your own domain, you can configure it wherever you want (including in Heroku) and then call the services from there.
This way, it doesn’t matter if you use Heroku or your own server. The important thing is that the routes the mobile app requires are correct.
For example:
If you have the domain meudominio.com.br
and that has a back-end user registration service, your mobile app would call a route like:
https://www.meudominio.com.br/usuarios
This does not matter if the back-end is in Heroku or local, as long as your choice is configured correctly.
However, you don’t need a particular domain, but in this case, the route would change depending on the hosting you choose: Heroku will have to provide something like nome-da-sua-app.herokuapp.com
, the location would be an IP, Amazon would have another way and so on.
Of course, it’s much easier for you to upload a Spring Boot application and configure the domain by Heroku than if you want to do it on your own server (unless you have backward knowledge).
perfect ! kkkk
– Samir Silva