Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SendMessageDirect fails on Android 12 #2741

Closed
2 of 7 tasks
ewpatton opened this issue Sep 26, 2022 · 9 comments
Closed
2 of 7 tasks

SendMessageDirect fails on Android 12 #2741

ewpatton opened this issue Sep 26, 2022 · 9 comments

Comments

@ewpatton
Copy link
Member

Describe the bug

From the forum: Using the Texting.SendMessageDirect block fails on Android 12 due to the need to specify a mutability flag in the PendingIntent, but we don't do so.

Affects

  • Designer
  • Blocks editor
  • Companion
  • Compiled apps
  • Buildserver
  • Debugging
  • Other... (please describe)

Expected behavior

Using the SendMessageDirect block should work correctly without causing a runtime error on Android 12.

Steps to reproduce

An example is provided in the post.

@gr3453m0nk3y
Copy link

@ewpatton Any updates on this?

@jeff9315
Copy link

jeff9315 commented Oct 3, 2022

@ewpatton Any updates on this?

I want to use this to send text messages to a small group I'm in, in the event of another hurricane or a tornado. So, time is of the essence if I'm going to use it this season. Otherwise, if it looks like it might be awhile, I'll go a different route.

Thanks!

@ewpatton
Copy link
Member Author

ewpatton commented Oct 3, 2022

@gr3453m0nk3y @jeff9315 You can try out the PR I submitted on this temporary server and verify whether or not it addresses the issue: http://nb190a-bugfixes.ai2-ewpatton-temp.appspot.com/

@nan805
Copy link

nan805 commented Oct 16, 2022

It works. The issue of the sendMessageDirect a runtime error can be fixed building by the temporary server.

@hamedhosseini55
Copy link

@ewpatton i cant open this site( http://nb190a-bugfixes.ai2-ewpatton-temp.appspot.com) error message:403. That’s an error.

Your client does not have permission to get URL / from this server. That’s all we know.

How can I access the temporary server ?

@ewpatton
Copy link
Member Author

@hamedhosseini55 Try using HTTPS and seeing if the problem persists. Sometimes HTTP proxies can interfere with accessing App Inventor but they tend to not cause as much trouble when switching to HTTPS.

@hamedhosseini55
Copy link

@ewpatton thank you for your answer.
Unfortunately, after three hours of trying, I could not open the site.

Is it possible to send you the .aia file and you convert it to apk format for me?thanks

@hamedhosseini55
Copy link

@ewpatton finally i could open it. and i built .apk and it works without any problems and compatible with android 12 thanks.

@ewpatton
Copy link
Member Author

Fixed in release nb191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants