I used localstorage data because I needed it to store it to store for a short period of time like less than 2 hours then when the alarm gone off the localstorage data will become a SMS text. Is it possible?
Sure, use https://github.com/floatinghotpot/cordova-plugin-sms to send the SMS after reading the text from localstorage.