Themes Coder Ecommerce SolutionsDocs
Getting started

Ionic app installation

This chapter covers Facebook Login, Onesignal Notification, Google Login, Google Map Integration and Ionic Installation.

Ionic Installation#

Make Sure to complete this setup before the compiling process for application

Open the folder name Source Code inside the downloaded package.

Now open folder/src/services/config/config.service.ts file and change the following.

You can get the credentials from Admin panel -> Setting (Application) -> Application API it will be the URL of your domain. It will load CMS products data into your application.

  • Go to Admin Panel > Settings(Application) > Application API
  • Click Generate to create your Key and Secret.
  • Copy your App Key and App Secret.
  • Place this key in your config.service.ts file.

⦁ Place this consumer key & Secret in your project folder/src/services/config.service.ts file

save this file.

Test Application

open Terminal and go to a directory where is your app. You can use following command to go to different directory.

  • cd project folder

Then Run command

  • npm install
  • ionic serve

Note: Please Add CORS extension for browser if you browser shows warning when app is served sucessfully on browser.

Facebook Login#

This allows you to log in through your Facebook credentials. Here is the official link with the detailed demonstration of Facebook integration.

After That you can show/hide the facebook login button from your admin panel

Open https://your-site.com/admin/facebooksettings

Here below is link of official documentaiton of facebook login

You need Hash key and package name of your project and for this you need following commands

  1. Go to your project directory and open terminal
  2. Your need key store so apply command keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
  3. For SHA-1 finger print key keytool -list -v -keystore my-release-key.keystore
  4. For Hash key keytool -exportcert -alias androiddebugkey -keystore ~/.android/my-release-key.keystore | openssl sha1 -binary | openssl base64

Note: You can use this hash key for other purpose i.e Google login.

Onesignal Notification#

Here is the official link that would guide you throughout the process of OneSignal account creation.

You will get App Id and Sender Id place both of them in your admin panel below link.

Open https://your-site.com/admin/pushnotification

Google Login#

This allows you to log in through your google credentials. Here is the official link with the detailed demonstration of google integration.

After That you can show/hide the login login button from your admin panel

Open https://your-site.com/public/admin/googlesettings

Here below is link of official documentaiton of google login with website

Here below is link of official documentaiton of google login for mobile application.

Google Map Integration#

Plugin is already Installed in your both Applications. But You need to Add your GOOGLE_MAPS_ANDROID_API_KEY & GOOGLE_MAPS_IOS_API_KEY in your app-source-code/config.xml

Note: Sure you have enable internal map from the admin settings.

Note: If you donot need the native google maps. Then remove this plugin using the below command. ionic cordova plugin rm cordova-plugin-googlemaps

Here is the official link with the detailed demonstration of Google Map integration

Link for Google Map Api.