SMS send from within an app seem impossible to detect?

落爺英雄遲暮 提交于 2019-12-02 20:55:50

问题


I have just created a cool app that work with SMS. I would like to say to my users: don't worrry, my app send SMS but you can track them in your favourite SMS application.

I don't want them to be afraid that I will overload their monthly fees.

So, the way I send SMS is very simple:

SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, position, pi, null);

And that is very fine.

Unfortunately, all sent SMS does not appear in any SMS application, so user doesn't know that a SMS has been send.

Yes, of course, I could create a list in my application that shows send SMS, but the user won't trust me.

So I am very afraid that SMS send within app are totally invisible and there is no way to track them from the end user side.


回答1:


Without any other solutions, the answer seem to be "NO, there is no solutions".

That's a big security issue, in my mind.




回答2:


You could not use sms permission in your application, and instead send an sms via an intent. This will bring up the messaging app with the sms destination and body pre-filled so the user just pushes send.

However if you send a lot of messages, this probably is asking too much. And users may get confused - you would have to show a screen in your application to the effect of 'This program needs to send an SMS - please press "continue" and then "send" when the messaging application opens'



来源:https://stackoverflow.com/questions/5970067/sms-send-from-within-an-app-seem-impossible-to-detect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!