Versions Compared

Key

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

Eğer Euromsg SDK 2.0.0 versiyonundan düşük bir versiyon kullanıyorsanız buraya gidin.

...

Table of Contents

...

Adım 1 - Gerekenler

iOS Mobil Uygulaması & Xcode

P12 sertifikası & şifresi veya P8 sertifikası.
-P12 sertifikası oluşturmak için tıklayın
-P8 sertifikası oluşturmak için tıklayın

AppAlias (RMC Panelinden alınacak) Eğer bir hesabınız bulunmuyorsa satış temsilcimizle iletişime geçebilirsiniz. Buraya tıklayın.

Adım 2 - Kurulum

2.1 Euromsg SDK’sı Cocoapods aracılığıyla kurulmaktadır. Aşağıdaki kodu Podfile dosyanıza ekledikten sonra pod install diyerek kurabilirsiniz.

...

Code Block
languageswift
import UserNotifications
import Euromsg

class NotificationService: UNNotificationServiceExtension {

    var contentHandler: ((UNNotificationContent) -> Void)?
    var bestAttemptContent: UNMutableNotificationContent?

    override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
        self.contentHandler = contentHandler
        bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
        Euromsg.configure(appAlias: "EuromsgIOSTest", enableLog: true)
        Euromsg.didReceive(bestAttemptContent, withContentHandler: contentHandler)
    }
 

      override func serviceExtensionTimeWillExpire() {
        //guard Calledlet justcontentHandler before= theself.contentHandler extensionelse will{
be terminated by the system.        return;
// Use this as an opportunity to deliver your}
"best attempt" at modified content, otherwise the original pushguard payloadlet willbestAttemptContent be= usedself.bestAttemptContent else {
      if  let contentHandler = contentHandler, letreturn;
bestAttemptContent =  bestAttemptContent {    }
        Euromsg.didReceivecontentHandler(bestAttemptContent, withContentHandler: contentHandler)
        }
    }
}

Notification Content Extension Ekleme

...

Code Block
languageswift
Euromsg.setEmail(email: "test@relateddigital.com", permission: true)
Euromsg.setEuroUserId(userKey: "1234567890")
Euromsg.sync()

Mobil kanaldan gelen datalarınızın RMC'ye yüklenebilmesi için, aktif RMC hesabınızda kullanmış olduğunuz referans değeriniz ne ise (KEY_ID* veya E-Mail) mobil kanaldan gelen dataların da bu referans ile gelmesine dikkat ediniz."

*KEY_ID: Uygulama sahibi tarafından müşterisinin tekilleştirilmesi için kullanılan id değerleridir. Bunlar CRM id, userid, customerid, accountid gibi farklı isimlerle ifade ediliyor olabilir.

...