Check the limit of SMS on android?

In IceCreamSandwch and JellyBean, the default trigger limit is 30 SMS messages from any packet within a 30-minute period. This was 100 SMS per hour, which was not a problem, but now we need to be careful how many messages our application sends.

Google Search and StackOverflow Search I can’t find a sample of how a package can request the current limit, is it something we would need to support in our own package or is there a hidden method somewhere in the Android API?

If our own package should support the calculation of the current limit, how would you suggest making it?

+3
source share
1 answer

From one of Al Sutton G + post :

Restrictions can be overridden by OEMs either by changing the source code, or by using the secure Settings.Secure.SMS_OUTGOING_CHECK_MAX_COUNT and Settings.Secure.SMS_OUTGOING_CHECK_INTERVAL_MS settings, so you can see that users presented a dialog asking you to confirm SMS sending normally, even if you observe default speed limits are #AOSP.

So you can try Settings.Secure.SMS_OUTGOING_CHECK_MAX_COUNT and Settings.Secure.SMS_OUTGOING_CHECK_INTERVAL_MS .

+3
source

Source: https://habr.com/ru/post/1271112/


All Articles