Skip to main content
Describes a device running Pocket CRM.

Constructors

NSPocketDeviceInfo()

Initializes a new instance of the NSPocketDeviceInfo class.

Methods

GetDeviceIdentifier()

Returns: CRMScript.Global.String - A unique identifier of this device. This value should always be the same for the same device. Example:

GetDeviceName()

Returns: CRMScript.Global.String - A friendly display name for the device. For example, ‘Bobbys iPhone 5S’. Example:

GetLanguage()

Returns: CRMScript.Global.String - The language which this device will receive notifications translated in. Example:

GetOSVersion()

Returns: CRMScript.Global.String - The operating system version. For example, ‘iOS v10.2. Example:

GetPlatform()

Returns: CRMScript.Global.Integer - What platform does this device belong to. See <xref href=“CRMScript.NetServer.NotificationPlatform” data-throw-if-not-resolved=“false”></xref>. Example:

GetPNSHandle()

Returns: CRMScript.Global.String - The identifier associated with the device that will be used when talking with vendors push services. Example:

GetPocketVersion()

Returns: CRMScript.Global.String - What version of Pocket CRM this device is running. For example, ‘8.0.37’ Example:

SetDeviceIdentifier(String)

Returns: CRMScript.Global.Void Example:

SetDeviceName(String)

Returns: CRMScript.Global.Void Example:

SetLanguage(String)

Returns: CRMScript.Global.Void Example:

SetOSVersion(String)

Returns: CRMScript.Global.Void Example:

SetPlatform(Integer)

Returns: CRMScript.Global.Void Example:

SetPNSHandle(String)

Returns: CRMScript.Global.Void Example:

SetPocketVersion(String)

Returns: CRMScript.Global.Void Example: