Code Monkey home page Code Monkey logo

syncano-android's People

Contributors

ilonajulczuk avatar mariuszwisniewski avatar mkucharz avatar mshusek avatar msuska avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

syncano-android's Issues

Real Time Data consumption even in background...

Jus wondering before I dive in on my own recipe....

Have you guys been cooking up ways to still get the data even when the activity/app is in the background....

It seems now when we come back to an activity that is receiving real time channel data, that we have to make calls to syncano and check what we missed since the last data we received.

as opposed to the app always receiving the data, storing it in the background and displaying it upon return.

thanks for the lib...

Consistently getting 404 not found while trying to create object....

I'm using this code to attempt to create an object on a class....

POJO

@SyncanoClass(name = "inapp")
public class InApp extends SyncanoObject{

    public static final String FIELD_EVENT = "eventt";

    @SyncanoField(name = FIELD_EVENT)
    public String event;

}

IMPL

....
  static Syncano syncano;

  syncano = new Syncano(BuildConfig.SYNCANO_KEY, BuildConfig.SYNCANO_GLOBAL_INSTANCE);

InApp inApp = new InApp();
        inApp.event = "event";
        Log.d(TAG,inApp.toString());

        Response<InApp> responseCreateObject = syncano.createObject(inApp).send();

        if (responseCreateObject.getResultCode() == Response.CODE_SUCCESS) {
            slackApi.call(new SlackMessage(String.valueOf(Response.CODE_SUCCESS)));
        } else if (responseCreateObject.getResultCode() == Response.CODE_HTTP_ERROR) {
            Log.d(TAG, "Result Code: " + responseCreateObject.getHttpResultCode());
            Log.d(TAG, "Reason Phrase: " + responseCreateObject.getHttpReasonPhrase());
            slackApi.call(new SlackMessage(String.valueOf(responseCreateObject.getHttpResultCode())));
            slackApi.call(new SlackMessage(String.valueOf(responseCreateObject.getHttpReasonPhrase())));
        }
10-22 20:17:35.475 31011-31347/com.xxxx D/xxx: Result Code: 404
10-22 20:17:35.475 31011-31347/com.xxxx D/xxx: Reason Phrase: NOT FOUND

The class exist in the dashboard, I made the class using python library....
I can make a object from python client no problem....

Is there a working Android example?

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.