Skip to content

kirillkotov/Push-SDK-Android

Repository files navigation

Push SDK Android

Using the SDK

Get started by visiting:

Documentation:

https://javadoc.jitpack.io/com/github/kirillkotov/Push-SDK-Android/v1.0.0.55-RELEASE/javadoc/index.html

RECOMMENDED VERSION: v1.0.0.55-RELEASE

RECOMMENDED REMOTE API VERSION: 3.0

To use http protocol instead of https (v1.0.0.52-RELEASE and higher), add android:usesCleartextTraffic="true" to your application tag inside android manifest

<application
        ...

        android:usesCleartextTraffic="true"
        >

Short dependency info

Push SDK

Make sure you have declared maven repository in your project (top-level) build.gradle

allprojects {
    repositories {
        ...
        maven {
            url 'https://jitpack.io'
        }
    }
}

Add dependency to your module (app-level) build.gradle

dependencies {
    ...
    implementation 'com.github.kirillkotov:Push-SDK-Android:v1.0.0.55-RELEASE'
}

Firebase cloud messaging

Recommended dependency versions to use within your app (or use whatever would be compatible with what is used within the SDK):

  • Project (top-level) build.gradle:
buildscript {
    dependencies {
        ...
        classpath 'com.google.gms:google-services:4.3.4'
    }
}
  • Module (app-level) build.gradle:
plugins {
    ...
    id 'com.google.gms.google-services'
}

dependencies {
    ...
    implementation 'com.google.firebase:firebase-messaging:21.0.0'
}
  • Make sure you add proper google-services.json file to the root of your app module