Skip to content
 
 

Repository files navigation

Euromessage Android Library

Latest Version Build Status

March 12, 2020 - Euromessage v3.0.2

Bintray Bintray Maven Download

Table of Contents

Euromessage Android

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

1.Installation

Gradle

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

implementation 'com.euromsg:euromsg:3.0.2'
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.

Support Lib

You may use Euromessage Sdk directly.

For that :

  • Download the module
  • Open your project which you want to use Euromessage
  • Follow steps : Android Studio -> File -> New -> Import Module and select path where you want to locate module and rename it.

Permission

     <uses-permission android:name="android.permission.INTERNET"/>

     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 

2.Usage of the SDK

Initialization

  public static String APP_ALIAS = Constant.APP_ALIAS;  // (EntegrasyonID) e.g.: "euromessage-android"

  EuroMobileManager euroMobileManager = EuroMobileManager.sharedManager(APP_ALIAS, this);

  euroMobileManager.registerToFCM(getBaseContext());   

RMC needs that at least one property which is email or user id in order to match and analyse users. This is important part to use RMC. Please add code below after being sure you generate the token..

euroMobileManager.setEmail("test@mail.com", this);
euroMobileManager.setEuroUserId("12345", this);
euroMobileManager.sync(this);

RMC needs that information about the notification is read by user. You need to add code below.

   @Override
protected void onNewIntent(Intent intent) {
    super.onNewIntent(intent);

    if (intent.getExtras() != null) {
        euroMobileManager.reportRead(new Message(intent.getExtras()));
    }
}

How to make configuration on RMC for AppAlias, Sound, Server Key?

You need to add configuration for your android application on RMC. Follow steps below to add an application.

Setting Icon-> Campaing Managment -> Campaign Settings -> Push Applications

Euromessage Android Library

  • Server Key : It should be 'server key' from Firebase Cloud Messaging
  • App Alias : It can be any name eg: euromessagedemo
  • Custom Sound File : It is an optional feature. It should be same name of a music file without extension in /raw folder

3.Sync

Please make the following improvements to add more information about the user in RMC.

 
EuroMobileManager manager = EuroMobileManager.getInstance();
 
manager.setEmail("melike.yildirim@euromsg.com", this);
manager.setEuroUserId("2342343", this);
manager.setAppVersion("1.1");
manager.setFacebook("euroFB", this);
manager.setTwitterId(“euroTW", this);
manager.setPhoneNumber(“05320000000", this);
manager.sync();

4.Sample Applications

5.Licences

About

Euromessage Android SDK https://www.euromsg.com/

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages