I created my libgdx application as a IOSGLKViewApplication in a view of GLKView. I tried to call Gdx.net.openURI in my libgdx application. It works on Android side but have runtime error on iOS side with error message:
java.lang.NullPointerException: Attempt to invoke virtual method ‘boolean apple.uikit.UIApplication.canOpenURL(apple.foundation.NSURL)’ on a null object reference
Any idea? Is it because I’m not creating libgdx application as IOSApplication and so the Gdx.net object is not properly initialised? Any suggestion is welcomed.
I’m using libgdx 1.9.8, moe-gradle 1.4.3
Thanks and Regards,