Receiving and sending a simple SMS

Steve's last example app works fine for me (foreground mode) after following these steps on Samsung Galaxy A54 running Android 14

  • Download the aia
  • build the app apk
  • install it to your phone
  • try it (use another phone to send a text to your Android phone

the app must be up and running to receive messages

what is not working is to receive a notification while the app is in the background

The bug report is here Posting a notification in case app is in background does not work for Texting component

Note: for Steve's example project I moved the AskPermission method from the Melon Notification into its own button click event to get the dialog message from the screenshot

Taifun

1 Like

Did you enable Button6 (set it to visible with code) and set the app to Always? Currently
AlwaysButton
that is disabled in the code. I expect you tried that. Just checking

yes I did

also I moved the AskPermission method from the Melon Notification into its own button click event to get the dialog message from the screenshot

unknown3

however it does not work because as it looks like the notification channel has not been created (see logcat output from the bug report)

Taifun

Hi Taifun I did everything perfectly to the letter as you indicated. I repeat sending sms from the app works, instead receiving sms from the app does not appear. I repeat setting set in foreground. If you can take a photo of your android settings on the phone so I can look for the differences. I thank you very much and I feel that we are close to solving the problem for android 14.

Are you saying, you receive the message in the default sms app but not in the App Inventor test app while the App Inventor test app is up and running?

Taifun

Hi Taifun, yes I confirm, I receive sms in the default samsung messages app, but it does not appear in the app inventor app.

It seems to be a device specific issue in your case
To find out what's going on use logcat

Taifun

Hi folks, this could be an RCS Messaging issue. RCS (Rich-Communication-Service) is a new protocol being adapted gradually over the SMS protocol.

@pdecaro Could be receiving an RCS Message (not an SMS) instead. This RCS message cannot be listened by third-party apps. We had encountered this issue while we were developing an SMS Automation app a few years ago.

Google is yet to provide support... (or does not want) third-party apps to listen to these RCS messages.

You can turn it off in your Messenger app's settings:

Btw I'm using Google Messages instead of Samsung Messages as default sms app

@pdecaro what are you using?
Taifun

Hi, I'm using the same setup, standard Samsung SMS.

Well no
I'm using

You might want to switch the default message app to Google message to see if this makes a difference

Taifun

Already done, nothing changes. Tomorrow I'll try to download the log .

Hello and thanks for your contribution. But I could not get to this image that you posted. I remind you that I am using a samsung a23 with android 14. Thanks if you send me the steps to get there.

For me it is on...
Open the Google Messages app and click onto your avatar

Then


Then

And

There you have

Taifun

Good evening Taifun and thanks for your help. So I have the Google messages application but strangely I do not get the maps to do what you ask me. Now I am going to download ADB on my computer so I hope to get the logs you ask me. However the problem has been limited and that is "RECEIVING SMS FROM APP MADE WITH APP INVENTOR ON ANDROID 14 DOES NOT WORK", I hope that the magnificent developers of the mit app inventor take charge of this problem and maybe release some updates on the matter. I am increasingly desperate not being able to make a simple app to receive sms work. So let's proceed ....

Taifun I downloaded ADB, but when I click on adb.exe it doesn't open anything!! Do I have to do any preliminary operations?

Hi Taifun I installed on my Samsung A23 smartphone with Android 14 Syslog app which maybe does the same thing as ADB. Is it ok for you?

I have shown you earlier, that it works for me on Android 14

Try it on another device

The important part for the test is

Taifun

GOOD EVENING TAIFUN, I managed to get to the google sms settings, deactivating what you told me, now the sms app in reception WORKS. THANKS for everything. Anyway, an important thing for all the users who had this problem.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.