I've implemented a subscription process for users using EXPO IAP, but to check if the user has a current subscription for IOS, I'm using react-native-IAP and implementing storekit 2 using this package, but I am getting the following error when trying to use one of the functions:
import {initConnection,IapIosSk2, setup} from "react-native-iap"
setup({storekitMode:'STOREKIT2_MODE'})
await initConnection()
const status = IapIosSk2.subscriptionStatus('sku')
which returns this error:
WARN Storekit 2 is not available on this device
WARN Possible Unhandled Promise Rejection (id: 0):
Error: IAP_NOT_AVAILABLE
I'm running the app through expo dev simulator on my iphone with the latest IOS 16 version. Storekit 2 only works with IOS 15+, which my phone is capable of. Do I need to specify somewhere in my app.json that IOS must be 15 or greater?