Ok im sure you guys got excited by the title but its not there yet...
I see some people have given this some thought but nobody has really tried to implement it im sure everyone's been wanting it from what i see and the webview that cocoonJS allowes it shouldnt be to hard what im going to do is take scirras facebook plugin and transform it to work with webvies in cocoonJS i have a pretty good plan so far. Please i would appretiate some input and suggestions from anyone that has any idea what i talking about
steps im going to take
1.send out a call to the exterior webview page so that instead of this thats in the facebook plugin
Acts.prototype.PromptWallPost = function ()
{
if (this.runtime.isDomFree || !fbLoggedIn)
?return;
?
FB.ui({ "method": "feed" }, function(response) {
if (!response || response.error)
console.error(response);
?});
};
to put
Acts.prototype.PromptWallPost = function ()
{
if ( window['c2cocoonjs'] || !fbLoggedIn)
{
?
CocoonJS['App']['forwardAsync']( "PromptTheWallPost( )");
return;
};
and in the webview folder put
this function
PromptTheWallPost( ){
FB.ui({ "method": "feed" }, function(response) {
if (!response || response.error)
console.error(response);
?});
}
Now im still in the planning stages of how im going to tackle this plugin (in my opinion the most important one construct2 comes with)so we can have the best features of html5 within our cocoonJS app which means leader boards achievements and whatever facebook feature the app offers through the web will work with (cocoonJS)android apple and our facebook apps will all be in sync!!
I cant help but feeling i might be missing a step or two please let me know guys N gals any input would be awesome and if anyone is down to tackle this project with me?