Skip to main content

Server and API Configuration

Server URL Setup

  1. Open your admin panel, copy link from URL as shown below

Server URL Admin

  1. In Android code go to lib > helper > utils > constant.dart and paste the URL

Server URL Code

Change Default Country Code For OTP

Go to lib > helper > Constant.dart file. Inside that, the defaultCountryCode variable is available where you have to change country code to your language code.

OTP Country Code

  1. First download the google files from this link: Server Side Deeplink Files
  2. Open both files in any text editor

Deeplink 1

Deeplink 2

  1. After making changes, save both files (Note - Keep the name proper and the same for both files)
  2. Open server > Go to admin panel root folder
  3. You will find a .well-known folder on root directory
  4. If you don't see that folder, enable settings to view hidden files
  5. If you still don't find the files, create a new directory named .well-known (Make sure the name starts with a dot [.])
  6. Add both saved files inside the .well-known folder
  7. In server > admin panel root folder, you will find a .htaccess file. Open it and make changes as needed

Deeplink 3

  1. For further steps, open customer app code in Android Studio

Deeplink 4

Deeplink 5

Change API Parameter

You can change or add API parameters from lib > Helper > String.dart. Here, all list of APIs and API parameters are listed that are used in the app.

API Parameters