Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by sperepel · Apr 25, 2018 at 10:24 AM · buildiapcloudpurchase

Codeless IAP not working after Cloud Build

Hi, I setup codeless iap with three items and the committed it to the cloud. After that I try to do android build and deploy it to internal test. When I test the buttons they don't do anything. I looked in the log and I see that my purchase ids are empty. But I have them in my iap buttons.

Here is my log (I replaced ids in the log for app and user and so on):

 04-24 06:30:09.688: E/Unity(27157): The file '/storage/emulated/0/Android/obb/com.futureintellect.spellbound/main.39.com.futureintellect.spellbound.obb/assets/bin/Data/level14' is corrupted! Remove it and launch unity again!
 04-24 06:30:09.688: E/Unity(27157): [Position out of bounds!]
 04-24 06:30:09.688: E/Unity(27157):  
 04-24 06:30:09.688: E/Unity(27157): (Filename:  Line: 221)
 04-24 06:30:09.698: E/Unity(27157): The file '/storage/emulated/0/Android/obb/com.futureintellect.spellbound/main.39.com.futureintellect.spellbound.obb/assets/bin/Data/level14' is corrupted! Remove it and launch unity again!
 04-24 06:30:09.698: E/Unity(27157): [Position out of bounds!]
 04-24 06:30:09.698: E/Unity(27157):  
 04-24 06:30:09.698: E/Unity(27157): (Filename:  Line: 221)
 04-24 06:30:09.698: E/Unity(27157): The file '/storage/emulated/0/Android/obb/com.futureintellect.spellbound/main.39.com.futureintellect.spellbound.obb/assets/bin/Data/level14' is corrupted! Remove it and launch unity again!
 04-24 06:30:09.698: E/Unity(27157): [Position out of bounds!]
 04-24 06:30:09.698: E/Unity(27157):  
 04-24 06:30:09.698: E/Unity(27157): (Filename:  Line: 221)
 04-24 06:30:09.773: I/Unity(27157): UnityIAP Version: 1.18.0
 04-24 06:30:09.773: I/Unity(27157):  
 04-24 06:30:09.773: I/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:09.879: I/UnityIAP(27157): IAB helper created.
 04-24 06:30:09.953: I/Unity(27157): File Path: /storage/emulated/0/Android/data/com.futureintellect.spellbound/files/Unity/appid/IAP/store.json
 04-24 06:30:09.953: I/Unity(27157):  
 04-24 06:30:09.953: I/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:09.988: I/Unity(27157): Fetching optimized store details from https://ecommerce.iap.unity3d.com/catalog?appid=appid&deviceid=deviceid&userid=userid
 04-24 06:30:09.988: I/Unity(27157):  
 04-24 06:30:09.988: I/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:10.059: E/Unity(27157): IAPButton productId is empty
 04-24 06:30:10.059: E/Unity(27157):  
 04-24 06:30:10.059: E/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:10.060: W/Unity(27157): The product catalog has no product with the ID ""
 04-24 06:30:10.060: W/Unity(27157):  
 04-24 06:30:10.060: W/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:10.060: E/Unity(27157): IAPButton productId is empty
 04-24 06:30:10.060: E/Unity(27157):  
 04-24 06:30:10.060: E/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:10.060: W/Unity(27157): The product catalog has no product with the ID ""
 04-24 06:30:10.060: W/Unity(27157):  
 04-24 06:30:10.060: W/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:10.060: E/Unity(27157): IAPButton productId is empty
 04-24 06:30:10.060: E/Unity(27157):  
 04-24 06:30:10.060: E/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:10.060: W/Unity(27157): The product catalog has no product with the ID ""
 04-24 06:30:10.060: W/Unity(27157):  
 04-24 06:30:10.060: W/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:10.316: I/Unity(27157): Failed to fetch IAP catalog due to unexpected http status code, attempting to use cache
 04-24 06:30:10.316: I/Unity(27157):  
 04-24 06:30:10.316: I/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:10.341: I/UnityIAP(27157): Starting in-app billing setup.
 04-24 06:30:10.370: I/UnityIAP(27157): Billing service connected.
 04-24 06:30:10.371: I/UnityIAP(27157): invoking callback
 04-24 06:30:10.371: I/UnityIAP(27157): Checking for in-app billing 3 support.
 04-24 06:30:10.387: I/UnityIAP(27157): In-app billing version 3 supported for com.futureintellect.spellbound
 04-24 06:30:10.389: I/UnityIAP(27157): Subscriptions AVAILABLE.
 04-24 06:30:10.391: I/UnityIAP(27157): VR supported.
 04-24 06:30:10.392: I/UnityIAP(27157): onIabSetupFinished: 0
 04-24 06:30:10.392: I/UnityIAP(27157): Requesting 3 products
 04-24 06:30:10.392: I/UnityIAP(27157): QueryInventory: 3
 04-24 06:30:10.393: I/UnityIAP(27157): invoking callback
 04-24 06:30:10.394: I/UnityIAP(27157): Querying owned items, item type: inapp
 04-24 06:30:10.394: I/UnityIAP(27157): Package name: com.futureintellect.spellbound
 04-24 06:30:10.395: I/UnityIAP(27157): Calling getPurchases with continuation token: null
 04-24 06:30:10.397: I/UnityIAP(27157): Owned items response: 0
 04-24 06:30:10.397: I/UnityIAP(27157): Continuation token: null
 04-24 06:30:10.397: I/UnityIAP(27157): Querying SKU details.
 04-24 06:30:10.415: I/UnityIAP(27157): Querying owned items, item type: subs
 04-24 06:30:10.415: I/UnityIAP(27157): Package name: com.futureintellect.spellbound
 04-24 06:30:10.415: I/UnityIAP(27157): Calling getPurchases with continuation token: null
 04-24 06:30:10.545: I/UnityIAP(27157): Owned items response: 0
 04-24 06:30:10.545: I/UnityIAP(27157): Continuation token: null
 04-24 06:30:10.545: I/UnityIAP(27157): Querying SKU details.
 04-24 06:30:10.554: I/UnityIAP(27157): onQueryInventoryFinished: true
 04-24 06:30:10.554: I/UnityIAP(27157): Inventory refresh successful. (response: 0:OK)
 04-24 06:30:10.622: I/Unity(27157): UnityIAP: Promo is ready
 04-24 06:30:10.622: I/Unity(27157):  
 04-24 06:30:10.622: I/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:14.362: I/Unity(27157): IAPButton.PurchaseProduct() with product ID: 
 04-24 06:30:14.362: I/Unity(27157):  
 04-24 06:30:14.362: I/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:14.365: W/Unity(27157): Unable to purchase unknown product with id: {0}: 
 04-24 06:30:14.365: W/Unity(27157):  
 04-24 06:30:14.365: W/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:14.367: I/Unity(27157): Trying to purchase null Product
 04-24 06:30:14.367: I/Unity(27157):  
 04-24 06:30:14.367: I/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:18.043: I/Unity(27157): IAPButton.PurchaseProduct() with product ID: 
 04-24 06:30:18.043: I/Unity(27157):  
 04-24 06:30:18.043: I/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:18.043: W/Unity(27157): Unable to purchase unknown product with id: {0}: 
 04-24 06:30:18.043: W/Unity(27157):  
 04-24 06:30:18.043: W/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:18.043: I/Unity(27157): Trying to purchase null Product
 04-24 06:30:18.043: I/Unity(27157):  
 04-24 06:30:18.043: I/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:21.230: I/Unity(27157): IAPButton.PurchaseProduct() with product ID: 
 04-24 06:30:21.230: I/Unity(27157):  
 04-24 06:30:21.230: I/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:21.230: W/Unity(27157): Unable to purchase unknown product with id: {0}: 
 04-24 06:30:21.230: W/Unity(27157):  
 04-24 06:30:21.230: W/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:21.230: I/Unity(27157): Trying to purchase null Product
 04-24 06:30:21.230: I/Unity(27157):  
 04-24 06:30:21.230: I/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
 04-24 06:30:22.803: I/Unity(27157): no messages
 04-24 06:30:22.803: I/Unity(27157):  
 04-24 06:30:22.803: I/Unity(27157): (Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Can anyone please help me?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by sergeperepel · May 01, 2018 at 03:17 PM

I figured it out - I had to include define in my cloud build (UNITY_PURCHASING)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

86 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unable to get Unity IAP working in Test Flight 0 Answers

Distribute terrain in zones 3 Answers

some unity IAP q's 1 Answer

Build with in-app purchase 1 Answer

Unity IAP not working for android need google public key 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges