Is it compulsory to distribute mobile apps through google play or apple store?


Hi .this might be the dumbest question yet to appear on the forum but anyways "cant run before walking…"
As you might have seen by this question i am a novice concerning mobile development as i mostly wrote websites in my life…Let’s say i want to build an app that will both be running on web(server ) ios and android(as clients).is there any way to retail the app from the server and handle all concerning payments on the web interface?..:stuck_out_tongue_closed_eyes: i know i look dumb…