You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 5 Current »
The method subscribes the user to the notifications that the product is available.
A device token must first be sent to subscribe to App Push notifications. SeeĀ Notifications (iOS SDK).
sdk.subscribeForBackInStock(params)
sdk.subscribeForBackInStock(id: "100500");
sdk.subscribeForBackInStock(id: "100500", email: "john.doe@examplestore.com");
sdk.subscribeForBackInStock(id: "100500", phone: "4400114527199");
The method unsubscribes the user from the notification that the product is available.
sdk.unsubscribeForBackInStock(params)
sdk.unsubscribeForBackInStock(itemIds: ["146", "100500"]);
sdk.unsubscribeForBackInStock(itemIds: ["146", "100500"], email: "john.doe@examplestore.com");
sdk.unsubscribeForBackInStock(itemIds: ["146", "100500"], phone: "4400114527199");
The method subscribes the user to the notifications of a product price decrease.
sdk.subscribeForPriceDrop(params);
sdk.subscribeForPriceDrop(id: "100500", currentPrice: 146.99);
sdk.subscribeForPriceDrop(id: "100500", currentPrice: 146.99, email: "john.doe@examplestore.com");
sdk.subscribeForPriceDrop(id: "100500", currentPrice: 146.99, phone: "4400114527199");
Page Navigation
Related Pages