Reputation: 5031
In IceCreamSandwch and JellyBean the default trigger limit is 30 SMSes from any package within a 30 minute period. This used to be 100 SMSes in an hour, which wasn't such a problem but now we need to be careful how many messages our app sends.
Having Googled and searched StackOverflow I cannot find any sample of how a package can query it's current limit, is this something that we would have to maintain in our own package or is there a hidden method somewhere in the Android API?
If our own package has to maintain a count of it's current limit how would you propose to go about it?
Upvotes: 3
Views: 1844
Reputation: 18243
From one of Al Sutton's G+ post:
The limits can be overridden by OEMs either by changing the source code or using the secure settings Settings.Secure.SMS_OUTGOING_CHECK_MAX_COUNT and Settings.Secure.SMS_OUTGOING_CHECK_INTERVAL_MS, so you may see users presented with a dialogue asking them to confirm the SMS being sent is OK even if you comply with the #AOSP default rate limits.
So you might give a try to Settings.Secure.SMS_OUTGOING_CHECK_MAX_COUNT
and Settings.Secure.SMS_OUTGOING_CHECK_INTERVAL_MS
.
Upvotes: 3