- Home /
You may not have purchased this app (OBB Expansion Files)
I apologise if this has already been answered but I've been getting confused with all the posts relating to this.
So I used the tutorial found here: http://www.exoa.fr/tutorial-unity-4-apk-splitting-google-play-obb/#comment-180
I had a bit of trouble with it to begin with, saying 'Resources cannot be found' but I think that was due to me incorrectly merging the AndroidManifest. Once this was fixed, I re-uploaded the APK and OBB (with correct Public Key) and waited overnight to test it, to make sure time wasn't an issue. Now when I open the app, it says 'Download failed because you may not have purchased this app'. I also made sure my email address has testing access and the licence test response is set to 'LICENSED'.
A couple of other things:
Version number is set to 1
I renamed my OBB and Bundle Identifier (In the Inspector) 'main.[VERSION.NUMBER].com.[COMPANY.NAME].[BUNDLE.ID].obb'
My app name is the same as the name on the Google Developer Console
I am using the Vuforia plugin
My AndroidManifest (once merged) looks like this:
http://schemas.android.com/apk/res/android" package="com.qualcomm.QCARUnityPlayer" android:versionCode="1" android:versionName="1.0">
<application android:icon="@drawable/app_icon" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:debuggable="false"> <activity android:name="com.qualcomm.QCARUnityPlayer.QCARPlayerProxyActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|
screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
</application>
<uses-permission android:name="com.android.vending.CHECK_LICENSE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</manifest>
<!-- android:installLocation="preferExternal" -->
I think thats about all the information I can muster. Can anyone have a crack at this? It would be greatly appreciated.
(Here's a screenshot of my AndroidManifest, as it doesn't format properly when copied and pasted)
Answer by HarshadK · Sep 04, 2014 at 12:43 PM
Here are few things to check:
You must publish your application in either alpha or beta distribution channel. As per APK Expansion Files documentation:
Previously you could test an app by uploading an unpublished "draft" version. This functionality is no longer supported; instead, you must publish it to the alpha or beta distribution channel.
Also check that you have set your version number to be 1.0 as it is specified in your menifest. In description above you have specified that 'Version number is set to 1'.
And sometimes you need to wait for longer than a night for files to propogate and being able to download.
Thanks very much for this! I'd read something previously about publishing it through Alpha or Beta but only ever saw it referenced once so didn't know if it was legit. This must be a recent thing as I'd tried with Expansion files about a year ago and you didn't have to do this. I shall give this a try then and see what happens, fingers crossed!
Here's a link to start with:
Thanks, thats very helpful. Just a quick question to prevent me learning the hard way: in the tutorial link in my question, he says to rename your obb 'main.[VERSION.NU$$anonymous$$BER].com.[CO$$anonymous$$PANY.NA$$anonymous$$E].[BUNDL$$anonymous$$ID].obb'; in my project build settings i named the Bundle Identifier the same. But now when I upload the .AP$$anonymous$$, it says 'Your AP$$anonymous$$ needs to have the package name 'com.[CO$$anonymous$$PANYNA$$anonymous$$E].[BUNDLEID]' Does this apply to the .obb and/or the Bundle Identifier? Thanks again
It applies to both the obb and bundle identifier.
The format for obb is: [main|patch].[VERSION.NU$$anonymous$$BER].com.[CO$$anonymous$$PANY.NA$$anonymous$$E].[BUNDL$$anonymous$$ID]
And for bundle identifier: com.[CO$$anonymous$$PANY.NA$$anonymous$$E].[BUNDL$$anonymous$$ID]