2.3.19
iOS
The docs for these functions mention, that they might return subscriptions if they are included in the list of SKUs. so in a call like:
const subs = await getSubscriptions(['sku2', 'sku3']);
const prods = await getProducts(['sku1']);
I would expect to only get the products / subscriptions referenced by the SKUs supplied.
Surprisingly after executing the above code both prods
and subs
contain 3 items, a mixture of subscriptions and products even though I separated them when calling the methods. After removing e.g. 'sku2'
from one method call, the output of the other function also changes, the product vanishes from both returned arrays. It seems like there are some undocumented side effects going on here.
real Device
iOS only bug:
Yes. the two methods call the same native objective-c methods, getItems()
.
You can use this module with knowing this issue, but we will fix the code and document sooner or later.
Thank you for your concern.
I hope this is remind.. Closing this issue.
document still not updated yet. ios side getProducts and getSubscriptions seems to no difference.