Hi all,
Has anyone come across this issue and found a solution? Context: my mobile isn't dual SIM, so I created an app that 'sends' the SMS to a database (receiving works similarly) from which it is picked up by a spare 'server' mobile, which actually sends and reads the SMS's. This 'server' will stay at home, while my usual mobile will be wherever I go, thus avoiding the need to carry 2 mobiles (and offering a hobby project opportunity ).
That seemed quite straightforward, but some SMS's got sent and others weren't - no error condition arose. I thought perhaps the spare mobile's environment was causing it (Samsung Galaxy S3 with Cyanogen 12.1, also tested with Lineage, same result), so I used another one; this time stock Android 6.0, and discovered a wonderful new condition: the one in the thread's title (some SMS's get sent too, and some don't show up in the messaging app at all, like before).
So apparently the SMS - sometimes - makes it to the (standard Android) messaging app but gets stuck there. Tapping it does indeed send it out but as mentioned I don't want to carry 2 phones around.
On forums I've read that installing another messaging app helped for some people, but that's a workaround (if it works at all) and I'd prefer a solution. I've used these 2 methods for sending (with and without sent notification), same result:
I've also tried with @Sorin Pohontu 's code from https://www.b4x.com/android/forum/threads/phonelibrary-updated-phonesms-send.52501/ but again no change.
The only other option I can think of (besides trying another messaging app) is, after sending, waiting some seconds and checking with ContentResolver if the SMS shows up as sent but perhaps that's overkill?
Hints are more than welcome, I'm kinda stuck .
Thanks as always,
walt61
Has anyone come across this issue and found a solution? Context: my mobile isn't dual SIM, so I created an app that 'sends' the SMS to a database (receiving works similarly) from which it is picked up by a spare 'server' mobile, which actually sends and reads the SMS's. This 'server' will stay at home, while my usual mobile will be wherever I go, thus avoiding the need to carry 2 mobiles (and offering a hobby project opportunity ).
That seemed quite straightforward, but some SMS's got sent and others weren't - no error condition arose. I thought perhaps the spare mobile's environment was causing it (Samsung Galaxy S3 with Cyanogen 12.1, also tested with Lineage, same result), so I used another one; this time stock Android 6.0, and discovered a wonderful new condition: the one in the thread's title (some SMS's get sent too, and some don't show up in the messaging app at all, like before).
So apparently the SMS - sometimes - makes it to the (standard Android) messaging app but gets stuck there. Tapping it does indeed send it out but as mentioned I don't want to carry 2 phones around.
On forums I've read that installing another messaging app helped for some people, but that's a workaround (if it works at all) and I'd prefer a solution. I've used these 2 methods for sending (with and without sent notification), same result:
B4X:
Dim SMS As PhoneSms
Dim receiveSentNotification As Boolean = True
SMS.Send(toNumber, theText)
SMS.Send2(toNumber, theText, receiveSentNotification, False)
I've also tried with @Sorin Pohontu 's code from https://www.b4x.com/android/forum/threads/phonelibrary-updated-phonesms-send.52501/ but again no change.
The only other option I can think of (besides trying another messaging app) is, after sending, waiting some seconds and checking with ContentResolver if the SMS shows up as sent but perhaps that's overkill?
Hints are more than welcome, I'm kinda stuck .
Thanks as always,
walt61