PushNotificationConfig
public class PushNotificationConfig : LinphoneObject
Object holding push notification config that will be set in the contact URI/// parameters of the Contact header in the REGISTER, if the AccountParams
is/// configured to allow push notifications, see/// AccountParams.setPushNotificationAllowed().
This object can be accessed through the AccountParams
object, which can be
obtained from your Account
object.
-
Declaration
Swift
public static func getSwiftObject(cObject: OpaquePointer) -> PushNotificationConfig
-
Declaration
Swift
public var getCobject: OpaquePointer? { get }
-
Sets the bundle_identifier for “contact uri parameter”. It’s not necessary if param is set. See setParam().
Declaration
Swift
public var bundleIdentifier: String { get set }
Return Value
The app’s bundle identifier if set, nil otherwise.
-
Sets the call_snd for “contact uri parameter”, specific for remote push notification.
Declaration
Swift
public var callSnd: String { get set }
Return Value
The call_snd, default value “notes_of_the_optimistic.caf”.
-
Sets the call_str for “contact uri parameter”, specific for remote push notification.
Declaration
Swift
public var callStr: String { get set }
Return Value
The call_str, default value “IC_MSG”.
-
Sets the group_chat_str for “contact uri parameter”, specific for remote push notification.
Declaration
Swift
public var groupChatStr: String { get set }
Return Value
The groupchat_str, default value “GC_MSG”.
-
Sets the msg_snd for “contact uri parameter”, specific for remote push notification.
Declaration
Swift
public var msgSnd: String { get set }
Return Value
The msg_snd, default value “msg.caf”.
-
Sets the msg_str for “contact uri parameter”, specific for remote push notification.
Declaration
Swift
public var msgStr: String { get set }
Return Value
The msg_str, default value “IM_MSG”.
-
Sets the param for “contact uri parameter”. If it’s not set, “team_id.bundle_identifier.services” will be used.
Declaration
Swift
public var param: String { get set }
Return Value
The param if set, nil otherwise.
-
Sets the prid for “contact uri parameter”. If it’s not set, “voip_token&remote_token” will be used.
Declaration
Swift
public var prid: String { get set }
Return Value
The prid if set, nil otherwise.
-
Sets the provider for “contact uri parameter”. If not set, the default value will be used for “contact uri parameter”, “firebase” for android or “apns” for ios.
Declaration
Swift
public var provider: String { get set }
Return Value
The provider if set, nil otherwise.
-
Sets the remote_token for “contact uri parameter”, specific for remote push notification. It’s not necessary if prid is set. See setPrid().
Gets the remote token for “contact uri parameter”.
Declaration
Swift
public var remoteToken: String { get set }
Return Value
The remote token if set, nil otherwise.
-
Sets the team id for “contact uri parameter”. It’s not necessary if param is set. See setParam().
Declaration
Swift
public var teamId: String { get set }
Return Value
The team id if set, nil otherwise.
-
Sets the voip_token for “contact uri parameter”, specific for voip push notification. It’s not necessary if prid is set. See setPrid().
Declaration
Swift
public var voipToken: String { get set }
Return Value
The voip token if set, nil otherwise.
-
Instantiate a new push notification parameters with values from source.
Declaration
Swift
public func clone() -> PushNotificationConfig?
Return Value
The newly created
PushNotificationConfig
object. -
Checks if two Push Notification Configurations are identical.
Declaration
Swift
public func isEqual(otherConfig: PushNotificationConfig) -> Bool
Parameters
otherConfig
The
PushNotificationConfig
object to compare to.Return Value
True only if the two configurations are identical.