Code Monkey home page Code Monkey logo

my_postman-app's Introduction

MyPostman App

๐Ÿ“ฌ Android app with various advance features that enables you to Post JSON Data to a remote Api

This project is mainly aimed at making and app which establishes a connection between your backend api and info within our mobile. In the above source the app constantly posts various details about the messages recieved in the form of Json which is grabed from the server end and used as per requirements.

Whats happening in above app:

REQUEST RAW DATA:

POST /test.php HTTP/1.1
Host: somewebsitename.xyz
User-Agent: insomnia/6.3.2
Content-Type: application/json
Accept: */*
Content-Length: 145
Connection: keep-alive
{
  "device_id":"xxxxxxxxxxxxxx",
  "imei":"00000000000000000",
  "sim":"1",
  "timestamp":"1560573718",
  "no":"00000000",
  "message":"This is a test message"
}

RESPONSE RAW DATA:

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Content-Length: 194
Date: Sat, 15 Jun 2019 04:51:56 GMT
Server: LiteSpeed
Proxy-Connection: keep-alive
stdClass Object
(
    [device_id] => xxxxxxxxxxxxxx
    [imei] => 00000000000000000
    [sim] => 1
    [timestamp] => 1560573718
    [no] => 0000000000
    [message] => This is a test message
)

NOTE: THIS IS ONLY TEST DATA ON PRODUCTION CODE IT JUST RETURNS

{"status": "success"}

When does this occur?

There is broadcast reciever running continously which looks for incomming messages.So that it make the Post Request every time a new message is recieved

  • Works even the device is locked.
  • Option to add exemption to battery saver.
  • Service gets paused when ever internet gets disconnected and resumes back when connection is back.
  • Automatically starts in background as soon as mobile reboots or switches on.

In this way there is a possiblity to add several other features to adjust it as per your requirements.

Code implementation instructions:

**This will be made available soon**

Thank you flaticon.com for Awesome icon

my_postman-app's People

Contributors

nitishgadangi avatar

Stargazers

Robb Bankz avatar Alexander avatar  avatar

Watchers

James Cloos avatar

Forkers

alexrogalskiy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.