how to make the telegram's sound notification like an alarm, so that whenever there is a new post in the channel the phone keeps beeping like an alarm.
One possible solution on the iOS would be to forward messages from the channel (that's not mine, but I am a member) to my phone via SMS, as you can set a constant alarm for SMSes on iPhone.
I do not really have any better ideas on how to do this, so I am open to any clues that you can come up with. Maybe some of you know if there is any other way to achieve the same result on ios, android, windows phone or computer.
Thanks
To set a custom notification sound for any app, do as follows:
Settings : General : Apps & Notifications : App info
Now scroll to the app that you want to customise. In this case, select Telegram by pressing it.
Select "App notifications". Now you can select a default notification, but more particularly, you can pick a group or contact from the list.
The default setting for importance is "medium: no sound". Press that and change it to "Urgent" or "High". Go back one screen. Now you can select the sound, by pressing "Sound". Pick a sound, or add a custom sound by pressing "+" at the top right.
If you want to record something, like a voicetag that says "Telegram from Tom", simply move a recording of that into the "music" folder on your phone, select it as above and when a message comes in from Tom, you'll hear the message played.
These steps were taken on Android 8 on an LG G6, but should be similar for other phones. For older versions of Android this feature may not be available. IOS? Sorry, none around here.
You can also do this in the Telegram app: Screenshots below.
The channel members would need to set a specific alarm sound for the channel. There is no way the sender of a message (not even a bot) could modify the sound of a notification.
Related
I have Notification Channels set up with custom sounds using the SetSound() method. The sounds are stored as resources in the raw folder. For the most part these notifications work and the custom sound is played correctly.
We allow users to change the notification sound from within our app. To handle this we delete the existing channel and create a new one with the new sound - this means that notification channels may be created, deleted and recreated. (I'm not sure if this related or not.)
However, some of our customers have gotten the app into a state where the notifications no longer plays a sound and the only way to resolve the issue is to uninstall and reinstall the app.
In the device's Settings > App > Notifications all the settings are correct and under Sound 'App Provided Sound' is selected. When debugging a device that is having this issue, I've confirmed that the Notification Channel settings are pointing at the correct resource file. I've also called 'OpenRawResource(resourceId)' in the Notification handler to confirm that the app can open the resource file, but FCM isn't playing the sound file.
Is there any way to resolve this? Or any recommendations on how to debug this further?
I'm looking to add voice commands to an Android App that will be running on a tablet as a kiosk. I don't want the user to have to push a button, because the user is doing something more important (e.g. driving a car, flying a plane, or performing brain surgery) and the command could be completed by a single button push.
I see tutorials describing how to add speech to text and have the user push a button and get the text, but nothing allowing the wake word "Okay, Google" to start the voice recognition (much less a custom wake word).
I looked at using the Google Voice Actions to start with "Okay, Google" and then send something to my app (register an intent), but that has to be trained to one specific user (at least for the tablet I tried it on). I'll have different users every day (maybe more than one a day) and no opportunity for training the device.
I've worked with CMUSphinx and found it to be too unreliable for spotting a wake word.
Is there a way to add "Okay, Google" as a way to start listening to text inside my app?
Got it working using PocketSphinx for offline wake work recognition and then I hand the microphone over to IBM's Watson's Speech to Text software that works over the internet and comes back with pretty reliable results.
Unfortunately what you are trying to achieve is not possible. If I understood correctly what your concept: a 3rd party app will awaken the devices and act based on a set of commands (from a security point of view this is very bad).
The closest you can do is follow the Voice Actions Api - https://developers.google.com/voice-actions/system/
I'm creating a well customised Music Player for Android phone. The App will support devices from 4.0 so I would like to adapt the "Big Content View" for notifications. After searching around, I see the "Shuttle Player" app has exactly what I want. The features I want to add can be listed as follow:
Big view, with controllers and closing button.
2. Always on top of notification list, i.e even when a new notification comes (like new email), my app's ongoing notification will stay steady on top of them and the new one will come at the second position.
Actually both Google Music Player, CyannogenMod rom's Apollo player and Shuttle Player have the same notification layout, but I have tested the Apollo app and Shuttle Player and only the Shuttle Player does what I want to do..
I could add a remoteviews for the notification, but for the second feature, I still don't know how to adapt that idea. Anyone has experience in those thing? Please help!
Use setPriority() on your Notification.Builder to indicate relative priority. Higher-priority items will appear towards the top. However, you have no absolute guarantee of being at the top all of the time, as other high-priority notifications may be added.
Also, please allow this behavior to be configurable by the user. You may want your Notification to always be on top. The user may not. The user's opinion is more important than is yours.
My app is using the new VoicemailContract functionality in ICS to insert voicemails that show up in the stock call log. I've got it working perfectly, but I can't figure out how to control the new Voicemail notification that pops up when the new voicemails are added. The notifications seem to be controlled by the Phone app, and even if I manually update the voicemail's IS_READ attribute, the notification doesn't go away. In fact, I can delete the voicemail altogether, and the notification doesn't go away. The only way that it goes away is if that notification is clicked, or if I manually go into the call log and open one of the new voicemails.
Does anyone have any idea on how to control that programmatically from my app?
Unfortunately you can't. Status bar notifications can only be cleared by the app that placed them there. The phone app is the app that placed it there and this is why only that app is able to clear it.
I wish there was a way to do this myself, but currently, there is not :(
I have a Nexus-S which has no external notification LEDs to show a missed call, text message or email. What are some ways to implement a notifcation application? Write a service? write screen blanking application and draw on the app screen when blanked (what about locking?). I thought I would try turning on the hardware key back-lights as a notification but that proves to need root access so that's out. Please don't link to an app on the market unless it's Open Source. Thanks
What are some ways to implement a notifcation application?
I do not know what a "notification application" is. To notify users (e.g., flash LED where available), use a Notification, with whatever mix of options you want on it (e.g., play a ringtone).
Write a service?
A service can raise a Notification.
write screen blanking application and draw on the app screen when blanked (what about locking?)
Users do not necessarily appreciate activities appearing out of nowhere. If you go this route, give them the option of a classic Notification or your activity.