Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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)


2.Kullanıcı Özelleştirme ile ilgili Methodlar

Method 

Açıklaması

setEmail(String email, Context context)


setEuroUserId(String userKey, Context context)


setFacebook(String facebookId, Context context)


setTwitterId(String twitterId, Context context)


setPhoneNumber(String msisdn, Context context)


setLocation(double latitute, double longitude, Context context)


setAppVersion(String appVersion)


setUserProperty(String key, String value, Context context)


sync(Context context)


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)



  • No labels