I've been working on a project where I need an app I made to be able to get scripts to run on my Raspberry Pi. The problem is I need it to work so that if anyone had the app and my pre-configured Pi they could get the scripts to run.
So far the best way I've come up with to do this is to get the Pi to run a script when it's powered on so that it creates its own wireless network, which the user can then connect to on their phone. Now that they are on the same network, the user can give the app their wifi name and password which can be sent to the Pi over SSH. The Pi can then login to the user's home wifi network and the user can reconnect to it on their phone. At this point, the Pi can start up an Apache web server which can accept requests from the app and run the scripts on the Pi.
This way seems overly-complicated to me, and if there's any easier way to just get the app to send requests to the Pi without having to plug in a keyboard and monitor into the Pi (bluetooth?), then I'd really appreciate it if you could help me.