Express v1.3.3 Express.Operations.APNS.Push View Source
Sends push_message synchronously to APNS. Invokes callback_fun function after response receive.
Exop library operation.
Takes parameters:
connection
(a connection to send push message through)jwt
(a JWT for a request (if you don’t use ssl config))push_message
(a push message to send)
Link to this section Summary
Functions
Operation’s entry point. Takes defined contract as the single parameter.
Contract itself is a Keyword.t
list: [param_name: param_value]
Runs an operation’s process/1 function after a contract validation
Link to this section Types
Link to this type
auth_result()
View Source
auth_result :: :ok | {:error, {:auth, :undefined_user}} | {:error, {:auth, :undefined_policy}} | {:error, {:auth, :unknown_policy}} | {:error, {:auth, :unknown_action}} | {:error, {:auth, atom}}
Link to this section Functions
Link to this function
defined_params(received_params)
View Source
defined_params(Keyword.t | map) :: map
Operation’s entry point. Takes defined contract as the single parameter.
Contract itself is a Keyword.t
list: [param_name: param_value]
Callback implementation for Exop.Operation.process/1
.
Link to this function
run(received_params \\ [])
View Source
run(Keyword.t | map | nil) :: {:ok, any} | Exop.Validation.validation_error | interrupt_result | auth_result
Runs an operation’s process/1 function after a contract validation
Link to this function
run!(received_params \\ [])
View Source
run!(Keyword.t | map | nil) :: any | RuntimeError