This website is no longer maintained. Please, visit documentation.indigitall.com to read our updated documentation.
EN |
ESQuick Guide to Ionic & Capacitor SDK Integration.
It is important since the project contains the configuration data of your application, that is, the domain where your website is hosted, the safari or iOS certificates or the firebase key that android uses. It all depends on the platforms (web or app) that the project uses.
This article shows the minimum development that must be done to start registering devices and being able to carry out the first push campaigns.
The Indigitall SDK is compatible with Google messaging services, through the Firebase platform and with the services of HMS or Huawei Mobile Services of Huawei.
You can see it in this tutorial video or read the instructions below:
Our SDK is available via npm .
npm (Node Package Manager) it is a package management system. It consists of a command line client and an online database of public and private packages.
To import the SDK into your project, follow these steps:
$ cd /PATH/TO/YOUR/PROJECT
$ npm install add indigitall-capacitor-plugin
$ npx cap sync
If you don't want to compile your Ionic & Capacitor project for Android devices, you can skip this point.
Otherwise, follow these steps:
If you are with a version of Kotlin less than 1.5.21, you will have to add the following implementation of coroutines in the gradle dependencies:
dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0'
...
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.1'
}
To start you need a file called google-services.json . This file can be exported from the Firebase console .
Move it to the root folder of your project . You should have something like this:
<platform name="android">
<resource-file src="google-services.json" target="/google-services.json" />
...
</platform>
<service android:name="com.indigitall.android.services.FirebaseMessagingService" >
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
buildscript {
repositories {
...
maven {url 'https://developer.huawei.com/repo/'}
}
dependencies {
...
classpath 'com.google.gms:google-services:4.0.+'
}
}
allprojects {
repositories {
...
maven {url 'https://developer.huawei.com/repo/'}
}
}
apply plugin: 'com.google.gms.google-services'
...
dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
// SUB-PROJECT DEPENDENCIES START
...
implementation "com.google.firebase:firebase-core:17.2.2"
implementation "com.google.firebase:firebase-messaging:22.0.0"
implementation "com.huawei.hms:location:6.0.0.302" // GET LOCATION
// SUB-PROJECT DEPENDENCIES END
}