NewtifryPro

Why?

Because the original version (Newtifry and Notifry before) need a specific server. If the server is down, the entire service is down.

With the Pro version, you have a direct link with the Google's GCM servers.

How to configure NewtifryPro?

For the new Google Developers Console see here.

What do you need

  • A SenderId to register your device on Google GCM service.
  • An API Key to send messages to your device
  • The GCM Id of your device (Device ID)

Get your SenderId/API Key

Parts of this guide were taken from Google's documentation which you can find here: http://developer.android.com/guide/google/gcm/index.html

Creating a Google API project

To create a Google API project:

  • Open the Google APIs Console page.
  • If you haven't created an API project yet, this page will prompt you to do so:

Create Project

Note: If you already have existing projects, the first page you see will be the Dashboard page. From there you can create a new project by opening the project drop-down menu (upper left corner) and choosing Other projects > Create.

  • Click Create project. Your browser URL will change to something like:

https://code.google.com/apis/console/#project:4815162342

  • Take note of the value after #project: (***4815162342*** in this example). This is your project ID, and it will be used later on as the GCM sender ID.

Enabling the GCM Service

To enable the GCM service:

  • In the main Google APIs Console page, select Services.
  • Turn the Google Cloud Messaging toggle to ON.
  • In the Terms of Service page, accept the terms.

Obtaining an API Key

To obtain an API key:

  • In the main Google APIs Console page, select API Access. You will see a screen that resembles the following:

  • Click Create new Server key. The following screen appears:

Create New Server Key

  • Click Create: Take note of the API key value (***YourKeyWillBeShownHere***) in this example, as it will be used later on.

Create

Note: If you need to rotate the key, click Generate new key. A new key will be created while the old one will still be active for up to 24 hours. If you want to get rid of the old key immediately (for example, if you feel it was compromised), click Delete key.

Register your device

Once you have your Sender ID, you can register your device. In NewtifryPro:

  • Open the menu
  • Select 'Register' entry
  • Enter your Sender ID
  • Wait for registration success
  • Open the menu again
  • Select 'Preferences'
  • Select 'Test'
  • After a variable delay, you should receive a test message in NewtifryPro

You are ready to receive notifications!

Send messages to your device

You need the API Key and the device ID

Get your Device ID

In NewtifryPro:

  • Open the menu
  • Select 'Preferences'
  • Select 'Email Device ID'
  • Enter your email address
  • Send the email

Once you have your device ID, you can use this php script :PHP script on Github or this for nodejs : Node script on Github

You are ready to send notifications!

API Reference

Parameters

Parameter Value Description Required
deviceIds devices ids got in newtifry Pro Array of message destination. Required
source string An optional source value Optional
title string The string title of this notification. Keep this short and relevant to the message. Required
message string The body of the message. This can contain a lot more detail of the message. This is optional, and will be sent as an empty string if not provided. Optional
url string An optional URL to pass along, that would give more information about the message. Optional
priority integer An optional message priority (0-3). 0 : no priority - 1 : info - 2 : warning - 3 : alert Optional
image string An optional bitmap URL to pass along, that would be displayed in the message detail screen (new in version 2.4.0). Optional
speak integer An parameter (0-1) to force message speak even if disabled. Optional
nocache integer An parameter (0-1) to avoid image caching (no pre download and no cache). Optional