Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 OZ-AArts · Jun 11, 2014 at 06:07 AM · iapu3dxt

U3DXT IAP - prevent pending transactions from starting download after Init()

Hello there,

I'm struggling to get the process of my InAppPurchase - Download working smooth. The download itself is working just fine (thanks for that ;) ), but if i close my App while downloading I have a problem when i restart the App.

Immediatly after initialising the IAPXT with all OR one of my "productIds" the pending download that was canceled, starts running again. It would be ok, if only the productID I selected starts again or even that i have to start the download all over. The way it works now means, that i have to complete a started download before I can start another one or there a two downloads running, which I just dont want to support.

Is there a way to only restart specific downloads or to delete all downloads from the PaymentQueue?

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 u3dxt · Jun 11, 2014 at 04:27 PM

Hi, you can use SKPaymentQueue.CancelDownloads() method passing in an array of SKDownload objects: http://u3dxt.com/api/?topic=html/M_U3DXT_iOS_Native_StoreKit_SKPaymentQueue_CancelDownloads.htm. The IAPXT.DownloadUpdated event has an array of SKDownload objects. You can give the user a cancel button which calls this method. But I would think if the app closes without pressing cancel, it should continue downloading when it launches.

 SKDownload[] downloads; // get it from IAPXT.DownloadUpdated event
 
 SKPaymentQueue.DefaultQueue().CancelDownload(downloads);

Hope this helps.

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

22 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

Related Questions

IAP init failed? 3 Answers

Validating IAP Restore with U3DXT 0 Answers

U3DXT Init failed, everything is setup 1 Answer

How to get local currency u3dxt 1 Answer

I am using U3DXT plugin for iOS IAPs and I am receiving the following error which results in purchase process not occurring. Any ideas? 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