Apple Push Notification Service (APNS)

DreamFactory APNS allows DreamFactory to be used as your iOS push notification provider. This means your App can register user devices on DreamFactory using its App Key,
then when it's time to send a push notification, you can just send the notification targeting an App and all devices registered under that App will receive
the push notification.

Configuration

APNS is managed via the api/v2/system/service API endpoint under the system service and have the service_type
apns. You can retrieve the full service type information using the API api/v2/system/service_type/apns.

Below is the format of a typical APNS configuration that exists in DreamFactory. You can use the API api/v2/system/service/<apns-id> to view this information.

Passphrase

Environment

Service Event Map

Array. Optional. Here you can tie this service to any number of system events. In the example above we have tied our service with two events - “system.admin.session.post” and “system.admin.session.delete”.
These events are fired respectively when a system admin logs in and logs out of the DreamFactory and therefore, it automatically fires this APN service and sends push notification to targeted devices.
You can enter the push notification message in the data field.

Usage

Once you configure your DreamFactory APN service using the Admin application, head over to the API Docs tab and expand your service to see detail usage of your service.

Google Cloud Messaging (GCM) Service

Like the APNS, GCM service in DreamFactory also allows it to be used as your Android App's push notification provider. You make your Android App register user devices on DreamFactory using the App Key and then
send push notification to all devices targeting the app.

Configuration

GCM service is managed via the api/v2/system/service API endpoint under the system service and have the service_type
gcm. You can retrieve the full service type information using the API api/v2/system/service_type/apns.

Below is the format of a typical GCM service configuration that exists in DreamFactory. You can use the API api/v2/system/service/<gcm-service-id> to view this information.

Api Key

Environment

Service Event Map

Array. Optional. Here you can tie this service to any number of system events. In the example above we have tied our service with two events - “system.admin.session.post” and “system.admin.session.delete”.
These events are fired respectively when a system admin logs in and logs out of the DreamFactory and therefore, it automatically fires this GCM service and sends push notification to targeted devices.
You can enter the push notification message in the data field.

Usage

Once you configure your DreamFactory GCM service using the Admin application, head over to the API Docs tab and expand your service to see detail usage of your service.

Amazon Simple Notification Service (SNS)

DreamFactory also has a native service for sending push notifications via Amazon Simple Notification Service (SNS). Once your configure your DreamFactory SNS service you will be able to use the features of
SNS, such as managing Topics, Subscription, Application, Endpoints all via the DreamFactory REST API.