xiaomi-sdk

Push Notification Services

License

License

GroupId

GroupId

com.izooto
ArtifactId

ArtifactId

xiaomi-sdk
Last Version

Last Version

0.0.2
Release Date

Release Date

Type

Type

aar
Description

Description

xiaomi-sdk
Push Notification Services
Project URL

Project URL

https://github.com/izooto-mobile-sdk/xiaomi-sdk
Source Code Management

Source Code Management

https://github.com/izooto-mobile-sdk/xiaomi-sdk

Download xiaomi-sdk

How to add to project

<!-- https://jarcasting.com/artifacts/com.izooto/xiaomi-sdk/ -->
<dependency>
    <groupId>com.izooto</groupId>
    <artifactId>xiaomi-sdk</artifactId>
    <version>0.0.2</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.izooto/xiaomi-sdk/
implementation 'com.izooto:xiaomi-sdk:0.0.2'
// https://jarcasting.com/artifacts/com.izooto/xiaomi-sdk/
implementation ("com.izooto:xiaomi-sdk:0.0.2")
'com.izooto:xiaomi-sdk:aar:0.0.2'
<dependency org="com.izooto" name="xiaomi-sdk" rev="0.0.2">
  <artifact name="xiaomi-sdk" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.izooto', module='xiaomi-sdk', version='0.0.2')
)
libraryDependencies += "com.izooto" % "xiaomi-sdk" % "0.0.2"
[com.izooto/xiaomi-sdk "0.0.2"]

Dependencies

compile (5)

Group / Artifact Type Version
androidx.legacy » legacy-support-v4 jar 1.0.0
androidx.appcompat » appcompat jar 1.2.0
com.google.android.gms » play-services-ads-identifier jar 17.0.0
com.google.firebase » firebase-bom jar 26.0.0
com.google.firebase » firebase-messaging jar

Project Modules

There are no modules declared in this project.

t# izooto App notification service

Introduction : 
This document will talk about iZooto’s SDK integration process for Android.

Process: The following process is a step by step guide to integrate iZooto’s SDK.

Copy the android-release.AAR (shared) file to the libs folder of your project. Open app/build.gradle (Module: app) file and add the following lines of code:

Inside defaultConfig{} tag :

  manifestPlaceholders = [
           izooto_enc_key: "izooto_seceret-key”
           izooto_app_id : "izotot_app_id" 
   ]


Inside dependancies{} tag :

implementation project(path: ':izooto-release') implementation 'com.google.firebase:firebase-messaging:20.0.1'

Once done, go to File → Project Structure and :

Under the dependency tab, click on New Module, represented by + icon.

Select ‘Import JAR/AAR Package’ and click ‘Next’. Import ‘izooto-release.aar’ file shared and click on Finish. Sync the project

Add the following lines of code under the Manifest file.

For Internet Permissions, define a new user-permission tag:

Inside the application tag:

android:name=".yourApplicationName"

Sync the project. Create an Application File and include the following lines of code:

public class myApplicationName extends Application implements TokenReceivedListener {

@Override public void onCreate() { super.onCreate(); iZooto.initialize(this).setTokenReceivedListener(this).build(); } @Override public void onTokenReceived(String token) { Lg.i("Device token", token + ""); }}

Clean and re-build the project.

Congratulations! You have successfully integrated iZooto’s Android SDK.
When you now run the project, the FCM key would be generated and captured inside Android Studio’s Logs.

Versions

Version
0.0.2
0.0.1