When trying to implement the Live Updates feature to our app.I dont know where in the app i should add the following code mentioned in the ionic 2 documentation
As mentioned here
LiveUpdates Snapshots Check code Location
Do we need to put the mentioned code in each page or in app.module ? or some where else
Thansk
Check for a New Snapshot
When check() is called, Deploy checks for a new snapshot on the active deploy channel.
this.deploy.check().then((snapshotAvailable: boolean) => {
if (snapshotAvailable) {
// When snapshotAvailable is true, you can apply the snapshot
}
});