Skip to content
This repository has been archived by the owner on May 2, 2020. It is now read-only.

Available methods for Push object

Ante Braovic edited this page Feb 1, 2016 · 1 revision

Notification class methods

General methods are ones that will be used more often. Service specific methods are implemented here so that those can be used if needed. To use those methods you need to use getService() method to get current service.

General available methods

Supported methods:

  • sendMessage(Message $message)
  • getService()
  • setNotificationTTL($ttl)
  • checkPayload(Message $message)

APNS - Apple Push Notification Server

To learn more about this service go to official APNS site.

Supported methods:

  • setIdentifier($identifier)
  • setPriority($priority)

GCM - Google Cloud Messaging

To learn more about this service go to official GCM site.

Supported methods:

  • setRestrictedPackageName($restrictedPackageName)