- Home /
Unity IAP Issue - Android
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.
Same issue. I've tried 2017.01 and 2017.02, the result is same.
Answer by Anipen · Feb 27, 2018 at 09:05 AM
Find UnityPurchasing - Bin - Android - GooglePlay.aar
Change GooglePlay.zip
UnCompress
AndroidManifest.xml Open
delete VRPurchaseActivity
delete GooglePlay.zip
Compress GooglePlay Folder
Rename GooglePlay.aar
you are my hero! i was tying to build for android 12, and neded the android:exported="false" tag for all the intent filters, and aanalizing the final merged manifest i founded this vrcore stuff and didnt had any idea from where it was coming from until i got to this post. THANK YOU!
Your answer
Follow this Question
Related Questions
Permissions added to Android Manifest, but Google Play not registering the change? 0 Answers
How do I use the Android Library in Unity? 0 Answers
OpenIAB In App 1 Answer
how can i integrate applovin and chartboost for android 0 Answers
Get Phone number of android mobile device - Android native code to Unity c# 3 Answers