hotstu commented on issue #2884: require callbacks when WXSDKEngine.initialize complete URL: https://github.com/apache/incubator-weex/issues/2884#issuecomment-529355279 ok, here is my workaround for someone meeting the same issue. ``` if (WXSDKEngine.isInitialized()) { Log.d(TAG, "init-->1"); mWXSDKInstance.renderByUrl(pageName, mUri.toString(), null, null, WXRenderStrategy.APPEND_ASYNC); } else { Log.d(TAG, "init-->2"); Handler handler = new Handler(); final long[] delayed = new long[1]; delayed[0] = 100; handler.postDelayed(new Runnable() { @Override public void run() { if (WXSDKEngine.isInitialized()) { Log.d(TAG, "init-->3:" + delayed[0]); mWXSDKInstance.renderByUrl(pageName, mUri.toString(), null, null, WXRenderStrategy.APPEND_ASYNC); } else { delayed[0] += 100; handler.postDelayed(this, 100); } } }, 100); } ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
