Object scans (
.arobject files) used for detection are downloaded from Sitecore Commerce website using ARCommerce.ProductAPI.
When opened for the first time, app will ask for the Sitecore Commerce website URL and item ID of products category, which contains products with AR scans.
Afterwards it will sync product IDs and AR objects with Sitecore. For details check
/api/cxa/ARCatalog/GetProductScans in ARCommerce.ProductAPI.
It's possible to change the settings or trigger synchronization with server afterwards, by tapping "Sync Products" or "i" buttons.
When you point to the object with device's camera, app will load product information from Sitecore using ARCommerce.ProductAPI
/api/cxa/ARCatalog/ProductInformation and display it above the object. When user taps on this information, app opens the product in Sitecore Commerce website.
- In terminal call
pod installto download dependencies.
- Install application to iOS device with xCode.