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 /
  • Help Room /
avatar image
0
Question by Ross_S · Aug 30, 2016 at 04:09 PM · iosnetworkiaprejected

App rejected for IPv6 network problem using Unity IAP service on Unity 5.4 iOS

As the question says - I'm using Unity 5.4 and the inbuilt IAP service for iOS ... but the binary has been rejected by iTunesConnect citing failure to work on an IPv6 network... From the other questions i've seen it seems to suggest that this was fixed by unity on 5.3.4 ... so.. confused as to why i'm getting this now. Anybody got any clues? Thanks

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by micktravels · Feb 24, 2017 at 07:46 PM

I just had my app rejected from the App Store for the same reason. I am using the latest Unity x5.5.1. I doubt it has anything to do with IPv6 specifically since Apple told me they didn't even try to test it on IPv4. Rather I think it's just a glitch with Unity's Purchasing agent that can happen to anyone at any time.

If you borrowed the sample Purchaser script from the Unity tutorial like I did, you will notice that there is no provision for an initialization failure. If OnInitializedFailed() is called, all it does is print a Debug.Log statement. Then that's it. The store is dead if you try to access it.

Instead of inadvertently giving up like that, I had the OnInitializedFailed() method call InitializePurchasing() again a few more times. Specifically I setup a watchdog counter and incremented:

 public void OnInitializeFailed(InitializationFailureReason error)
     {
         // Purchasing set-up has not succeeded. Check error for reason. Consider sharing this reason with the user.
         if (initFailWatchdog++ < 100) InitializePurchasing();
         else Debug.Log("Tried 100 times to initialize IAP store without success.");
     }

I don't know if 100 is the right number, maybe 10 would work. Maybe you could try every second forever instead of a fixed amount of times.

There's more to be done to make this solution robust (for example: what happens if there's no network connection, or the user turns on his network after all those initialization attempts), but it got me past the App Store approval.

Comment
Add comment · Show 2 · 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
avatar image ttesla · May 24, 2017 at 08:11 AM 0
Share

Rejected from the same reason. I'm also using Purchaser script. Thanks for the solution. (It could be improved to be tried every X seconds, forever)

avatar image c1pr1an · Feb 17, 2019 at 08:39 AM 0
Share

Thank you @micktravels I had the exact same problem and I implemented to retry every 0.2 seconds and it worked.

avatar image
0

Answer by erika_d · Sep 02, 2016 at 01:41 AM

@Triggly_Glix,

This is also being discussed on this forum thread, which might be helpful: http://forum.unity3d.com/threads/ios-submission-failed-due-to-purchase-failed-on-ipv6-only-wifi.428044/#post-2767624

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

98 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 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

Unity IOS IAP restore process 0 Answers

iOS Networking 1 Answer

I got an iOS iap bug 0 Answers

app store rejected my game ---> 64 bits devices crash... EXC_CRASH (SIGABRT) 0 Answers

Why does Apple think my Unity project is trying to access the camera? 6 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