Get Started

Thank you for purchasing our app

Please read the documentation carefully , and if you have any question check us . Most pages are accompanied by a video tutorial , it's recommended to check both , the video and the written Documentation .

Must Read this:

After purchase if you run the project and test the build in phone it will not work becuase you have to setup the Web API first then app will be works fine.

Web API is in PHP 7.0 and it will work on any kind of hosting packages

Android Configration

In order to start configuring , you need to install Android studio and the 'Java SE Development Kit'. First download the android studio from here Android Studio

SDK Manager

The installer , as also shown in the video should automatically download and install all required components . if you want to do manual setup , download at least the following components using the SDK manager

  • SDK tools
  • SDK platform Tools
  • SDK Build Tools
  • Google Play Services
  • Android Support Library
  • Google Repository
  • Google USB Driver

You can download these SDK , if not installed already , using the SDK manager SDK Manager After you're done, you can open Android Studio and continue.

Importing Android Project

To import the template, simply open Android Studio and import/open the template. Make sure to wait for all the processes (the Gradle Build) to complete before continuing to the next step



Addition steps

Addition steps Sometimes, the Gradle Build fails. In some cases additional components are needed, Android Studio will ask you to do download these additional SDK components in the 'messages' tab, simply follow the instructions provided to install and download the additional components.

Change Bundle ID

Change App Name

Above is illustrated how you can change the name of the application.

Change Color Scheme

Above is illustrated how you can change the Colors of the application.

You can change your apps colors to create a custom look. The primary color is the color of the Toolbar, some buttons and headers. The primary dark color is used for e.g. the status bar. get more color from here material.io

Change Theme of Application

Above is illustrated how you can change the Theme of the application.

Change App icon

Now we need to put a png file with your icon named 'ic_launcher.png' in the following folders:

  • res/drawable-mdpi - with a size of 48px x 48px
  • res/drawable-hdpi - with a size of 72px x 72px
  • res/drawable-xhdpi - with a size of 96px x 96px
  • res/drawable-xxhdpi - with a size of 144px x 144px

this URL will help you resize your images or event create new icon to your app Launcher Icon Generator

Firebase Configuring

Change Firebase Db Rules

Debug and release Key

Before going to next you have to learn about the Sh1 key for both debug and release. if you are in the development mode then you will use the debug sh1 key but when you going to publish the app on playstore then you will have to use the sh1 key of Release key

Debug Key

Signed or release key

To get realese sh1 contains two step.

Step1: you will generate your own app signing key

Step2: Get the Sh1 key of app signing key

Step 1: Create your own app signing key

Create signing key

Step 2: Get the Sh1 key. Run the below command on Command Promt

keytool.exe -list -v -alias {alies name you set according to above toturial "key0" is the alies name} -keystore "{file adress of the key}" -storepass {password} -keypass {password}

Also mention all the things in video and screenshorts


Google Map Configration

Make sure you have add the firebase firbase first then you project on Google Api console will automatically show, means you don't need to create the project on Google api console if you created the firebase project

Facebook Login

You have to follow the steps

Here is the Helping video for setup facebook login

Step 1

Go to "facebook Developer" the link is given developers.facebook.com and Create a new app

Step 2

Go to "facebook Developer" the link is given developers.facebook.com and Create a new app

Step 3

Then Go in Setting > Basic Fill privacy policy and application nature/cateogry and press save

Step 4

Then Go in Setting > Basic Add development palatform

Step 5

Then Go in Setting > Basic > development palatform Select Android

Step 6

Follow screenshort

Step 7

Follow screenshort

Step 8

Follow screenshort

Step 9

Copy APP ID Follow screenshort

Step 10

Follow screenshort

Step 11

Copy APP ID & APP Secret Follow screenshort

Step 12

Follow screenshort

Below related to Step 5

Package Name is com.dinosoftlabs.Foodies

Default Activity Class Name com.dinosoftlabs.Foodies.Accounts.Login_A

Give the App Id and App secret in firebase Authuntication

Step 13

Generate KeyHash Follow screenshort

Step 14

Follow screenshort

Google Login Configration

Here is the Helping video for setup google login

Step 1

Step 2

Step 3

Step 4

After publish app on Google Play Store

If your app is publish into the playstore then you have to make a seprate google auth client id.

the ways of gmail release key same like as we create for debug. The only difference is in release mode we get and use SH1 key from google playstore and create a new OAuth client Id

Hide Any Social Media Button

If you want to disable facebook login

if you want to disable facebook or google login button you have to hide the mentioned View/Button just add android:visibility="gone"

Web API Configration

installing Foodies PHP API is an easy process and we will guide you through it .

Before getting started, please make sure your web server meets all the requirements:

  • PHP Version 7.0
  • cURL Extension (enabled on most hosts by default)
  • MySQL extension (enabled on most hosts by default)

Follow the following steps in video

Step 1

Deploying the PHP Application on a Remote Web Server

  • Zip your project (mobileapp_api) folder and upload it to public_html and Extract it Now your directory should look like this
  • Enter your host address to check the access to the web app eg. http://domain.com/mobileapp_api

Step 2

2 Quick install & Database

  • Go to the installation page [Your URL Host ]/install
  • Create Database in mysql databases ( in cPanel )
  • Import sql file in your database by going into phpmyadmin
  • Add your database credentials in /app/Lib/Variables.php

Step 3

Final configuation

  • Congratulations, you have completed the installation of the Mobile API.

Step 4

You need following api keys for third party libaries to work.

  • Google Maps api keys- This key will be used for the geocoding and other google services.
  • Firebase Push Notification- This key will be used to generate Push Notification.
  • Twilio - You need twilio api keys for OTP.(It is a unique 6-character code that can only be used once and is sent only to your registered mobile number)
  • PostMark - It is for sending emails

Note: All the steps mentioned above is explained in the above video clearly. Please go through the video and follow the steps.


Step 5 (Important)

Setup API Keys , Get Google Maps Api keys Console Cloud Google Make sure to enable this API in Android and in PHP

  • Google Maps Geo localisation
  • Google Maps Places
  • Google Maps Direction
  • Google Maps Geocoding

Next set the new keys in Variables.php file located in /app/Lib/Variables.php

Step 6 (Important)

Setup Firebase Push Notification

Follow instructions OR Video:

  • you need to create your project first Console Firebase Google
  • You can find the API KEY in: (gear-next-to-project-name) > Project Settings > Cloud Messaging

Server Key is the API key

Next set the new keys in Variables.php file located in /app/Lib/Variables.php

Step 7 (Important)

Get twilio keys by Create an account on twilio and buy a number as well for the Programmable SMS You can find the API KEY and auth token in: twilio.com

Copy the acount id, auth token and mobile number which twilio has provided you and set in Variables.php file located in /app/Lib/Variables.php

Step 8 (Important)

Sending Emails to Create an account here postmarkapp.com & Copy the server key

Next set the new keys in Variables.php file located in /app/Lib/Variables.php

Step 9 (Important)

For getting payments you have to setup stripe follow screenshort

Change/Setup Country

You have to delete the table "tax" in from database follow the screenshort

After that you have to add tax info from your admin panel where you will see list of countries , you can select in which you want to setup follow the animiated picture you will see look like this


Note if you are using our demo database you have to follow this step for avoid app crash


after add tax you have to see whats the tax id that you added from tax page and just replace that tax id in resturent table

Super Portal Configration

  • Edit the file "admin/config.php" and update api link follow screenshort

How to configure chat in admin panel

Edit "admin/chat.php" and configration

Now open admin panel through your domain http://domain.com/admin and use login admin@admin.com and password is 123456

Rider Portal Configration

  • Edit the file "rider/config.php" and update api link follow screenshort
  • $baseurl should be http://yourdomian.com/mobileapp_api/publicSite
  • image_baseurl should be http://yourdomian.com/mobileapp_api

Now open rider panel through your domain http://domain.com/rider and use login rider@dinosoftlabs.com and password is 123456

Restaurants Portal Configration

  • Edit the file "restaurant/config.php" and update api link follow screenshort

Now open restaurant panel through your domain http://domain.com/restaurant and use login its scoma@gmail.com 123456 and password is 123456

Note: Dont change the folder names

Thank you & Support

I'd like to thank you again for your purchase and I hope you where able to successfully install the app and using it in your future business . If you need support or have some questions. You can visit our support resources here at hello@dinosoftlabs.com

What support does include
  • Answers to (technical) questions about the item's features
  • Assistance with reported bugs and issues
  • Answers to questions about importing and setting up the item as is described in the docs.
Please note that support does not include:
  • Customization & adding new features
  • Installation Services
  • Support for 3rd party software and/or plugins
  • Content related rejections and violations from Google

FAQ

App Develope in native or not?

Yes app is in native coding

Which PHP version?

it will work on PHP 7.0

Which Database You are using?

We are using mysql database

Does Demo Data included (Demo data like on our app)?

Yes Test/Demo Data are inlucded in the package

Does it have 3rd party services?

Yes We are using these Thrid party services listed below

  • Google maps
  • Twillio
  • PostMark (email server)
  • Stripe Payment Gatway
  • Firebase It has Firebase Thrid party for real time chat and send push notifications, Which is free but limited , after lot of users and usages you have to buy their packages there are have 3 packages Free , $25 monthly , Pay As you go See Firebase packages

Does it have Admin panel

Yes It has Three (Super portal , Rider , Restaurants) as well which is in HTML/CSS and connected with datbase via PHP API

Does it have Documentation

Yes it has Documentaion about android , web api setup , admin panel setup , firebase push notification setup

Which framework we are using for API

We are using cakePHP 2.7.8

Does it support other languages (RTL)

No its only support English language

API/Server/3rd party services setup will be free?

No we will not do any help to setup API/server/3rd party services

Do you provide customization?

Yes we do but there will be an extra cost , contact us on our email hello@dinosoftlabs.com

What it means when you see white page by going to this url http://domain.com/mobileapp_api/

If you see white page please make sure that your php version should be 7.0. you can change php version 7.0 by going into your hosting cpanel