8000 GitHub - zooldk/jionic: Java implementation of simple server side task for the ionic framework.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zooldk/jionic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Java implementation of simple server side task for the ionic framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0