Is there a way to send push notifications from an Android device to another one? -


i want create notification app. everytime phone receives notification app (for example messaging app), should send same notification android device doesn't have same app installed.

do maybe know start?

thank you

first need server. (one.com) or somethink else. there servers costs nothink, too. create app send messages server , app recieve (update 3min , send request server). can make request recieve messages google-service.

as sample:

1.your broadcast-app makes httprequest (make post .php site id , message)

2.your php site on server writes message mysql-table ($ message=$_post["message"] , $id=$_post['id'] => mysqli_query($database,"insert table ('id','message') values ($id,$message)");

3.your recieving app calls php-site http-request (maybe runs in background , 5 min. makes http-request site id

4.the second php: (select message table id=$_post['id']; if there message post message, else post error--maybe "false"

5.the app gets httprequest message or string false (if (answer!="false") make_a_push())

so need learn php,java http-request,mysql , putting together. 1 solution, there else this.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -