1. Push uygulamasında login olunan üyelerin direkt olarak Euromessage üye paneline aktarılması
Extra bloğuna bazı özel parametreler yollanarak üye kaydı yapılabilir. İlgili EMAIL hesapta kayıtlı değilse yine extra bloğunda gönderilen kanal izinlerine göre hesaba kayıt edilecektir. Push uygulamasında login olunan üyelerin direkt olarak Euromessage üye paneline aktarılması isteniyorsa; RMC Support ekibinden PUSH_SUBSCRIPTION_PERMISSION_ENABLED flag inin açılması talep edilmelidir.
EuroMobileManager.getInstance().setPushPermit(PushPermit.ACTIVE, getApplicationContext()); "extra" : {"email" : "melike.yildirim@euromsg.com", "keyID" : "677196", "emailPermit" : "A"} |
2. Android Custom Parametreler ve URL
RMC arayüzünde tanımladığınız değişkenlere intent.getExtra() içinden erişebilirsiniz. Activity'e gelen push bildiriminin içindeki parametreleri, onResume() ve 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()); } |
Veri Tipi | Değişken | Açıklama |
---|---|---|
String | mediaUrl | URL for images and video |
String | altUrl | Alternate URL |
String | campaignId | Campaign ID |
String | url | Campaign URL |
String | message | Message |
String | sound | Sound file |
PushType | pushType | Push Type |
Map<String, String> | params | Custom parameters |
3. Android Custom Sound Kullanımı (Özel bir bildirim sesi kullanmak)
Android custom sound eklemek için geliştiricinin app seviyesinde raw dosyasına ilgili özel müziği eklenmesi gerekiyor.
Takip edilecek yol -> : "res/raw/my_custom_sound.mp3"
Bu adımdan sonra bu müziğin dosya ismini uzantısız olarak RMC panelinde Ayarlar / Kampanya Ayarları / Push Uygulamaları / Android Uygulamanız / Özel Ses Dosyası kısmına bu değeri eklemeniz gerekir.
EUROMESSAGE SDK METHODLAR
1. Token Ekleme
Method | Açıklaması |
---|---|
subscibe(String token, Context context) | Token'ı euromessage servislerine gönderen method |
2.Kullanıcı Özelleştirme ile ilgili Methodlar
Method | Açıklaması |
---|---|
setEmail(String email, Context context) | E-mail’i anonim kullanıcıya atar |
setEuroUserId(String userKey, Context context) | Id’yi anonim kullanıcıya atar |
setFacebook(String facebookId, Context context) | Facebook id’yi kullanıcıya atar |
setTwitterId(String twitterId, Context context) | Twitter id'yi kullanıcıya atar |
setPhoneNumber(String msisdn, Context context) | Telefon numarasını kullanıcıya atar |
setLocation(double latitute, double longitude, Context context) | Lokasyon’u kullanıcıya atar |
setAppVersion(String appVersion) | App versiyonu kullanıcıya atar |
setUserProperty(String key, String value, Context context) | Özel parametreleri kullanıcıya atar (RMC ekibiyle iletişime geçiniz) |
*sync(Context context) | Kullanıcıya atılan bilgileri token ile eşleştirir. |
* Yukarıdaki tanımlamalardan herhangi birini yaptıktan sonra çağrılması zorunludur.
3. SDK Özelleştirme ile ilgili methodlar
Method | Açıklaması |
---|---|
reportRead(Bundle bundle) | |
setChannelName(String channelName, Context context) | |
setNotificationColor(String) | |
setNotificationTransparentSmallIcon(int transparentSmallIcon, Context context) | |
setPushIntent(String intentStr, Context context) | |
setPushPermit(PushPermit pushPermit, Context context) | |
setEmailPermit(EmailPermit emailPermit, Context context) | |
setGsmPermit(GsmPermit gsmPermit, Context context) | |
removePushIntent(Context context) | |
removeChannelName(Context context) | |
removeIntentExtra(Context context) | |
removeNotificationColor(Context context) | |
removeNotificationTransparentSmallIcon(Context context) | |
removeUserProperties(Context context) | |
getCarousel(Intent intent) | |
getNotification(Intent intent) |