onPause/onResume in a Unity plugin for Android

android, unity-game-engine

Solution

You don't need an Android Unity plugin for onPause/onResume.

This unity callback is tied to Android's onPause/onResume callbacks. http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnApplicationPause.html

Problem

I'm developing a Unity plugin for an Android SDK. This SDK, in its native form, needs to receive onResume/pause notifications from the app in order to work properly. How can I get notifications for onResume/onPause from inside a Unity plugin? Thanks for your help!

Original source