Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IAPManager - no response & no error message #670

Open
smith-chris opened this issue May 7, 2019 · 0 comments
Open

IAPManager - no response & no error message #670

smith-chris opened this issue May 7, 2019 · 0 comments

Comments

@smith-chris
Copy link

I believe I did setup everything correctly apart from Paid Apps - Agreements, Tax & Billing. According to stackoverflow this is the reason why testing IAP on sandbox user is not working.

I think it would be wise to give any information to the developer why the request is failing. I've debugged the native part of the binding and the "productsRequest" callback method (or rather delegate? I'm new to obj-c) is never called. Following stackoverflow further, I've added this piece of code to the implementation of "EJBindingIAPManager":

- (void)request:(SKRequest *)request didFailWithError:(NSError *)error {
    NSLog(@"IAP: request - didFailWithError: %@", [[error userInfo] objectForKey:@"NSLocalizedDescription"]);
}

But it still gives me nothing. I have single log in the xcode console apart from "IAP: Requesting product info: fvv.extraTime".
I think there should be a developer friendly message send to the js regardless of what kind of error happens, whether it's the developer not setting up thing correctly or apple server not responding in time.
Right now you'd have to timeout the request by hand on js side and show generic error to the user.

What would be the way to catch all request errors in this situation?
I just started learning obj-c yesterday so I feel a bit lost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant