Hi all - I’m testing Codeless IAP on an Android device and getting an error on tap of the IAP button:
The class UnityEngine.VR.VRSettings could not be loaded, used in Stores
I took a look at the generated manifest and I see the following:
`
<activity android:name="com.unity.purchasing.googleplay.VRPurchaseActivity" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" android:enableVrMode="com.google.vr.vrcore/com.google.vr.vrcore.common.VrCoreListenerService" android:theme="@style/VrActivityTheme">
<intent-filter>
<action android:name="com.google.vr.vrcore.ACTION_NONE" />
<category android:name="com.google.intent.category.DAYDREAM" />
</intent-filter>
</activity>
`
My game does not have VR enabled in the build settings, and this error only started once I integrated the Unity IAP.
Questions:
- Is VR required to enable IAP?
- If not, is there a setting I’m missing that will disable this?
- Am I better off creating a Purchaser script and ditching the Codeless IAP?
Any help would be greatly appreciated! This is my first attempt at in-app purchases and getting a VR error kind of threw me for a loop.