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

RNIapActivityListener is not registered in your MainActivity.onCreate #2879

Open
devhaseebashraf opened this issue Nov 6, 2024 · 2 comments

Comments

@devhaseebashraf
Copy link

import {
initConnection,
getSubscriptions,
} from 'react-native-iap';

export default function Subscription({navigation, route}) {
const subscriptionSkus = Platform.select({
ios: [
'com.jobs.unlimited',
'com.jobs.limited',
],
android: ['com.jobs.unlimited', 'com.jobs.limited'],
default: [],
});

useEffect(() => {
initConnection()
.then(() => {
getSubscriptions({skus: subscriptionSkus}).then(res => {
console.log(res);
});
})
.catch(err => {
console.error(err);
});
}, []);

return ()
}

@dipen-apptrait
Copy link

Did you find any solution?

@PoojaAppinventiv
Copy link

I'm also facing same issue, any solution for this ?

{"error": [java.lang.Exception: RNIapActivityListener is not registered in your MainActivity.onCreate], "message": "finishTransaction"}

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

3 participants