Zeev Goldstein Well-Known Member Licensed User Longtime User Sep 4, 2024 #1 hi i have an app that send text messages from the user to his clients (not span - it send reports and reports links) it is critical to send using the user's phone not any kind of bot or service i currently manage to send using whatsapp & whatsapp for business (the user enters his client's phone and the app opens loaded with the message and needs to press send and then back to return to my app i also send sms pretty much in the same way with telegram i didn't find a way to enter the receiver's phone so the user has to locate the client and send my questions: is there a way to directly send without opening whatsapp/sms and press send? is there a way that my app will automatically return without the user press back? is there a way to send using telegram as i do whatsapp - no need to search the receiver in telegram? is there a way to send using signal? what i want to have is the user enters his client's phone, the text message is preloaded, choose the app he wants to send with and press send - that will be the optimum a basic sample will be highly appreciated thanks
hi i have an app that send text messages from the user to his clients (not span - it send reports and reports links) it is critical to send using the user's phone not any kind of bot or service i currently manage to send using whatsapp & whatsapp for business (the user enters his client's phone and the app opens loaded with the message and needs to press send and then back to return to my app i also send sms pretty much in the same way with telegram i didn't find a way to enter the receiver's phone so the user has to locate the client and send my questions: is there a way to directly send without opening whatsapp/sms and press send? is there a way that my app will automatically return without the user press back? is there a way to send using telegram as i do whatsapp - no need to search the receiver in telegram? is there a way to send using signal? what i want to have is the user enters his client's phone, the text message is preloaded, choose the app he wants to send with and press send - that will be the optimum a basic sample will be highly appreciated thanks
J John Naylor Active Member Licensed User Longtime User Sep 4, 2024 #2 1 = This works perfectly for SMS. You need to request permission now too. 2 - No need if sending SMS using the above code Upvote 0
1 = This works perfectly for SMS. You need to request permission now too. 2 - No need if sending SMS using the above code
Zeev Goldstein Well-Known Member Licensed User Longtime User Sep 4, 2024 #3 Thanks I tried the code under "this" is 1 Didn't ask permisdion The app crashed You said no need for permission in 2 A bit confusing... Upvote 0
Thanks I tried the code under "this" is 1 Didn't ask permisdion The app crashed You said no need for permission in 2 A bit confusing...
Zeev Goldstein Well-Known Member Licensed User Longtime User Sep 4, 2024 #4 Hold on I tbink i got it What permission i need to ask? Upvote 0
DonManfred Expert Licensed User Longtime User Sep 4, 2024 #5 Zeev Goldstein said: The app crashed Click to expand... where is the FULL ERROR LOG then? Noone can help you without it Upvote 0
Zeev Goldstein said: The app crashed Click to expand... where is the FULL ERROR LOG then? Noone can help you without it
Zeev Goldstein Well-Known Member Licensed User Longtime User Sep 4, 2024 #6 DonManfred said: where is the FULL ERROR LOG then? Noone can help you without it Click to expand... on no permissions Upvote 0
DonManfred said: where is the FULL ERROR LOG then? Noone can help you without it Click to expand... on no permissions
DonManfred Expert Licensed User Longtime User Sep 4, 2024 #7 SMS and CALL_LOG permissions are no longer available Google has changed their policy regarding the following permissions: READ_SMS, SEND_SMS, WRITE_SMS, RECEIVE_SMS READ_CALL_LOG, WRITE_CALL_LOG, PROCESS_OUTGOING_CALLS Only the default phone or messaging apps can use these permissions... www.b4x.com Upvote 0
SMS and CALL_LOG permissions are no longer available Google has changed their policy regarding the following permissions: READ_SMS, SEND_SMS, WRITE_SMS, RECEIVE_SMS READ_CALL_LOG, WRITE_CALL_LOG, PROCESS_OUTGOING_CALLS Only the default phone or messaging apps can use these permissions... www.b4x.com
J John Naylor Active Member Licensed User Longtime User Sep 4, 2024 #8 Zeev Goldstein said: on no permissions Click to expand... PERMISSION_SEND_SMS Here's the standard permissions code I use, you can add all that you need in rplist.AddAll B4X: Copy Dim rplist As List Dim rpPermission As String rplist.Initialize rplist.AddAll(Array As String(rp.PERMISSION_SEND_SMS)) Do While rplist.Size > 0 rpPermission = rplist.Get(0) rp.CheckAndRequest(rpPermission) wait for B4XPage_PermissionResult(rpPermission As String, Result As Boolean) If Result = True Then rplist.RemoveAt(0) Continue End If If Result = False Then ExitApplication End If Loop Upvote 0
Zeev Goldstein said: on no permissions Click to expand... PERMISSION_SEND_SMS Here's the standard permissions code I use, you can add all that you need in rplist.AddAll B4X: Copy Dim rplist As List Dim rpPermission As String rplist.Initialize rplist.AddAll(Array As String(rp.PERMISSION_SEND_SMS)) Do While rplist.Size > 0 rpPermission = rplist.Get(0) rp.CheckAndRequest(rpPermission) wait for B4XPage_PermissionResult(rpPermission As String, Result As Boolean) If Result = True Then rplist.RemoveAt(0) Continue End If If Result = False Then ExitApplication End If Loop
Zeev Goldstein Well-Known Member Licensed User Longtime User Sep 4, 2024 #9 DonManfred said: where is the FULL ERROR LOG then? Noone can help you without it Click to expand... ok got it to work - it was the permissions issue wow that works perfectly without going through the sms app - perfect thanks guys! now i need to go on for whats up and telegram any chance for signal? Upvote 0
DonManfred said: where is the FULL ERROR LOG then? Noone can help you without it Click to expand... ok got it to work - it was the permissions issue wow that works perfectly without going through the sms app - perfect thanks guys! now i need to go on for whats up and telegram any chance for signal?
J John Naylor Active Member Licensed User Longtime User Sep 4, 2024 #11 As @DonManfred says - Better to split your question up into multiple threads. Sending SMS is a lot different to sending via Signal etc. Totally different approach needed. Upvote 0
As @DonManfred says - Better to split your question up into multiple threads. Sending SMS is a lot different to sending via Signal etc. Totally different approach needed.
Zeev Goldstein Well-Known Member Licensed User Longtime User Sep 4, 2024 #12 DonManfred said: New question -> New Thread Click to expand... the post was on that exact topic got an ACE reply for SMS ok - will open a new post for the rest as ordered... Upvote 0
DonManfred said: New question -> New Thread Click to expand... the post was on that exact topic got an ACE reply for SMS ok - will open a new post for the rest as ordered...