IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMOfflinePushConfig

Public Member Functions

 V2TIMOfflinePushConfig (long businessID, String token)
 
 V2TIMOfflinePushConfig (long businessID, String token, boolean isTPNSToken)
 

Constructor & Destructor Documentation

◆ V2TIMOfflinePushConfig() [1/2]

V2TIMOfflinePushConfig ( long  businessID,
String  token 
)
inline

Configure offline push

Parameters
businessIDCertificate ID in the Chat console
tokenThe token obtained when you register your application with the manufacturer

◆ V2TIMOfflinePushConfig() [2/2]

V2TIMOfflinePushConfig ( long  businessID,
String  token,
boolean  isTPNSToken 
)
inline

Configure offline push

Attention
This API has been deprecated.
  • If you have built offline push by TPNS and have setup configuration on the TPNS console, you can continue to use TPNS.
  • If you have not built offline push by TPNS and have not setup configuration on the TPNS console,please not to use TPNS again. This feature has not been supported any more. https://cloud.tencent.com/document/product/269/74285
Parameters
businessIDIM Console's ID,no need for TPNS
tokenOEM token Or TPNS token
isTPNSTokenFlag for TPNS
Attention
token using attention
  • If using TPNS channel,the isTPNSToken should be YES and the token should be tpns token;
  • If using OEM channel,the isTPNSToken should be NO and the token should be OEM token.