In order to implement inAppPurchase using expo am facing some issues.am referring https://docs.expo.io/versions/latest/sdk/in-app-purchases.i followed all steps mentioned in the document.I ejected my expo for this.In my App.js i write a code to Connects to the app store.
App.js
import * as InAppPurchases from "expo-in-app-purchases";
export default class App extends React.Component {
componentDidMount = async() => {
const history = await InAppPurchases.connectAsync();
console.log("history", history); //Here it is getting undefined...
}
............
}
am getting this error in ios.am building the solution using xcode and run in real device. what should i do?