Notifly 설정 추가
This commit is contained in:
21
SodaLive/Sources/Tracking/NotiflyClient.swift
Normal file
21
SodaLive/Sources/Tracking/NotiflyClient.swift
Normal 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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user