Mobile App Setup
Last updated
Was this helpful?
Last updated
Was this helpful?
This shows how to set up a local development environment for the D.T. Mobile App and contains more information about the environment than this guide.
However, the uses Docker for the local Wordpress server and executes the mobile app setup slightly differently. There are links in the steps below to pertinent sections in the video, although they are not necessarily in the same order.
Where the details differ please follow these instructions instead.
Download the latest mobile app plugin zip file, and install the plugin, by following these instructions:
Changes need to be made to the Wordpress configuration for the mobile app to connect to it.
If you are using LocalWP Setup, then there are two choices: Local Live Link address, or change the D.T site’s domain to an address reachable from your mobile device. The latter is the only choice if you are using Docker
Enable ngrok.io Live Link from the centre of the bottom line of the D.T’s Local Sites in the Local app.
“Enable” button’s text will change to “Copy”
Transfer address to mobile device – it will look like: http://0f0f0f0f0f0f.ngrok.io
Warning: With Docker, if your local Wordpress site has NOT been setup to use http (i.e. NOT https) then you will need to reinitialize it.
Adding “—volumes” to docker-compose down will remove your previous configuration
Discover the IP address of your local server
There are multiple commands to do this, and your computer may have multiple network interfaces and it will depend if it uses a wired or wireless connection.
The address would likely be of the form “192.168.1.2” (as an example)
On Linux you can use: ifconfig
On Windows you can use: ipconfig
If you are using LocalWP,
In the D.T’s Local Sites in the Local app, change the Site Domain to your IP address
If you are using Docker,
login to wp-admin and go to Settings > General and update the WordPress and Site Addresses to your servers IP address.
As examples, if your address is 192.168.1.2
and no port number, then:
WordPress Address (URL): http://192.168.1.2
Site Address (URL): http://192.168.1.2
Your local copy of DT does not have the correct https certificates so the mobile app will not be able to connect to it. To work around this, use the http connection instead.
NOTE: The app code is able to connect to the official demo server if you have an account, but will no longer be able to after these changes.
For Windows: These are Linux commands. You will need execute these commands from the git bash shell, or another Linux shell
From within the disciple-tools-mobile-app folder:
WARNING: Do not include these changes with any pull requests to the main repository! They will be rejected.
Use NPM to install expo:
Create an account if you do not have one (You do not have to create a project)
Install the Expo client on your mobile device (iOS or Android app stores)
From within the disciple-tools-mobile-app cloned folder install project dependencies based on the package.json file
Use the NPM install command:
This may take a while
Use the NPM start command:
Wait for the GUI to display a QR code and then on your mobile device:
Again, this may take a while
From iOS: take picture of QR code
From Android: launch Expo app and take a picture of the QR code.
Wait for the DT android app to start and ask for you to connect to the server.
This may a while as well, but the main Expo GUI will provide a status, as will the terminal you started it on.
Go to and repeat the configuration steps from
NOTE: This shows the basic procedure.
Clone the development or master branch of to the folder where you want the source code to be stored.
This goes into much more detail.
This is shown in this .
See
Expo requires NPM to be installed. Download and setup from
This is shown in this
Log into the mobile app using the local DT Wordpress server ip address you set the server to .
NOTE: The end of Part 5 as well as part 6 of the give additional information about using the mobile development environment:
shows you what is happening on the phone while this is taking place: