-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
getSubscriptions returns an empty array on iOS TestFlight build #2747
Comments
I'm having the same issue, did you find anything helpful? |
I ran into something similar. The things I had to do:
|
I managed to make it work. You have to make sure you have your Tax Information and Banking information filled out. Once I agreed to the terms and added banking info everything started working fine. You can find these agreements in App Store Connect > Business > {Select Own Business} Make sure you have the Agreements / Bank Accounts / Tax Forms filled out correctly. Hope this helps. |
Hey guys. How are you? Here is my code. `import React, { useState } from "react"; import { connect } from "react-redux"; import { _getPlanosAssinatura } from "../../services/shopService"; import BackgroundApp from "../../components/BackgroundApp/"; import { const skus = Platform.select({ const ApplePay = (Props: any) => { const [isLoading, setIsLoading] = useState(true); const getPlanosAssinatura = () => {
}; const getProductsAppleStore = async () => {
} useFocusEffect( return (
); const mapStateToProps = (state: AppState) => { const ApplePayconnect = connect(mapStateToProps)(ApplePay); const styles = StyleSheet.create({ |
Environment:
Description
Hello, I am trying to test the getSubscriptions() function in my TestFlight build for iOS. In my local setup I managed to fetch the subscriptions correctly when I created an App.storekit file in Xcode. I am trying to use my TestFlight build using the sandbox environment to test the same thing (fetching subscriptions) but the response is an empty array.
Expected Behavior
The code below should return the subscriptions and their details that I setup in the App Store Connect dashboard.
subscriptions = await getSubscriptions({skus: ['example_monthly_subscription', 'example_yearly_subscription']});
The response is an empty array. Am I missing a step to setup the sandbox environment for TestFlight correctly? Once I created the App.storekit file and sync the subscription content from App Store Connect, the response works perfectly fine if I load the app locally.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: