Cart storefront api

Hello,

I’m trying to call the cart storefront api in order to retrieve cart data of cart created by application automatically, but unsuccessfully - cart is always null. i got the cart id from the browser cookie.

also, when i use the cartCreate mutation and then try to get cart by the id returned from the cartCreate request - i’m able to get cart data. BUT, when i try another api mutation such as - cartBuyerIdentityUpdate it’s returning the null cart object.
like this:
{
“data”: {
“cartBuyerIdentityUpdate”: {
“cart”: null
}
}
}

did someone else also faced the issue?

According to shopify’s docs, the cart api does not work with native mobile, so perhaps that’s why. But it is pretty confusing they still provide those queries in the ios sdk