com.APNS methods

Methods of the com.APNS class.

Important:

On March 31 2021 AppleĀ® discontinued the APNs legacy binary protocol. Therefore, the com.APNS class is now desupported. The documentation pages related to the APNS binary protocol are still provided for information. Contact your support center, if you need to implement APNS with the new HTTP/2-based provider API.

Starting with Genero V5.00, the com.APNS classe will be removed from the com package.

Table 1. Class methods
Name Description
com.APNS.DecodeError(
   data BYTE)
  RETURNS (uuid STRING, error INTEGER)
Decodes content of BYTE data returned from the APNS server in case of error.
com.APNS.DecodeFeedback(
   data BYTE,
   unregs  RECORD
   )
Decodes content of BYTE data returned from the APNS feedback service.
com.APNS.EncodeMessage(
   data BYTE,
   deviceIdBase64 STRING,
   json STRING,
   uuidBase64 STRING,
   expiration INTEGER,
   priority INTEGER)
  RETURNS INTEGER
Encodes an APNS specific push notification message into a BYTE.