Receiving and sending a simple SMS

I do not understand what you mean

What version of Android are you using? This will work with Android 13 and lower for receive if you use an Android cell lower than 14 If you have an Android 14, use Taifun's advice.

  • did you make the apk and use it to test the app I posted?

Good morning Steve and Taifun, and thank you for your precious availability. So I loaded Steve's app and I'll show you a photo, I repeat my Samsung has a version of android 14.
I set the app in "Foreground" as you can see, but I can't view text messages. I didn't understand Taifun's steps to set the app to post notifications. Taifun could you kindly take some photos of how to do it. Thanks to everyone in advance, I think that perhaps with your help we


are close to the solution.

Can you kindly tell me how to set up MelonNotification extension. Thanks

This is a version of the app using Melon.

The circled Block loads Kumaraswamy's MelonNotificatiion which I dragged into Extensions.

It runs on Android 13 and might work on your #14 cellphone

smsSendReceiveSimple1plus.aia (119.1 KB)

  • 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
  • it might work; it runs in my Samsung A13 and it might work.
  • does it receive the text?

You should see a notification at the top of the screen. Clicking on the notification will bring up the device's messaging program. However the message should also post in the app.

  • does it work? Sorry I cannot test this on an Android 14 but you can. :slightly_smiling_face:
    .

Hi Steve, I downloaded your latest app with MelonNotification, but it still doesn't work, I also followed Taifun's instructions, but I don't see the post notifications item. However, now from settings, apps, smssendreceive3pllus, now the notifications are allowed, everything should be fine, but it doesn't work.

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 ....