Hello, I am the CEO of Howisland. We created a Shopify app using React Native technology. We’d want to include the following feature. We want to be able to get this cart and present it to mobile users in the app when a product is added to the cart on the web version. If someone did the same thing in the app, we’d also want to see it on the webshop. Is it even possible? I examined the API specifications for Storefront and Admin but found hooks. We reasoned that we could subscribe to carts, create topics using our API, and then link the cart to the user in our database. When a user launches the app, we look for the user’s ID in the database, retrieve the appropriate shopping cart, and display it. I attempted to create a new cart in the online store and successfully obtained a hook. However, attempting to generate a cart via the Storefront API fails; no hook is sent. This would require the shopping carts in different mobile apps to communicate with one another. Nothing changes in the webshop when a customer’s access token is used to create a cart in Storefront. A website does not use the shopping cart API but handles shopping carts through cookies.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Syncing a cart between multiple devices including a web version | 4 | 418 | October 13, 2023 | |
| Use Shopify in a React Native app | 0 | 34 | June 22, 2023 | |
| How to integrate a Shopify storefront into a native mobile app? | 2 | 137 | December 13, 2021 | |
| Shopify Admin Dashboard Integration to Mobile App | 0 | 23 | March 31, 2022 | |
| React native mobile app using nodeJS and express with Shopify | 6 | 258 | March 17, 2023 |