f.Message().send()

f.Message().send()

개요

send()를 통해 푸시알림을 발송합니다.

예시


let title = _c.activeSector.Title
let receiver = _c.activeSector.RecieverID
let contents = _c.activeSector.Content
let buttonName = _c.activeSector.ButtonName
let scnearioID = _c.activeSector.ScenarioID
let stepID = _c.activeSector.StepID
let packID = _base.PackIDs[0];

let msg = f.Message().setTitle(title).setBody(contents).addReceiver(receiver,false)
msg.setActionJson({
                title:buttonName,
                scenarioid:scnearioID,
                step:stepID,
                packid:packID,     
                linkParam:"paramTest" 
})
msg.send(); 

Last updated