Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Keep Track of Your System or Application With Notifier Mobile Service

0.00/5 (No votes)
9 Dec 2015 1  
Keep track of your system or application with Notifier Mobile Service

Introduction

Notifier Mobile service allows a user to create notifications just with a few lines of code. The notifications will be transferred to mobile device in the real time (maximum of 5 minutes as soon as the code which implemented creating notifications is executed successfully).

Notifier Mobile

Background

1. Register an Account on "Notifier Mobile"

The service is totally free, just go to website http://notifiermobile.com, click on "Sign up" button to redirect to registration page.

Fill out your information:

Register account on Notifier Mobile

Note: The email is required to activate your account, check it carefully before submitting the form.

After a successful registration, login to the website, you will get a secret key.

Secret Key

The secret key and username will be used to authenticate to the service. Don't forget and share it with anyone else.

2.  Create Your Own Notifications

When you create a new notification, the notification is stored on server and "Notifier Mobile" application (see below) will be gotten automatically from the server later.

Structure of a notification is as follows:

  • Title: basic information of notification
  • Message: detail content of notification
  • Type: INFO, WARNING, ERROR, OTHER...
  • Create Date
  • Unread: True/False (True: the notification was read/ False: the notification has not been read yet)

Using the Code

For Java & .NET

The service supports 2 built-in libraries for Java and C#, 2 most popular programming languages at this time.

The libraries make your coding much easier, just with a few lines of code like this:

Authentication Authentication = New Authentication("yourusername", "Yoursecretkey");
Notification Notification = New Notification("title", "Detail Content", NotificationType.INFO.ordinal());
NotifierMobileService.add(notification, Authentication);

You can download Java library as a JAR file.
Or
Using Maven to import the library to your project:

<dependency>
    <groupId>com.notifiermobile</groupId>
    <artifactId>notifier-mobile-service</artifactId>
    <version>1.0</version>
</dependency>

For more details, please see http://notifiermobile.com/java.

.NET

You can download .NET library as a DLL file.
Or
Using Package Manager Console to import the library to your project.

PM> Install-Package NotifierMobileService

For more details, please see http://notifiermobile.com/dotnet.

If the notification cannot be created for certain reasons (No network connection, bad authentication...). The NotificationException will be thrown. Handling this exception is strongly recommended.

For Other Languages

Since Notification API was introduced, you can implement creating notifications with any languages (JavaScript, Ruby, Python, ... that supports HTTP requests).

Take a look at the API at http://notifiermobile.com/api.

Install the "Notifier Mobile" Application On Your Mobile Device

The application is in charge of automatically getting your notifications from the server.

It is available on Android store:

Notifier Mobile Application

In CH play application, just search for "notifier mobile" and install it.

After installing successfully, launch the application and login with username and password that you used to login into the website http://notifiermobile.com.

Login

The user interface of the application looks like this:

Image title

Image title

  • There are 3 main types of notifications: INFO, WARNING, ERROR. These types are easy to see with 3 catalogues on the application.
  • The other types can only be seen at "ALL" category on the application.

Points of Interest

The service is useful for you in some cases such as:

  1. Tracking status of your system/application via mobile device. The current status of system/application will be sent to your mobile device in real time by messages which are defined by yourself.
  2. More simpler is you want to receive a message when a certain task in your system/application was executed successfully or fail.

Advantages

  • Free
  • Simple to use
  • Notification classification: INFO, WARNING, ERROR, OTHERS
  • Storing history of notifications: it's useful for tracking
  • Provide API for manipulating notifications

Disadvantages

  • The Notifier Mobile application has been available on Android so far

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here