This commit is contained in:
启星
2025-08-08 10:49:36 +08:00
parent 6400cf78bb
commit b5ce3d580a
8780 changed files with 978183 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
//
// OfflinePushInfoConfig.swift
// TUICallKit
//
// Created by vincepzhang on 2023/1/6.
//
import Foundation
import TUICallEngine
@objc
public class OfflinePushInfoConfig: NSObject {
@objc
public static func createOfflinePushInfo() -> TUIOfflinePushInfo {
let pushInfo: TUIOfflinePushInfo = TUIOfflinePushInfo()
pushInfo.title = ""
pushInfo.desc = TUICallKitLocalize(key: "TUICallKit.have.new.invitation") ?? ""
// iOS push type: if you want user VoIP, please modify type to TUICallIOSOfflinePushTypeVoIP
pushInfo.iOSPushType = .apns
pushInfo.ignoreIOSBadge = false
pushInfo.iOSSound = "phone_ringing.mp3"
pushInfo.androidSound = "phone_ringing"
// VIVO message type: 0-push message, 1-System message(have a higher delivery rate)
pushInfo.androidVIVOClassification = 1
// HuaWei message type: https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/message-classification-0000001149358835
pushInfo.androidHuaWeiCategory = "IM"
return pushInfo
}
}