Contruct 2 project - black screen


#1
  • Cocoon Version:
    2.2.0

  • Basic description of the problem:
    black screen after Cocoon logo
    Error in Dev app:
    JavaScript Exception ( tag: ‘load’): TypeError: cannot read property ‘configure’ of undefined
    at pluginproto.instance.instanceProto.onCreate (c2runtime.js:15285:23)
    at Runtime.loadProject (c2runtime.js:4454:14)
    at XMLHttprequest.xhr.onload (c2runtime.js:3686:12)

I’m using the Cocoon plugins for C2 that allow the “rewarded video” events
C2 version: R265
Physics engine is set to “Box2D web” , loader to “percentage text”

  • Webview engine(s):
    Canvas+

  • Used plugins (if relevant):
    Admob native Ads android - Google Play Games Social API - Android Canvasplus

My XML in Cocoon (with edited ADS & SDK version number for the compilation to work)

	<platform name="android">
		<allow-intent href="market:*"/>
		<preference name="enabled" value="true"/>
	</platform>
	<platform name="ios">
		<allow-intent href="itms:*"/>
		<allow-intent href="itms-apps:*"/>
	</platform>
	<preference name="Orientation" value="landscape"/>
	<preference name="Fullscreen" value="true"/>
	<plugin name="cocoon-plugin-ads-android-admob" spec="1.0.12"/>
	<plugin name="cocoon-plugin-social-android-googleplaygames" spec="*">
		<variable name="APP_ID" value="179544219595"/>
	</plugin>
	<plugin name="com.ludei.canvasplus.ios" spec="*"/>
	<plugin name="com.ludei.canvasplus.android" spec="*"/>
	<preference name="cocoon-version" value="2.2.0"/>
	<preference name="android-targetSdkVersion" value="26"/>
	<preference name="android-minSdkVersion" value="20"/>
</widget>

Thanks for any help


#2

Hi,
can you share a capx example showing that problem?

Thanks a lot!