Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Unknown facebook::jni::JniException error #3184

@HuskyGod

Description

@HuskyGod

I have a little problem. When I call fetchProducts to obtain the subscription product, an Error is prompted: "[RN-IAP] [fetchProducts] Failed: Error:" Unknown facebook::jni::JniException error.”
`
const {connected, subscriptions, getActiveSubscriptions, fetchProducts, requestPurchase, finishTransaction} =
useIAP({
onPurchaseSuccess: async (purchase) => {
// Validate on your server, then finish
// await finishTransaction({purchase});
},
onPurchaseError: (error) => {
// if (error.code !== ErrorCode.UserCancelled) {
// Alert.alert('Error', error.message);
// }
},
});

const getPriceStepList = async () => {
const payId = 'id'
console.log('intiBlb subs', payId, connected)
try {
await fetchProducts({skus: [payId], type: 'subs'});
const data = await getActiveSubscriptions();
console.log('data', data)
console.log(data);
} catch (error) {
Alert.alert('Error');
console.log(error);
}
}

useEffect(() => {
if (connected) {
getPriceStepList()
}
}, [connected]);
`

  • "react-native": "0.79.2",
  • "react-native-iap": "^14.7.20",
  • "react-native-nitro-modules": "^0.35.3",

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❓ questionFurther information is requested🤖 androidRelated to android

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions