Unable to connect to Expo In App purchases for android default.connectAsync not defined

expo: 40
os: Android
expo-in-app-purchases

###Steps to Reproduce

npm install expo-in-app-purchases
npm install react-native-unimodules

In my LoadingScreen.js

import * as InAppPurchases from 'expo-in-app-purchases';

componentDidMount() {		
     this.getDetails()
}

getDetails = async () => {
			const history = await InAppPurchases.connectAsync();
}

Actual Behavior

The result is…
undefined is not an object (evaluating ‘_ExpoInAppPurchases.default.connectAsync’)
if I use

await InAppPurchases.connectAsync();

Is this a bug in expo ?

1 Like

I am also facing the same problem @dorapax , Did you find a solution ?

@looot You have to eject from expo and work in bare workflow to implement in app purchases. Unfortunately there is no other solution yet.

There’s a feature request for managed workflow and it’s marked as Planned and not yet implemented : In App Purchases | Voters | Expo

1 Like

Thanks for your answer. @dorapax .