jamesmontemagno / InAppBillingPlugin

Cross-platform In App Billing Plugin for .NET
MIT License
635 stars 152 forks source link

iOS 11 Error #79

Closed cklenk closed 7 years ago

cklenk commented 7 years ago

Bug Information

Version Number of Plugin: 1.2.2 Device Tested On: iPhone 5s iOS 11 Simulator Tested On: N/A Version of VS: 2017 Pro Version of Xamarin: 4.6.3.4 Versions of other things you are using: Xamarin.Forms: 2.3.4.270

Steps to reproduce the Behavior

Just updated the phone to iOS 11. I then tried to make a call to PurchaseAsync with item Type of Subscription.

Actual Behavior

Throws InAppBillingPurchaseException - cannot connect to iTunes store

Code snippet

  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.0.0.0/src/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:151 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.0.0.0/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.0.0.0/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.0.0.0/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <6314851f133e4e74a2e96356deaa0c6c>:0 
  at Plugin.InAppBilling.InAppBillingImplementation+<PurchaseAsync>d__11.MoveNext () [0x0002b] in C:\projects\inappbillingplugin\src\Plugin.InAppBilling.iOS\InAppBillingImplementation.cs:144 
cklenk commented 7 years ago

I have also noticed the sign into the iTunes store pop-up appears twice. I try to sign in with my sandbox account and right after I hit buy the same dialog opens again asking me to sign in. After I sign in the second time is when I get the cannot connect to iTunes store. And according to https://www.apple.com/support/systemstatus/ it all seems to be working.

jamesmontemagno commented 7 years ago

Please see: https://jamesmontemagno.github.io/InAppBillingPlugin/TestingAndTroubleshooting.html

Works fine for me

sinclas commented 6 years ago

I keep getting the login pop-up. When I hit cancel it will throw the exception Cannot connect to the iTunes store. This was working fine in the sandbox and then I updated to iOS 11. Seems to not be working anymore and the only change I made was the updated OS(11). so I might be missing something new?

cklenk commented 6 years ago

Do you need to be using the AppStore build configuration when testing sandbox IAP?

jamesmontemagno commented 6 years ago

Are the version numbers the same as what has been published up?

Most likely has nothing to do with plugin, just setup. Google around for testing in sand box it is trouble for everyone ever.

sinclas commented 6 years ago

Hi,

Thanks for the reply. After going through the check lists on how to resolve this, I found the issue this morning. Somehow after the 11 update, iTunes Connect was showing that there was a bank field missing called Account Type. This must have been recently added, since I have had the sandbox working for over two months! When I fixed the error by logging into iTunes Connect, select the account type and waiting for about 5 hours, the sandbox user started working again. Ugh! note to self: Check itunes connect FIRST, before debugging the tech!!

Thanks for the replies. Problem resolved.

Steve

On Oct 2, 2017, at 7:47 AM, James Montemagno notifications@github.com wrote:

Are the version numbers the same as what has been published up?

Most likely has nothing to do with plugin, just setup. Google around for testing in sand box it is trouble for everyone ever.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jamesmontemagno/InAppBillingPlugin/issues/79#issuecomment-333523788, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPzdPCQ_atbaUAdN7SFcU5cV4GNZXlIks5soNtOgaJpZM4PeU2d.

cklenk commented 6 years ago

@sinclas where was Account Type missing?

Thanks

sunkarikranthi commented 6 years ago

## Throws InAppBillingPurchaseException - cannot connect to iTunes store I tried for long time by updating packages changing code, but could not solved. Can you help me in this...

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.0.0.0/src/mono/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:151 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00037] in /Library/Frameworks/Xamarin.iOS.framework/Versions/11.0.0.0/src/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:187