# Defold 1.2.134 has been released

**URL:** <https://forum.defold.com/t/defold-1-2-134-has-been-released/25866>\
**Category:** Release notes\
**Created:** [July 30, 2018, 3:13pm UTC](https://forum.defold.com/t/defold-1-2-134-has-been-released/25866 "2018-07-30T15:13:32Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![sven](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sven/32/1086_2.png) [@sven](https://forum.defold.com/u/sven)\
**Post date:** [July 30, 2018, 3:13pm UTC](https://forum.defold.com/t/defold-1-2-134-has-been-released/25866/1 "2018-07-30T15:13:32Z")

</div>

# Defold 1.2.134

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.
- `DEF-3283` - **Fixed:** Google Chrome AutoPlay Policy Change breaks audio playback.

---

<div class="post-metadata">

**Author:** ![sven](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sven/32/1086_2.png) [@sven](https://forum.defold.com/u/sven)\
**Post date:** [July 30, 2018, 3:13pm UTC](https://forum.defold.com/t/defold-1-2-134-has-been-released/25866/2 "2018-07-30T15:13:45Z")

</div>



---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [July 31, 2018, 5:33am UTC](https://forum.defold.com/t/defold-1-2-134-has-been-released/25866/3 "2018-07-31T05:33:13Z")

</div>

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:

```
webview.set_position(id, x, y, width, height)

```

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [July 31, 2018, 5:47am UTC](https://forum.defold.com/t/defold-1-2-134-has-been-released/25866/4 "2018-07-31T05:47:36Z")

</div>

> [@sven](#):
>
> DEF-2878 - Added: Support for onActivityResult callbacks for Android NE.

Some documentation missing. New functionality (@sven and @Mathias_Westerdahl, correct me if I’m wrong).

In dmsdk/graphics/graphics\_native.h:

- [https://www.defold.com/ref/dmGraphics/#dmGraphics::GetNativeAndroidApp](https://www.defold.com/ref/dmGraphics/#dmGraphics::GetNativeAndroidApp)

In dmsdk/extension/extension.h:

```
/**
 * 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);

```

---

<div class="post-metadata">

**Author:** ![endel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/endel/32/41246_2.png) [@endel](https://forum.defold.com/u/endel)\
**Post date:** [August 1, 2018, 8:38pm UTC](https://forum.defold.com/t/defold-1-2-134-has-been-released/25866/5 "2018-08-01T20:38:55Z")

</div>

Don’t know if it’s a coincidence, but after this upgrade build times are taking ages on OSX. Maybe it was another change on my project, not sure yet.

---

<div class="post-metadata">

**Author:** ![endel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/endel/32/41246_2.png) [@endel](https://forum.defold.com/u/endel)\
**Post date:** [August 1, 2018, 9:20pm UTC](https://forum.defold.com/t/defold-1-2-134-has-been-released/25866/6 "2018-08-01T21:20:50Z")

</div>

Apparently it was just the first time that took a long while. Now it seems fine! Sorry to bother.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [August 2, 2018, 3:10am UTC](https://forum.defold.com/t/defold-1-2-134-has-been-released/25866/7 "2018-08-02T03:10:34Z")

</div>

If you use native extensions they need to be built once and then cached for the new version.

---

<div class="post-metadata">

**Author:** ![decoded](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/decoded/32/7134_2.png) [@decoded](https://forum.defold.com/u/decoded)\
**Post date:** [August 2, 2018, 7:06pm UTC](https://forum.defold.com/t/defold-1-2-134-has-been-released/25866/8 "2018-08-02T19:06:51Z")

</div>

I seem to have lost console output upgrading from 1.2.133-\>1.2.134

 ![Untitled](https://forum-defold-uploads.b-cdn.net/original/2X/5/5409f87efba7e013a54deb0e8e54bdcb68950dae.jpg)  
(Image of both after each building app)  
Previous version 1.2.133, still works. I am on Win7 x64 Platform.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [August 3, 2018, 3:59am UTC](https://forum.defold.com/t/defold-1-2-134-has-been-released/25866/9 "2018-08-03T03:59:37Z")

</div>

Can you please try resizing the console pane? Also restarting? Try a new empty project with a script and a print in init().

---

<div class="post-metadata">

**Author:** ![decoded](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/decoded/32/7134_2.png) [@decoded](https://forum.defold.com/u/decoded)\
**Post date:** [August 3, 2018, 4:33am UTC](https://forum.defold.com/t/defold-1-2-134-has-been-released/25866/10 "2018-08-03T04:33:13Z")

</div>

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… 🤔

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [August 3, 2018, 4:56am UTC](https://forum.defold.com/t/defold-1-2-134-has-been-released/25866/11 "2018-08-03T04:56:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![decoded](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/decoded/32/7134_2.png) [@decoded](https://forum.defold.com/u/decoded)\
**Post date:** [August 3, 2018, 2:04pm UTC](https://forum.defold.com/t/defold-1-2-134-has-been-released/25866/12 "2018-08-03T14:04:11Z")

</div>

Yes. That sounds correct - and now I see and understand.

DEF-3383 - Fixed: Editor now builds custom engine if only an app manifest is specified.
