Code Monkey home page Code Monkey logo

jionic's Introduction

jionic

Java implementation of simple server side task for the ionic framework. First implementation is only ionic push.

Installation

Just add the following to your pom.xml :

<dependency>
	<groupId>dk.braintrust.ionic</groupId>
	<artifactId>push</artifactId>
	<version>0.2.0-SNAPSHOT</version>
</dependency>

PS: Snapshot release only at the moment. I will cleanup code and implement some more before making a real release.

Prerequisites

Before you are able to push via the Ionic platform, you should have all your apple APN and Google GCM certificates etc. in order. You should also have pushed and uploaded your app to ionic and received a private key and an app_id which should be used for a push scenario.

For further installation guide, please see the ionic guides: http://docs.ionic.io/push/quick-start/

Push

To do a push message to the ionic platform (and hence to APN and GCM), create an ionic object with your application id private key, like so:

Ionic i = new Ionic("xxxx", "xxxx");
i.push(json);

The json input should, of course be correct JSON formated, otherwise an exception will arise.

To retrieve status of a push message, you just have to get the message id of your previous push and pass it to this method:

i.getPushStatus(messageId);

All responses from the REST endpoints are in String types. Hence you can choose your own serializer (e.g jackson, Gson etc.)

TODOs

  • Test new beta API
  • Spring boot enable it
  • package it and ship it to maven central repository

jionic's People

Contributors

jasondemorrow avatar zooldk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

muhammadarslan

jionic's Issues

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.