Native Android

Nearby Stores Android App Code v2.1 – Offers, Events, Multi-Purpose, Restaurant, Market – Subscription & with Admin Panel

NEARBYSTORES is an innovative mobile application and that i .T solution with user-friendly interphase, designed precisely to enable businesses (both old and new start-ups) list/manage their product/services, and allows registered users view and patronize local vendors on the brink of them.

Requirements

Installing Nearby Stores PHP dashboard is an easy process , we will guide you through it .
Before getting started, please make sure your web server meets all the requirements:

  1. PHP Version 5.6+
  2. cURL Extension (enabled on most hosts by default)
  3. MySQL extension (enabled on most hosts by default)
  4. Mod_rewrite enabled

Dashboard Quick Install

Step 1 Deploying the PHP script on a Cpanel

  1. Zip your project , upload it to public_html and Extract it
  2. Enter your host address in the URL to check the access to the web dashboard
  3. If you receive an exception message , go to your PHP selector and check the box that is missing ( like the previous video )

Step 2 Quick install & Database

  1. Go to the installation page [Your URL Host ]/install
  2. Create a new database in MySQL databases ( in cPanel )
  3. You can get the purchase code from this link
  4. Complete the form with the necessary information and hit the finish installation button

Step 3 Final dashboard config

  1. Congratulations, you have completed the installation of web dashboard. you only have some minor changes to do in your dashboard
  2. You have to rename delete or the install folder inside your host directory to avoid any bugs when runing the script
  3. Go to the application section in the lest side bar then upload your logo and set new app name ( Note: this name will be visible only on your dashboard and on delivred email)
  4. Update Firebase , google maps API key ( Note : if you do not have the key yet, take a look at the menu Settings up API Keys )
  5. Important : privacy_policy.html and term_of_uses.html should be completed, you will be asked to mention them when uploading the app from the Play Store

Note : is some cases you may get the following error ” Module ‘sqlite3’ already loaded ” , in order to fix this issue please go your host management tools ( or cpanel) , php manager and uncheck sqlite3 option save and refresh the page .

How to change Landing Page

Using our template :

Go to PHP Script > views > frontend > apex_app_template

“home.php” , 

“incluse/header.php”

“include/footer.php” To change Text,Messages

“[PHP PATH] / views / skin / frontend / apex_app_template / screenshot” to change screenshots

Link the dashboard to another presentation website

First you need to disable the template provided by default , to do that please go to the sidebar Application > Global Configuration > And set the field Enable default front-end to false

Finally, you have to link your template with the dashboard by copying the URL of the dashboard inside a button or link for click redirection

How to enable maps for the dashboard in NearBy Store Apps:

  1. Go to the Google developer console , in the menu choose APIs & Services > Credentials > Create Credentials > API Key
  2. Copy the key, then return to the application restrictions and select HTTP referrers
  3. Go to the section Accept Request from these HTTP referrers and enter your domain url ending with /* to accept all requests from your domain
  4. The final step is to enable the api : Maps SDK for Android ,Places API ,Directions API , Geocoding API , Maps JavaScript API
  5. Congratulation, you have finished the configuration of google maps ,Now get back to your dashboard configuration and paste the key then click save button

Google has recently changed its policy, so to enable Google API in your app you should create a billing account, check this URL 

Google maps not showing after uploading the app to the play store Check Here?

How to manage campaigns via cronjob

Cron is most suitable for scheduling repetitive tasks. Scheduling one-time tasks is often more easily accomplished using the associated at utility.

  1. Go to dashboard sidebar menu > campaigns > campaign config
  2. Set the Max Pushes Allowed Per Campaign Targeting radius ( and Pushes allowed per campaign with crontab for each segment
  3. Go to cpanel > cronJob , copy and paste the cronjob.php path from your dashboard in the command field
  4. Fill in the necessary informations to start the cron job then hit the button add new cron job

How to enable payments gateway in Nearby Shop App

To enable the subscription module in your project you need first to configure the payment gateway such as stripe , paypal and D.Wallet

  • Paypal Setup :
    1. The first thing opens the following link :
    2. Log in to the system and go to the My apps & Credentials menu
    3. Click on the “live” button and add the app name
    4. New Client ID will be generated for your project, copy this ID and return to reality app Payment > Config Payment > check PayPal payment method click save and then past the client ID
    5. You must now perform the same operation for the secret ID, once completed, click on the “Save” button.
    6. Congratulations, you have completed the configuration, close the browser tab.
    7. Set test mode to false when you decided to switch to production
  • Stripe Setup :
    1. Open app dashboard under menu Payment > Config Payment > check stripe payment method click save
    2. Open, create a new project
    3. Copy both publishable key and Secret key, paste them into your project under menu Payment > Config Payment > stripe form
    4. Return to the stripe dashboard, Home page under section Activate your stripe account Click Start Now
    5. Once completed, click on the “Save” button.
    6. Congratulations, you have completed the configuration, close the browser tab.
    7. Set test mode to false when you decided to switch to production
  • Check the myWallet option if you want to allow recurring payment using a Digital wallet.

Note : Digital wallets let you accept recurring payments , you can have funds automatically added from your card to the wallet if there are insufficient funds to pay for subscription renewals .

How to generate released APK for Nearby Shop App:

Commands

  1. Open cmd
  2. cd C:\Program Files\Java\jdk1.8.0_111\bin
  3. keytool -list -v -keystore “C:\[YOUR_PATH]\MY_JKS.jks” -alias myalias
  4. Enter your password

Settings up API Keys

Get Google Admob API keys
We have built-in support for Admob banners on all screens and devices. In order to activate Admob ads inside your app, you need to have an Ad UNIT ID. If you don’t want ads inside your application, you can disable them ( set value to false ) in app_config.xml like this.
To get the app IDs & ad unit IDs click on the link 

After getting the Admob Key update app_config.xml file

  1. First thing, go to the Google developer console , in the menu choose APIs & Services > Credentials > Create Credentials > API Key
  2. Copy the key, then go into application restrictions, select Android Apps
  3. Click the link add package and fingerprint
  4. Before filling in the necessary information, ensure that java is already installed on your pc ( use this command to verify java :> java -version, if it’s not installed go and download it from this URL )
  5. Locate your debug.keystore from this path C:\Users\[SessionName]\.android\debug.keystore
  6. Go in your CMD, open key tool folder C:\Program Files (x86)\Java\jre1.8.0_144\bin\keytool.exe 
  7. then execute this command line: keytool -list -v -keystore “[Debug.Keystore path in the previous step]” -alais androiddebugkey -storepass android -keypass android , now copy the SHA1 value
  8. Return to your google console page and enter the package name of your application and the SHA1
  9. One thing you should do to enable google directions in your mobile app is to create a new key without specifing any restriction ( restricition = none ) copy this key and paste it into the app_config.xml files in this map_direction_api_key
  10. the final step is to enable the API: Google maps android API, Google maps geolocalisation API, Google maps directions API, Google maps geocoding API
  11. congratulation, you have finished the configuration of google maps, now get the key and set it in your app_config.xml file

Leave a Comment