{"id":4515,"date":"2019-06-15T19:32:04","date_gmt":"2019-06-15T19:32:04","guid":{"rendered":"http:\/\/www.drmop.com\/?p=4515"},"modified":"2019-06-15T19:32:04","modified_gmt":"2019-06-15T19:32:04","slug":"igx-sdk-now-provides-on-device-debug-console-logging","status":"publish","type":"post","link":"http:\/\/www.drmop.com\/index.php\/2019\/06\/15\/igx-sdk-now-provides-on-device-debug-console-logging\/","title":{"rendered":"IGX SDK now provides On Device Debug Console Logging"},"content":{"rendered":"<p>Deploying <a href=\"https:\/\/github.com\/mrmop\/IGX\">HTML5 games that utilise the IGX SDK to mobile feature<\/a> 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:<\/p>\n<p>[sourcecode language=&#8221;js&#8221;]<br \/>\nif (FBInstant.ext !== undefined) \/\/ Make sure that IGX is available<br \/>\n{<br \/>\n    FBInstant.createDefaultServices(&quot;unity&quot;);<br \/>\n}<br \/>\n[\/sourcecode]<\/p>\n<p>You can now access the debugging services via FBInstant.ext.debug. The following functions are available:<\/p>\n<ul>\n<li>FBInstant.ext.debug.clear() &#8211; Clears the debug log<\/li>\n<li>FBInstant.ext.debug.log(string) &#8211; Sends a string to the debug log<\/li>\n<li>FBInstant.ext.debug.show(show) &#8211; Shows \/ hides the debug log overlay, show is a boolean that specifies the visible state<\/li>\n<\/ul>\n<h1>IGX &#8211; Cross portal and cross platform SDK for web game and instant game developers<\/h1>\n<p>IGX stands for Instant Games Extension, it is basically a replacement object for the Facebook Instant Games FBInstant object which enables developers to:<\/p>\n<ul>\n<li>Deploy games created that use the <a href=\"https:\/\/developers.facebook.com\/docs\/games\/instant-games\">Facebook Instant Games API<\/a> to the web and mobile with little to no code changes<\/li>\n<li>Deploy HTML5 web games to mobile<\/li>\n<li>Provide a common API across web portals<\/li>\n<li>Build instant game features into existing games before deploying to the Instant Games platform, saving valuable time and money<\/li>\n<li>Bolster the existing Instant Games platform with new features via FBInstant.ext, such as real time user to user communication<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[576,66,680,695,672,35],"tags":[711,712],"class_list":["post-4515","post","type-post","status-publish","format-standard","hentry","category-android-3","category-cool-news","category-facebook-instant-games","category-igx-sdk","category-instant-games","category-ios","tag-igx-sdk-update","tag-on-device-html5-debugging"],"_links":{"self":[{"href":"http:\/\/www.drmop.com\/index.php\/wp-json\/wp\/v2\/posts\/4515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.drmop.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.drmop.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.drmop.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.drmop.com\/index.php\/wp-json\/wp\/v2\/comments?post=4515"}],"version-history":[{"count":2,"href":"http:\/\/www.drmop.com\/index.php\/wp-json\/wp\/v2\/posts\/4515\/revisions"}],"predecessor-version":[{"id":4517,"href":"http:\/\/www.drmop.com\/index.php\/wp-json\/wp\/v2\/posts\/4515\/revisions\/4517"}],"wp:attachment":[{"href":"http:\/\/www.drmop.com\/index.php\/wp-json\/wp\/v2\/media?parent=4515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.drmop.com\/index.php\/wp-json\/wp\/v2\/categories?post=4515"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.drmop.com\/index.php\/wp-json\/wp\/v2\/tags?post=4515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}