Home  /  Education Apps  / GCM4Public DEMO open source on Windows Pc

GCM4Public DEMO open source on Windows Pc

Developed By: Vilius Kraujutis

License: Free

Rating: 4,5/5 - 6 votes

Last Updated: December 24, 2023

Download on Windows PC

Compatible with Windows 10/11 PC & Laptop

App Details

Version 1.0
Size 166.1 KB
Release Date May 02, 13
Category Education Apps

App Permissions:
Allows applications to open network sockets. [see more (4)]

What's New:
Initial version. [see more]

Description from Developer:
GCM4Public open-source GCM service

The event

During the +GDG Vilnius event Hackathon: Google Cloud Messaging for Android, this open source project was created:
https://github.co... [read more]

App preview ([see all 3 screenshots])

App preview

About this app

On this page you can download GCM4Public DEMO open source and install on Windows PC. GCM4Public DEMO open source is free Education app, developed by Vilius Kraujutis. Latest version of GCM4Public DEMO open source is 1.0, was released on 2013-05-02 (updated on 2023-12-24). Estimated number of the downloads is more than 500. Overall rating of GCM4Public DEMO open source is 4,5. Generally most of the top apps on Android Store have rating of 4+. This app had been rated by 6 users, 4 users had rated it 5*, 1 users had rated it 1*.

How to install GCM4Public DEMO open source on Windows?

Instruction on how to install GCM4Public DEMO open source on Windows 10 Windows 11 PC & Laptop

In this post, I am going to show you how to install GCM4Public DEMO open source on Windows PC by using Android App Player such as BlueStacks, LDPlayer, Nox, KOPlayer, ...

Before you start, you will need to download the APK/XAPK installer file, you can find download button on top of this page. Save it to easy-to-find location.

[Note] You can also download older versions of this app on bottom of this page.

Below you will find a detailed step-by-step guide, but I want to give you a fast overview of how it works. All you need is an emulator that will emulate an Android device on your Windows PC and then you can install applications and use it - you see you're playing it on Android, but this runs not on a smartphone or tablet, it runs on a PC.

If this doesn't work on your PC, or you cannot install, comment here and we will help you!

Step By Step Guide To Install GCM4Public DEMO open source using BlueStacks

  1. Download and Install BlueStacks at: https://www.bluestacks.com. The installation procedure is quite simple. After successful installation, open the Bluestacks emulator. It may take some time to load the Bluestacks app initially. Once it is opened, you should be able to see the Home screen of Bluestacks.
  2. Open the APK/XAPK file: Double-click the APK/XAPK file to launch BlueStacks and install the application. If your APK/XAPK file doesn't automatically open BlueStacks, right-click on it and select Open with... Browse to the BlueStacks. You can also drag-and-drop the APK/XAPK file onto the BlueStacks home screen
  3. Once installed, click "GCM4Public DEMO open source" icon on the home screen to start using, it'll work like a charm :D

[Note 1] For better performance and compatibility, choose BlueStacks 5 Nougat 64-bit read more

[Note 2] about Bluetooth: At the moment, support for Bluetooth is not available on BlueStacks. Hence, apps that require control of Bluetooth may not work on BlueStacks.

How to install GCM4Public DEMO open source on Windows PC using NoxPlayer

  1. Download & Install NoxPlayer at: https://www.bignox.com. The installation is easy to carry out.
  2. Drag the APK/XAPK file to the NoxPlayer interface and drop it to install
  3. The installation process will take place quickly. After successful installation, you can find "GCM4Public DEMO open source" on the home screen of NoxPlayer, just click to open it.

Discussion

(*) is required

Download older versions

Other versions available: 1.0.

Download GCM4Public DEMO open source 1.0 on Windows PC – 166.1 KB

GCM4Public open-source GCM service

The event

During the +GDG Vilnius event Hackathon: Google Cloud Messaging for Android, this open source project was created:
https://github.com/gdgvilnius/GCM4Public-GAE-Server
The server

The Demo Android application using this GCM4Public service is open here:
https://github.com/gdgvilnius/GCM4Public-Android-Client

This is the Java class which sends GCM message:
https://github.com/gdgvilnius/GCM4Public-GAE-Server/blob/master/src/lt/andro/gcm4public/SendGCM2Clients.java
The client

To use Google Cloud Messaging for Android you need to register at Google's API console:
https://code.google.com/apis/console

This is the Java class responsible for handling GCM messages and registers on GCM4Public server:
https://github.com/gdgvilnius/GCM4Public-Android-Client/blob/master/src/lt/andro/gcm4public/GCMIntentService.java

Here you can see how device initiates registration on the GCM:
https://github.com/gdgvilnius/GCM4Public-Android-Client/blob/master/src/lt/andro/gcm4public/MainActivity.java
Sending messages

You'll get the project number (aka senderId) and API Key. These two are used in this service to send GCM notifications. And you need to provide it in this form: https://gcm4public.appspot.com/

The service is secure, because only senderId and phones registrationId are stored. The API key is not saved on server and you need to provide it every time you want to send a message to the server.
The senderId is used to filter app's users, so one application would not disturb other's users.

Multiple applications can use this single server: https://gcm4public.appspot.com/
Google App Engine

It's running on Google App Engine so it has some limitations, but I think, it might be running ok for few hundred small apps. If you have tens of thousands users, please fork the project on github and put on your separate Google App Engine account with separate daily limits.

Other resources

Blog post: http://www.andro.lt/2012/11/google-cloud-messaging-for-android.html


Google Cloud Messaging for Android by Francesco Nerieri:
https://developers.google.com/events/io/sessions/gooio2012/100/

and get the slides here:
http://commondatastorage.googleapis.com/io2012/presentations/live%20to%20website/100.pdf

If you want to read more, here is the link on developer.android.com about GCM for Android:
http://developer.android.com/guide/google/gcm/gs.html
Initial version.
Allows applications to open network sockets.
Allows access to the list of accounts in the Accounts Service.
Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming.
Allows access to the vibrator.