Ionic 4/5 angular how to get SMS messages from inbox

Hi, I have used GitHub - hanatharesh2712/ionic-native-sms-retriever-plugin-master: Cross-platform plugin for Cordova / PhoneGap to Retrieve SMS. Available for Android. to successfully listen for incoming SMS messages. How can I get all SMS messages from the inbox?

I tried using GitHub - floatinghotpot/cordova-plugin-sms: Plugin to operate SMS, send / list / intercept / delete / restore but it kept bringing errors when i tried to add it to app.module.ts or if I try to add and reference it in a page.