php - What should I use to develop a simple messaging service in Android application? -


i new android programming , trying make app enables users send , receive messages. have database , apache set up. i've implemented login, registration of users , adding friends chat with.

now in order send , receive messages, use google cloud messaging service? gcm requires set backend on google cloud, right? have working backend, how can use existing database , apache server implement messaging? should write php script send , receive messages to/from android devices?

but gcm requires set backend on google cloud right

no don't need backend on google cloud. happens use own server (called "third-party server" in docs), send messages google's gcm server (using ccs protocol) relays on behalf phone.

the same happens in reverse: phone sends messages google's gcm server relays server.

here docs on getting started:

client implementation

server implementation


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -