After using ionic 3 native storage to store a value with the line of code below:
this.storage.set('myValue', this.value);
I proceeded to rebuild the app and tried to retrieve that value, but it came back as null:
this.storage.get('myValue').then(value => {
console.log('My value: ' + value);
})
The output showed: My value: null
I am unsure why this occurred. I expected the data to be stored in the database so rebuilding the app should not affect it. Any ideas on what could have gone wrong?