1.Transferring the members logged in Push application directly to the Euromessage member panel
Members can be registered by sending some special parameters to the Extra block. If the related EMAIL is not registered in the account, it will be registered to the account again according to the channel permissions sent in the extra block. If it is desired to transfer the members logged in Push application directly to the Euromessage member panel; The PUSH_SUBSCRIPTION_PERMISSION_ENABLED flag must be requested from the RMC Support team.
EuroMobileManager.getInstance().setPushPermit(PushPermit.ACTIVE, getApplicationContext()); "extra" : {"email" : "melike.yildirim@euromsg.com", "keyID" : "677196", "emailPermit" : "A"}
2.Android Custom Parameters and Destination URL
You can access the variables you defined in the RMC interface from intent.getExtra (). The parameters inside the push notification coming to the Activity, onResume () and onNewIntent ().
if (intent.getExtras() != null) { if (EuroMobileManager.getInstance().getNotification(intent) != null) { Log.d("Euromessage", EuroMobileManager.getInstance().getNotification(intent).getUrl()); } if (EuroMobileManager.getInstance().getCarousels(intent) != null) { Log.d("Euromessage Carousel", EuroMobileManager.getInstance().getCarousels(intent).get(FIRST_ITEM_CAROUSEL).getUrl()); }
3. Using Android Custom Sound (Using a custom notification sound)
To add Android custom sound, the developer needs to add the relevant custom music to the raw file at the app level.
Walkthrough ->: "res / raw / my_custom_sound.mp3"
After this step, you should add this value to the Settings / Campaign Settings / Push Applications / Your Android Application / Custom Audio File section of the RMC panel without the filename of this music.
EUROMESSAGE SDK METHODS
1.Subscribe Token
Method | Explanation |
---|---|
subscibe(String token, Context context) | it sends Token to Euromessage services |
2.Kullanıcı Özelleştirme ile ilgili Methodlar
Method | Explanation |
---|---|
setEmail(String email, Context context) | It assigns to E-mail to anonymous user |
setEuroUserId(String userKey, Context context) | It assigns to ID to anonymous user |
setFacebook(String facebookId, Context context) | It assigns to Facebook id to user |
setTwitterId(String twitterId, Context context) | It assigns to Twitter id to user |
setPhoneNumber(String msisdn, Context context) | It assigns to phone number to user |
setLocation(double latitute, double longitude, Context context) | It assigns to Location to user |
setAppVersion(String appVersion) | It assigns to app version to user |
setUserProperty(String key, String value, Context context) | It assigns to custom parameter to user (Please contact RMC support team) |
| Match token and user |
It is mandatory to call after making any of the above definitions.
3. SDK Customization Methods
Method | Explanation |
---|---|
reportRead(Bundle bundle) | Informing RMC to push notification read |
setChannelName(String channelName, Context context) | Updates the channel name in the application details |
setNotificationColor(String hexColor) | Set Notification Theme color (Hex Color) |
setNotificationTransparentSmallIcon(int transparentSmallIcon, Context context) | Set Notification Transparent small icon (Drawable) |
setPushIntent(String intentStr, Context context) | Set the activity to be opened clicking on the notification. The activity package path should set. Optional |
setPushPermit(PushPermit pushPermit, Context context) | Push permissions on RMC panel are set as Active or Passive |
setEmailPermit(EmailPermit emailPermit, Context context) | Push permissions on RMC panel are set as Active or Passive |
setGsmPermit(GsmPermit gsmPermit, Context context) | Push permissions on RMC panel are set as Active or Passive |
removePushIntent(Context context) | Removes the activity to open clicking on the notification |
removeChannelName(Context context) | Removes channel name in application details |
removeIntentExtra(Context context) | Removes application extras |
removeNotificationColor(Context context) | Removes notification theme color |
removeNotificationTransparentSmallIcon(Context context) | Removes the notification icon |
removeUserProperties(Context context) | Removes extra parameters |
getCarousel(Intent intent) | Gives you the target url for carousel |
getNotification(Intent intent) | Gives you the target url for text and image |