Kastri icon indicating copy to clipboard operation
Kastri copied to clipboard

SMS: could not send

Open alissonrodrigo opened this issue 1 year ago • 8 comments

I compiled and installed the demo on an Android device (I didn't change anything in the demo) when I put phones from my country (Brazil, +55) it gives me the error "could not send". I only need to send the message on a single device, the app would not be published on Google Play. Would it be possible to do this with the demo + kastri in my country? Grateful

alissonrodrigo avatar Mar 26 '24 19:03 alissonrodrigo

Since I'm not in Brazil, I'm not sure I'll be able to fix this, however there are some steps you can take to diagnose the issue, after which I may be able to fix it. I recommend using Device Lens to view the log messages coming from the device (see the tutorial link at the bottom). The steps for obtaining a relevant part of the messages would be:

  1. Start the app, to the point where you are about to click Send (but do not click it)
  2. Start Device Lens, enter com.embarcadero.SMSDemoD12 or com.embarcadero.SMSDemoD11 (depending on which project you compiled) in the Filter On Application edit in the top right and press enter
  3. Press Send in the app - you should see a number of messages in Device Lens
  4. If sending an SMS requires any confirmation, do that
  5. If sending fails, right-click the grid in Device Lens, click Save To File to save the log, and attach it to this issue

DelphiWorlds avatar Mar 26 '24 19:03 DelphiWorlds

SMS.log File log

alissonrodrigo avatar Mar 26 '24 19:03 alissonrodrigo

print device lens sms

alissonrodrigo avatar Mar 26 '24 19:03 alissonrodrigo

Are you filtering on Errors only? Please make sure all messages show. Those that appear in the screenshot may be unrelated to the problem

DelphiWorlds avatar Mar 26 '24 19:03 DelphiWorlds

There is no filter, I also thought it was strange but only this message appeared

alissonrodrigo avatar Mar 26 '24 21:03 alissonrodrigo

Could you do the same steps as described earlier, but without the Filter On Application filter?

DelphiWorlds avatar Mar 26 '24 21:03 DelphiWorlds

I'm not using a filter as you can see in the image. Device lens is only loading error messages Screenshot_5

alissonrodrigo avatar Mar 27 '24 12:03 alissonrodrigo

The latest screenshot does not show any messages like in the first one. Are you sure you repeated the process, or is there more messages off-screen? If so, please save the log and attach it following these steps:

  1. Start the app, to the point where you are about to click Send (but do not click it)
  2. Start Device Lens, and click the "Play" button in the top left
  3. Press Send in the app - you should see a number of messages in Device Lens
  4. If sending an SMS requires any confirmation, do that
  5. If sending fails, right-click the grid in Device Lens, click Save To File to save the log, and attach it to this issue

Screenshots are extremely hard to work with.

DelphiWorlds avatar Mar 28 '24 20:03 DelphiWorlds

Closed due to inactivity

DelphiWorlds avatar Aug 17 '24 01:08 DelphiWorlds