Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.
/ Push Public archive

[DEPRECATED] Just a small example of how to create an Android Application that uses Google Cloud Messaging.

Notifications You must be signed in to change notification settings

MathiasBerwig/Push

Repository files navigation

How to Use

  1. To start using it, you need to have set up the Push Server.

  2. With the Push Server OK, open the file Config.java and change the addresses of your server and the GCM Sender ID:

public static class ADRESSES {
        public static final String SERVER_URL = "http://your-server-name/";
        public static final String INSERT_USER_URL = SERVER_URL + "Push-server/insert_user.php";
        public static final String DELETE_USER_URL = SERVER_URL + "Push-server/delete_user.php";
    }

    public static class GCM {
        public static final String DEFAULT_SENDER_ID = "YOUR-GCM-ID";
    }
  1. Build and run the app.

  2. Register the device to your server: open the Push application and name your user/device. After this, click Register and wait for the Toast to show the result.

  3. Open the Push Server and send the message:

Push Server form

  1. Done! The device should show the notification now:

Notification on Device

Notification on Device

About

[DEPRECATED] Just a small example of how to create an Android Application that uses Google Cloud Messaging.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages