The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
Say like a work mode, that won't automatically read something out loud
You are definitely right.
Just while testing my phone was speaking and people in cubicles around me were asking what was going on.
Actually, I've been adding the code to make it an Android Widget also.
That way you can add it to your lock screen and you can enable / disable it easily.
However, Android Widget API is brittle and is not easy to use.
Hopefully I'll get an article written up here soon about it.
Thanks for your interest.
Maybe tie it to the system sound setting? E.g. If your phone is muted it won't read and you'll need to enable it manually, maybe with the ability to set a time until it resyncs with the system sound volume?
Most aftermarket Bluetooth stereos can do this with both Android and iOS devices. When a text is received and you are driving, it will read it to you through the vehicle's speakers. If you are parked, it will allow you to push a "read" button on the display.
I said all of that to say that the technology and capability are there, you just might have to dig a bit more with iOS. It's a common problem for a lot of multi-platform apps.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
I said all of that to say that the technology and capability are there, you just might have to dig a bit more with iOS
Guided by that same bit of info (my friend has a car that does that) I thought so too.
However, it's not actually available.
It might sound like I'm being snarky (due to quickly replying) but I'm just giving the facts I've found. Everywhere I look they actually say you cannot do this -- and I am tending to believe them now after reading all the items below and more.
I asked a question on SO -- which was supposedly a duplicate:
Also note that Xamarin talks about sending an iOS message but not reading: Send an SMS or iMessage - Xamarin[^]
However, the Android Xamarin docs show you how to read also -- since underlying API supports it.
The bluetooth thing is a bit different. I have worked with bluetooth on both Android and iOS so if I could even find out how to do this by building a device I pair with iPhone I would do that too. But that info is even more difficult to find.
heck why are they sandboxing it from apps, yet allow the receiving over BT?
That's exactly what I wondered about too. It feels as if insiders can get the functionality but indie devs are out. Android is nicer because it is more open most of the time. But of course many will say more dangerous. Give me danger then!
Odd - I wanted to post a comment but it seems there's no way to do so. I'm logged in and can vote for the article but the Comments forum is (understandably) empty and there's no way to enter a new comment or ask a question. Anyway, I think the first occurence of this line is misplaced (i.e a typo), since you're referencing message even though it might be null.
CP is behaving poorly just now. I had to post my article 3 or 4 times.
1st time, images didn't show. 2nd time it failed with hamsters.
3rd time it worked but the attached source was lost.
4th time, I think everything is right now. Sheesh.
Thanks for reading my article and taking time to provide feedback.
I will check out that line of code.