This release makes it possible to specify a screen position and size of webviews on mobile, it’s now also possible to display multiple webviews simultaneously. The webview callback now also receive the current URL loaded on both Android and iOS.
Native extensions for Android can now hook into the onActivityResult method of the main activity.
Engine
DEF-1973 - Added: API to set position and size of webviews.
DEF-2878 - Added: Support for onActivityResult callbacks for Android NE.
DEF-3368 - Fixed: Supply current webview URL in the callback for iOS.
DEF-3249 - Fixed: Mismatch in precision keywords between builtin model.vp and model.fp.
DEF-3383 - Fixed: Editor now builds custom engine if only an app manifest is specified.
DEF-3298 - Fixed:null accesses crash in the Android IAP module.
DEF-3381 - Fixed: Crash issue when getting default sample rate from AudioManager (Android).
DEF-3316 - Fixed: Crash if Android READ_PHONE_STATE permission is missing.
There’s a problem in the webview documentation (DEF-3394). The documentation shows the function webview.set_size(id, width, height). This function does not exist. The way to change size and position of a webview is like this:
/**
* Activity result callback function type. Monitors events from the main activity.
* Used with RegisterOnActivityResultListener() and UnregisterOnActivityResultListener()
*/
typedef void (*OnActivityResult)(void* env, void* activity, int32_t request_code, int32_t result_code, void* result);
/**
* Registers an activity result callback. Multiple listeners are allowed.
* @note [icon:android] Only available on Android
* @param [type:OnActivityResult] listener
*/
void RegisterAndroidOnActivityResultListener(OnActivityResult listener);
/**
* Unregisters an activity result callback
* @note [icon:android] Only available on Android
* @param [type:OnActivityResult] listener
*/
void UnregisterAndroidOnActivityResultListener(OnActivityResult listener);
It seems to be an issue with my current project, perhaps.
The console does work with an empty project, as a well as a few others that I have. But not this one…
Actually, I think I found something. I am declaring an App Manifest in game.project. If I remove the declaration of a custom manifest, the console works…
Ah, you’re likely removing the debug version of the engine and always replacing it with the release version. A release version of the engine will not print anything to the console. This is the same as checking the Release checkbox of the Bundle dialog when building without any native extensions.