Adobe® Flash®, Air® and more!

Menu

Requested extension com.adobe.ane.gameCenter is not supported for …

Some good man contacted to me today that doing the future game hit (I hope in this) and he use Adobe AIR for it. He was required the Game Center for iOS. Decision was taken to use free and official ANE by Adobe from updated in the March 2015 Gaming SDK, where was added support of iOS x64.

A little background info

Any platform can use own extension that could be packed in the same *.ane file:

Issue was in that if extension don’t have a native library for the platform – you will receive error: Requested extension %_id_% is not supported for %_platform_%.

If we create ANE for iOS and don’t develop for the rest – we can avoid this issues by developing default implementation that must not request any native code and must be executed on undeclared platforms.

In other words – workflow of default platform the same as you can use default in the switch:

Backing to the Game Center from Adobe – they don’t have default implementation and if you execute it for testing not on iOS – you will receive error. In our case this was:

Requested extension com.adobe.ane.gameCenter is not supported for Windows-x86.

Solution

Our luck was in isSupported method in exact ANE that was developed correctly and it’s skips native library code execution on absent platforms. We should re-use original library.swf from the ANE for default platform: