Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

After a token is generated in your application, the token should be sent to our server using the method shown below. When initialising the EuroMobileManager the context and application key must be given.
In the Euromessage Push UI you should You need to enter the server key value given by the Google API console for GCM applications to the RMC Push UI.

 

The application key is generated in the RMC UI and it is unique for your application.

Code Block
languagejava
linenumberstrue
public class Constant {
    public static final String EURO_KEY = "AppcentAndroidTest1";
}

 

After doing this, the EuroMobileManager Singleton class can be called within the application as shown below:

Code Block
languagejava
linenumberstrue
EuroMobileManager.sharedManager(getApplicationContext(),Constant.EURO_KEY);

 

If several parameters of the user's are known, then at or after the registering stage, they can be added as shown below:

Code Block
languagejava
linenumberstrue
final EuroMobileManager manager = EuroMobileManager.sharedManager(getApplicationContext(),Constant.EURO_KEY);

manager.setEmail("uysalmo@gmail.com");
manager.setEuroUserKey("userOuysal");
manager.setAppVersion("1.1");
manager.setFacebook("euroFB");
manager.setTwitterId("ouysal");
manager.setMsisdn("5326301028");

EuroUserKey Methods

EuroUserKey is an assigned code to every user by RMC and if it can be matched , then in order to analyse the mobile and email campaigns of the users can be analyzed commonly. Because of that this definition is very important .

The updates of users' location can be reported by the following method:

...

Code Block
languagejava
linenumberstrue
EuroMobileManager.sharedManager(getApplicationContext(),Constant.EURO_KEY).subscribe(regid);

 

When a push notification is read, the following method should be called. This method sends the message “read” information to RMC and it is very important for analysis. The place of the following method can be changed depending on the applications flow.

Code Block
languagejava
linenumberstrue
EuroMobileManager.sharedManager(getApplicationContext(), Constant.EURO_KEY).reportRead(new Message(intent).getPushId());

RMC Personalisation (visilabs) SDK

If you are using the RMC Personalization (visilabs) SDK in your application, then you can use the following method to inform the read status to RMC Personalization Personalisation (visilabs). URL to be called is produced within RMC Personalization Personalisation (visilanbsvisilabs) SDK and is sent through setVisiUrl method:

...