freedom2000 Well-Known Member Licensed User Longtime User Jan 5, 2019 #1 Hi, Google has changed its policy for SMS permission. This thread is clear : SMS permissions I have tried this code : Code: Copy Dim In As Intent Dim number = "0123456789" As String In.Initialize(In.ACTION_VIEW, "sms:" & number) In.PutExtra("sms_body", "this is the body") StartActivity(In) It works and launchs the default SMS App to send the message. However this is not fully automatic s it is via the Activity of the default SMS App... I would like to find a way to send the SMS automatically and in the background. Is there a trick or is it now definitively forbidden (unless your App is the default SMS App) ? Thanks
Hi, Google has changed its policy for SMS permission. This thread is clear : SMS permissions I have tried this code : Code: Copy Dim In As Intent Dim number = "0123456789" As String In.Initialize(In.ACTION_VIEW, "sms:" & number) In.PutExtra("sms_body", "this is the body") StartActivity(In) It works and launchs the default SMS App to send the message. However this is not fully automatic s it is via the Activity of the default SMS App... I would like to find a way to send the SMS automatically and in the background. Is there a trick or is it now definitively forbidden (unless your App is the default SMS App) ? Thanks
DonManfred Expert Licensed User Longtime User Jan 5, 2019 #2 Only the default SMS App can do this. Every other app does not have the rights. Upvote 0
freedom2000 Well-Known Member Licensed User Longtime User Jan 5, 2019 #3 DonManfred said: Only the default SMS App can do this. Every other app does not have the rights. Click to expand... Well this is not really what I would call a good news... That's a pity to kill this nice feature of Android... However thank you for your promt answer ! Upvote 0
DonManfred said: Only the default SMS App can do this. Every other app does not have the rights. Click to expand... Well this is not really what I would call a good news... That's a pity to kill this nice feature of Android... However thank you for your promt answer !
Geezer Active Member Licensed User Longtime User Jan 5, 2019 #4 I have these 2 permissions PERMISSION_SEND_SMS PERMISSION_READ_PHONE_STATE And then I use this Code: Copy Dim PH As PhoneSms PH.Send( TextTo, Msg ) It will send it in the background, but will still show in the default SMS app logs as DonManfred said. Upvote 0
I have these 2 permissions PERMISSION_SEND_SMS PERMISSION_READ_PHONE_STATE And then I use this Code: Copy Dim PH As PhoneSms PH.Send( TextTo, Msg ) It will send it in the background, but will still show in the default SMS app logs as DonManfred said.
freedom2000 Well-Known Member Licensed User Longtime User Jan 5, 2019 #5 Geezer said: I have these 2 permissions PERMISSION_SEND_SMS PERMISSION_READ_PHONE_STATE And then I use this Code: Copy Dim PH As PhoneSms PH.Send( TextTo, Msg ) It will send it in the background, but will still show in the default SMS app logs as DonManfred said. Click to expand... Yes this works, but will no longer work as this permission "PERMISSION_SEND_SMS" is considered as dangerous and will no longer be supported by Google unless your App is the default SMS App Upvote 0
Geezer said: I have these 2 permissions PERMISSION_SEND_SMS PERMISSION_READ_PHONE_STATE And then I use this Code: Copy Dim PH As PhoneSms PH.Send( TextTo, Msg ) It will send it in the background, but will still show in the default SMS app logs as DonManfred said. Click to expand... Yes this works, but will no longer work as this permission "PERMISSION_SEND_SMS" is considered as dangerous and will no longer be supported by Google unless your App is the default SMS App
Geezer Active Member Licensed User Longtime User Jan 5, 2019 #6 I missed the bit about Google Play, and my app is not on google play so still works. Sorry. Upvote 0
freedom2000 Well-Known Member Licensed User Longtime User Jan 5, 2019 #7 Geezer said: I missed the bit about Google Play, and my app is not on google play so still works. Sorry. Click to expand... no problem ! But no solution (google) Upvote 0
Geezer said: I missed the bit about Google Play, and my app is not on google play so still works. Sorry. Click to expand... no problem ! But no solution (google)