From e2a47f5685918cd0a535766ee582f5a7156bdaf7 Mon Sep 17 00:00:00 2001 From: Thing-leoh Nicolas Date: Mon, 14 Feb 2022 15:01:42 +0100 Subject: [PATCH] [FIX] Android screen freeze Closes https://github.com/asmadsen/react-native-unity-view/issues/75 --- android/src/main/java/no/asmadsen/unity/view/UnityUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/src/main/java/no/asmadsen/unity/view/UnityUtils.java b/android/src/main/java/no/asmadsen/unity/view/UnityUtils.java index e27791b..d7b1ffb 100644 --- a/android/src/main/java/no/asmadsen/unity/view/UnityUtils.java +++ b/android/src/main/java/no/asmadsen/unity/view/UnityUtils.java @@ -77,6 +77,8 @@ public static void postMessage(String gameObject, String methodName, String mess if (!_isUnityReady) { return; } + pause(); + resume(); UnityPlayer.UnitySendMessage(gameObject, methodName, message); }