The documentation is somewhat scarce, but my search has not turned up anything but SMSComposeTask
for sending text messages开发者_如何学运维 from an app.
Will this be the only way to send SMS messages in Windows Phone 7 from an app? Does Android and iOS (4 or previous) place similar restrictions on sending SMS messages from an app?
At this stage, the WP7 app can set the number and message using SMSComposeTask.
The user just needs to ok it by sending it off.
This gives the user the opportunity to assess whether sending the sms is worth the cost.
If this were to change, one would hope the user is at least required to set a permission for an app to have unreviewed access to sending SMS. I'd probably want to set a limit on the volume of unreviewed SMS as well.
It's good for the platform and App Devs that users can have confidence that installing an App will not pack a hidden punch.
Yes, at least iOS puts the same limitation on sending SMS messages from an app - the message has to be written and sent by the user, though the OS-provided editor.
Given that SMS actually cost the user money, that restriction is a very good thing. There's lot of people that wouldn't mind getting rich the easy way through scamming people into installing an app that sends thousands of $0.99 messages.
精彩评论