IGX SDK now provides On Device Debug Console Logging

Deploying HTML5 games that utilise the IGX SDK to mobile feature will now give you access to a debug logging console that you can log text strings to and display on-device. This is great for debugging awkward issues across different devices. The Debugging service is automatically created for you when you create the Unity vendor via default service creation:

[sourcecode language=”js”]
if (FBInstant.ext !== undefined) // Make sure that IGX is available
{
FBInstant.createDefaultServices("unity");
}
[/sourcecode]

You can now access the debugging services via FBInstant.ext.debug. The following functions are available:

  • FBInstant.ext.debug.clear() – Clears the debug log
  • FBInstant.ext.debug.log(string) – Sends a string to the debug log
  • FBInstant.ext.debug.show(show) – Shows / hides the debug log overlay, show is a boolean that specifies the visible state

IGX – Cross portal and cross platform SDK for web game and instant game developers

IGX stands for Instant Games Extension, it is basically a replacement object for the Facebook Instant Games FBInstant object which enables developers to:

  • Deploy games created that use the Facebook Instant Games API to the web and mobile with little to no code changes
  • Deploy HTML5 web games to mobile
  • Provide a common API across web portals
  • Build instant game features into existing games before deploying to the Instant Games platform, saving valuable time and money
  • Bolster the existing Instant Games platform with new features via FBInstant.ext, such as real time user to user communication

Leave a Reply