Skip to content

Latest commit

 

History

History
103 lines (64 loc) · 3.25 KB

README.md

File metadata and controls

103 lines (64 loc) · 3.25 KB

Euromessage Android Library

Nov 9, 2023 - Euromessage v5.2.6

Table of Contents

Euromessage Android

The Euromessage Android Sdk is a java implementation of an Android client for Euromessage.

Notifications

Euromessage Android Library

1.Installation

Euromessage SDK requires minimum API level 21.

Add maven jitpack repository to your project/build.gradle file

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

Add Euromessage to the dependencies in app/build.gradle.

implementation 'com.github.relateddigital:euromessage-android:5.2.6'

2. Usage of SDK

For more information, please check new detailed documentation :

Euromessage Türkçe Dokümantasyon

Euromessage English Documentation

Note :

You need to add an android project in Firebase Console. Please follow Firebase instruction and do not forget to add google_service.json to the project.

You need to add an android project in Huawei Console. Please follow Huawei instruction and do not forget to add agconnect_services.json to the project. *you may need to add your fingerprint to app in Huawei console.

3.Sample Applications

4.IYS Email Register

To register email IYS:

EuromessageCallback callback = new EuromessageCallback() {
    @Override
    public void success() {
        Toast.makeText(getApplicationContext(), "REGISTER EMAIL SUCCESS", Toast.LENGTH_LONG).show();
    }

    @Override
    public void fail(String errorMessage) {
        String message = "REGISTER EMAIL ERROR ";
        if(errorMessage != null) {
            message = message + errorMessage;
        }
        Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show();
    }
};
EuroMobileManager.getInstance().registerEmail("test@euromsg.com", EmailPermit.ACTIVE, false, getApplicationContext(), callback);

5.Licences