Build apk from user input


I’m new to Ionic, Is it possible to build apk by getting values from user ?

For Example : I need to build webview app by accepting values like appname,splash,icon,url from the user , once they click build button from user interface i need to build the app automatically from my server with that details and show download link to download the apk ?

Can you share some ideas ?