Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17078

[CocosJS] Problem Integrate Multi Plugin SDKBox in one Project!

$
0
0

@chichaa3 wrote:

Hi everyone, I integrating 2 plugin: Plugin IAP and Plugin Facebook in my project!

My problem is:

If I init 2 plugin as:
1. var configJson = {...};
2. sdkbox.IAP.init(configJson);
3. sdkbox.PluginFacebook.init();

Project had a error log:E/Facebook(2243): Failed to load config for Facebook
And methods use facebook_sdkbox is not use, with log:
E/Facebook(7263): Facebook plugin haven't been initialized.

But if I comment line init IAP or reOrder line init Plugin Facebook to the top of the IAP Plugin, error is disappear
1. sdkbox.PluginFacebook.init();
2. sdkbox.IAP.init(configJson);
=> OK

In my projectAndroid: res had sdkbox_config.json file: {
"android": {
"Facebook": {
"debug": false
}
},
"ios": {
"Facebook": {
"debug": true
}
}
}
====> Is that problem a bug when integrate multi Plugin in single Project ???
THANKS!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17078

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>