Notifly 설정 추가

This commit is contained in:
Yu Sung
2025-03-12 16:05:08 +09:00
parent f9bad015a8
commit f22bc9d98d
10 changed files with 128 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
//
// NotiflyClient.swift
// SodaLive
//
// Created by klaus on 3/12/25.
//
import notifly_sdk
class NotiflyClient {
static let shared = NotiflyClient()
func setUser(userId: Int, params: [String : Any]) {
Notifly.setUserId(userId: "voiceon_user\(userId)")
Notifly.setUserProperties(userProperties: params)
}
func logout() {
Notifly.setUserId(userId: nil)
}
}