Dead Simple Push Notifications

Cloudfive Push Quick Start

Get started in three easy steps with as little as one line of code.

step one

Install the client libraries

Android
iOS
Cordova
Android Library Homepage
  // build.gradle
  dependencies {
      implementation "com.google.firebase:firebase-core:17.2.0"
      implementation "com.google.firebase:firebase-messaging:20.0.0"

      compile 'com.cloudfiveapp:push-android:1.1.0'
  }

  // AndroidManifest.xml
  <uses-library
      android:name="org.apache.http.legacy"
      android:required="false" />
step two

Register for remote notifications on the client

Android
iOS
Cordova
    @Override
    public void onCreate() {
        super.onCreate();
        CloudFivePush.configure(this);
    }

    // Register for broadcast notifications
    CloudFivePush.register();

    // Pass in a custom user identifier to target specific users
    CloudFivePush.register('user@example.com');
step three

Send a push from your application

Ruby
.NET
Curl
Install the Ruby gem
  CloudFivePush.api_key = "my_api_key"

  # Send a broadcast notification to all your users
  CloudFivePush.broadcast! "Hello from Cloudfive!"

  # Send a notification to just some of your users
  # A single user identifier can be passed in to the notify! method
  CloudFivePush.notify! "Hello from Cloudfive!", 'the-user-identifier'
  # or you can pass in an array of user identifiers
  CloudFivePush.notify! "Hey there!", ['one', 'another', 'the-third']