New Google-VR sdk not working when using native plugin

Hello,

I am using my own android plugin, so in my manifest the main activity is com.namepackage.MyActivity, that extends from UnityPlayerActivity. Everything is working fine with the plugin, but the problem is that when the main activity is MyActivity cardboard does not work properly, and I get double vision.

However, if I use com.google.unity.GoogleUnityActivity as the main activity then everything is OK with Google VR and I don’t get double vision.

So, -----HOW CAN I USE MY OWN NATIVE PLUGIN IN UNITY WHEN USING LAST VERSION OF GOOGLE VR SDK?

Thank you in advance.

You might want to try extending the Google activity instead of the Unity one and see if that helps.

Also please make sure you are using the Daydream for Unity Tech Preview.

Actually, you shouldn’t override the Google activity if you are on the Tech Preview.

Without seeing your code or providing a repro project I can’t really tell you what may or may not be going on. Can you provide a simple repro project for us to look at?