Skip to content

SDK functions description

imperituroard edited this page Nov 27, 2020 · 1 revision

All this functions are available from PushSDK class For using it, create this class new instance first


  • New device registration. Register your device on push server
pushRegisterNew(user_phone: String, user_password: String, x_push_sesion_id: String, x_push_ios_bundle_id: String, X_Push_Client_API_Key: String)->PushKFunAnswerRegister

pushRegisterNew(user_phone: String, user_password: String, x_push_ios_bundle_id: String, X_Push_Client_API_Key: String)->PushKFunAnswerRegister

  • Clear local device on server. This function clear on push server only locally saved device id
pushClearCurrentDevice()->PushKGeneralAnswerStruct

  • get message history
public func pushGetMessageHistory(period_in_seconds: Int) -> PushKFunAnswerGetMessageHistory

  • Get all devices from server
pushGetDeviceAllFromServer() -> PushKFunAnswerGetDeviceList

  • update firebase token on push server. Update your token on firebase platform first
pushUpdateRegistration() -> PushKGeneralAnswerStruct

  • message callback
pushSendMessageCallback(message_id: String, message_text: String) -> PushKGeneralAnswerStruct

  • Send delivery report to server
pushMessageDeliveryReport(message_id: String) -> PushKGeneralAnswerStruct

  • Clear all devices registered with current msisdn
pushClearAllDevice()->PushKGeneralAnswerStruct

Clone this wiki locally