Code Monkey home page Code Monkey logo

cocoonjs-plugins's People

Contributors

abdul-martinez avatar andyperlitch avatar karliky avatar libelulav avatar mattdesl avatar mortimergoro avatar naeemkhedarun avatar rogersolsona avatar

Stargazers

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

Watchers

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

cocoonjs-plugins's Issues

fb.getPermissions send back the wrong parameter

Hi,

Line 274 of cocoon_facebook.js,

the function "getPermission" doesn't work because it calls the callback function with the wrong information.

callback(response.data && response.data[0] ? response.data[0] : {});

Facebook API v2.2 respond to /me/permissions with an array of objects.
This fix works :

callback(response.data ? response.data : {});

Regards.

Local notifications don't work with Canvas+

If I use Canvas+, all local notifications are received immediately after I send them, no matter what time I set in notification properties (date). If I use Webview, it works fine.

add download method in namespace app

This method could be great very useful, for example when you purchase a picture you can then download it like an order :

Cocoon.App.downloadFile(url, filename, storageType, callback)

Cocoon.Social.GameCenter.Score constructor called with improper arguments

On line 516 of cocoon_game_center.js, a new Cocoon.Social.GameCenter.Score is created, but the argument list is incorrect.

The following json structure is expected in the gcScore variable at this point:

{
  "category": "[string]",
  "date": [timestamp],
  "formattedValue": "[string]
  "playerID": "[playerID]"
  "rank": [number]
  "value": [number]
}

As you can see, this new score object's constructor is being passed the following arguments:

  1. gcScore.playerID
  2. gcScore.value
  3. empty string
  4. empty string
  5. gcScore.category

However, the Cocoon.Social.GameCenter.Score constructor is expecting a value and a category as the only two arguments.

I propose that Cocoon.Social.GameCenter.Score follow the same interface that Cocoon.Social.Score, with the original object from the game center added to it for game center-specific stuff.

I'll work on a pull request for this.

Prismatic joints in cocoon_box2d.js?

Hi, I really need the cocoon_box2d.js for a game I'm developing, but the current implementation is missing prismatic joints - a key feature already in my game!

Please help, I've invested almost a year into this game!

GooglePlayGames - getter for Access Token

There is currently no way to retrieve the access token after logging the user in with the social interface. The access token can be useful to have when authenticating with a back end. The Facebook plugin provides a method in the social interface called getAuthResponse(), something similar to this for GooglePlayGames would be helpful.

publish to bower

Hey guys,

It is awesome that you have moved this to github. Have you thought about registering this to bower?

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.