distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

Improvements/clarification request for InAppBilling ANE #271

Closed minimedj closed 8 years ago

minimedj commented 9 years ago

Hi guys,

I have a problems that is very hard to detect. From time to time (I cannot provide more detailed stats at the moment but I will have in a while) InAppBilling ANE fails to load products. In case of failure I set timer and try to load products again when timer expires (in 5 seconds). I assume that this is a problem with Apple iTunes.

I see that other folks also have similar issues:

So, it would be great to hear from creators of ANE first hand best practice to handle this issue. Please tell me more details on this issue, so I better understand why and when it happens, so I fell more confident about it.

Thank you in advance!

crooksy88 commented 9 years ago

I recently experienced a similar issue and discovered it was my wifi connection causing the problem, even though I was showing a strong wifi signal. This might not be the reason in all cases but it's certainly worth checking your connection prior to testing remote services.

minimedj commented 9 years ago

@crooksy88 Thank you for mentioning, but this is not my case. My game heavily uses network connection (I have a socket connection always open with high traffic on it), so network connection is not likely a problem in my case.

p.s. I am sure there is still enough network throughput for InAppBilling ANE.

minimedj commented 9 years ago

Hi guys, I still experiencing problems with InAppBillingEvent.PRODUCTS_FAILED. 5% if my DAU have InAppBillingEvent.PRODUCTS_FAILED. That 5% has internet connection - this is how they report me about the problem.

What could be a reason for that?

marchbold commented 9 years ago

It could be so many things that it's impossible for us to diagnose with just that information.
Connectivity is the most likely and this doesn't just mean internet connectivity. There could be some issue with the network where the apple servers' aren't reachable or responding in that instant. I suggest you handle this event and re-query the service using some form of exponential back-off.

minimedj commented 9 years ago

@marchbold I have re-query functionality in place. The problem is that we see this problem on out test device and the worst thing is that other AIR apps have no issues with getting product list. (I have no idea which ANE do they use).

Is it possible to provide some extra information in error events, so I will try nail down the problem?

marchbold commented 9 years ago

Hi, Can you get the device console logs and post them here, I'll see if there's something I can identify there.