Sdkbox fyber plugin help

Thanks @mihir77, but I see CocosHelper is outdated. I need facebook too.

Thank you for your kind words.

Its not outdated just certain plugins are more in depth than others, what in Facebook do you require?

Hi @SonarSystems:

I see you are using 3.3.0 with Vungle, for example. Actually Vungle version is 3.3.2.

@SonarSystems I would like to use cocos console to compile my project. Is it possible? I see in your video you use eclipse to build the apk. Let me explain:

I would like to use

cocos compile -p android -m ā€¦

and it doesnā€™t mandatory use eclipse only for change to CocosHelper now. Is it possible?

Thanks!

Certain plugins such as Google Play Services require setup inside Eclipse but that generally isnā€™t avoidable, we trying the Helper. Once you go Helper you donā€™t go back.

If I need use Eclipse, how do I compile my Cocos2d-js project, @SonarSystems?

I want compile my javascript too. I use --compile-script 1 -j 3 with cocos console now.

Compilation is the same using the Cocos command but running needs to be done via Eclipse.

Check out this series of ours for more information http://www.sonarlearning.co.uk/coursepage.php?topic=game&course=cocos-console

Thanks for reply @SonarSystems. If Iā€™ve understood then:

  1. I add CocosHelper and setup my project on Eclipse.
  2. After I can use cocos console and it will use Eclipse setup without problems.

I thinked Eclipse project settings were saved in the workspace and cocos console doesnā€™t use this settings.

Compile is for Cocos2d-x, then Eclipse does its own build for Android specific stuff like what Google Play Services require :smiley:

Keep us informed of you progress.

Fyber also requires you to integrate other ad network in order for itā€™s mediation to work.

Did u check that issue ā€œclass not foundā€ for other ad networks?

Hi:

I take a decision. We are going to use only AdColony for the next release. It works, but 1/2 videos per session are provided only. I donā€™t know why. Maybe in the next release, we will use CocosHelper @SonarSystems. Our project is javascript and I see it can be a complex process. Thanks

@nite Fyber doesnā€™t work now. It crash when onVirtualCurrencyConnectorSuccess is called on SDKBox 1.4 + Android 4.2.2:

10-29 18:25:11.559: D/Cocos2dxActivity(7354): model=GT-S6500D
10-29 18:25:11.559: D/Cocos2dxActivity(7354): product=cm_jenad
10-29 18:25:11.559: D/Cocos2dxActivity(7354): isEmulator=false
10-29 18:25:11.589: D/PluginFyber(7354): onActivityResult
10-29 18:25:11.589: D/PluginFyber(7354): onActivityResult REWARDED_VIDEO_REQUEST_CODE879512 -1
10-29 18:25:11.599: D/cocos2d-x debug info(7354): JS: Fyber.onBrandEngageClientChangeStatus: status=1 msg=CLOSE_FINISHED
10-29 18:25:11.629: I/Choreographer(7354): Skipped 36 frames! The application may be doing too much work on its main thread.
10-29 18:25:13.319: D/cocos2d-x debug info(7354): reload all texture
10-29 18:25:13.929: D/dalvikvm(428): GC_EXPLICIT freed 578K, 24% free 10661K/13988K, paused 7ms+13ms, total 222ms
10-29 18:25:14.849: D/dalvikvm(7354): GC_CONCURRENT freed 349K, 14% free 3870K/4460K, paused 3ms+47ms, total 115ms
10-29 18:25:14.879: D/cocos2d-x debug info(7354): Dirty Uniform and Attributes of GLProgramState
10-29 18:25:14.879: D/cocos2d-x debug info(7354): Dirty Uniform and Attributes of GLProgramState
10-29 18:25:14.879: D/cocos2d-x debug info(7354): Dirty Uniform and Attributes of GLProgramState
10-29 18:25:14.879: D/cocos2d-x debug info(7354): Dirty Uniform and Attributes of GLProgramState
10-29 18:25:14.969: D/cocos2d-x debug info(7354): Dirty Uniform and Attributes of GLProgramState
10-29 18:25:15.739: D/cocos2d-x debug info(7354): JS: Fyber.onVirtualCurrencyConnectorSuccess: deltaOfCoins=3 currencyId=chips currencyName=Chips transactionId=7451808121
10-29 18:25:15.829: A/libc(7354): Fatal signal 11 (SIGSEGV) at 0x00000030 (code=1), thread 7493 (Thread-771)
10-29 18:25:15.929: I/DEBUG(111): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-29 18:25:15.929: I/DEBUG(111): Build fingerprint: ā€˜samsung/cm_jenad/jenad:4.2.2/JDQ39E/df85040187:userdebug/test-keysā€™
10-29 18:25:15.929: I/DEBUG(111): Revision: ā€˜0ā€™
10-29 18:25:15.929: I/DEBUG(111): pid: 7354, tid: 7493, name: Thread-771 >>> com.thedigitalspell.colorcast.original <<<
10-29 18:25:15.929: I/DEBUG(111): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000030

NOTE: Please, complete your documentation adding this activity to enable Rewarded Video: <activity android:name="com.fyber.ads.videos.RewardedVideoActivity" android:configChanges="screenSize|orientation" android:hardwareAccelerated="true" android:theme="@android:style/Theme.Translucent" />

So what Iā€™ll do is create a sample with adcolony, vungle, chartboost integrated. And Iā€™ll let you try it out.

Let us know when you are going to use the Cocos Helper as we can help you integrate it.

If you see this warning most likely is because vungle network has not been linked correctly

I added vungle adcolony and chartboost to fyber sample with

sdkbox import adcolony
sdkbox import vungle
sdkbox import chartboost

And change the linker flag to -ObjC, everything seems working as expected.

All the latest changes are here.
https://github.com/chukong/sdkbox-fyber-sample

Note: only the cpp project is updated ATM, working on upgrading JS project now.

1 Like

Thanks for reporting this bug, weā€™ll update the documentation and installer

Iā€™ll also look into this JS issue.

1 Like

Thanks @nite,

I wanted to use fyber for inmobi and flurry ads more than adcolony and vungle, how can i add inmobi and flurry as well?

And how to add those changes in my json files and add those frameworks in my ios and android folder?

Should i just do -

sdkbox import adcolony
sdkbox import vungle
sdkbox import chartboost

Our project is JS. When the JS sample is ready, Iā€™ll try again.

Thanks @nite

NOTE: Iā€™ve seen the C++ sample, but you donā€™t use Fyber SDK Bundles/Adapters.
We need a sample using:

For inmobi and flurry, you have to follow fyberā€™s guide to integrate those frameworks manually

Maybe you can try cocoapod and see if it will make iOS integration easier.
Always make sure the -Objc flag, so fyber can find those third party SDKs