logo indigitall
All topics / SDK Integration / App Integration

App Integration

Our Software Development Kit for your app.

Cordova SDK

This section provides the basic information to setup the indigitall SDK in your app.

It will be necessary to have the identifier required so that the app, in which you want to integrate the SDK, can communicate with the indigitall environment. To receive this identifier the developer must provide to indigitall the necessary data to send the notifications to Android (Server Key for notifications) obtained from the Firebase Console and to iOS (.cer and .p12 certificates for notifications) obtained from the Apple Developer Console.

The following tutorial explains how to get all these:

Installation

indigitall SDK is available through NPM.

You can import it to your project with this steps:


$ cd /PATH/TO/YOUR/PROJECT


$ cordova plugin add indigitall-cordova-plugin

Android requisites

In Android you need obtain the 'google-services.json' from Firebase Console.

One you have it file, import it to your project root.

After include this code into your config.xml file in the platform android section.

<platform name="android">
    <resource-file src="google-services.json" target="/google-services.json" />
    ...
</platform>

iOS requisites

In iOS you need add the Notification Service Extension to your project with Xcode. You can learn how do this in the Notification Service Extension in our iOS documentation.

Initialization

Initialize indigitall plugin with the indigitall.init() method to begin receive push notifications.



...

window.plugins.indigitall.init({ appKey: "<YOUR_APP_KEY>", senderId: "<YOUR_SENDER_ID>" });

...

Further steps

Now you will see in logs how indigitall registers your device. Search the word "deviceId" and get its value. It is an alphanumeric random and unique id generated for indigitall.


deviceIdAndroid

Now you can send your first Notification

Segment your users:

More references