Julias0 / CapacitorSmsInboxReader

11 stars 2 forks source link

Add Filter support #1

Open Julias0 opened 3 years ago

Julias0 commented 3 years ago

I think the filter should contain:

credits to @tewnut

ganshul34 commented 3 years ago

If I am not wrong is this filter based on whether an SMS is Transactional, OTP, or Promotional?

Julias0 commented 3 years ago

The filter may be anything - greater than a certain fate, a category filter like the one you mentioned etc.

Right now this plugin gets all the messages out of the inbox but doesn't allow us to query the inbox of the device based on a certain condition. This can cause performance issues down the line

ganshul34 commented 3 years ago

I am getting the error while running on android (the custom plugin SmsInboxReader is not defined ). Also, I created a standalone ionic-react app for testing purposes for this plugin.

Julias0 commented 3 years ago

Can you try these two steps -

ganshul34 commented 3 years ago

Yes, I need to import and add the SmsinboxReader in my MainActivity.java file

tewnut commented 2 years ago

I think the filter should contain: