#StackBounty: #ios #swift #ipad #notifications #keyboard Keyboard notification not called with small keyboard

Bounty: 150

In my code the notifications, that the keyboard will open/close are called normally when the keyboard is big. But as soon as is make it small, squishing the keyboard between to fingers, those notifications are not called anymore. Anybody having similar issues?

That is how I observe the notifications:

let notificationCenter = NotificationCenter.default
notificationCenter.addObserver(self, selector: #selector(self.keyboardWillBeShown(_:)), name: NSNotification.Name.UIKeyboardWillShow, object: nil)
notificationCenter.addObserver(self, selector: #selector(self.keyboardDidShown(_:)), name: NSNotification.Name.UIKeyboardDidShow, object: nil)
notificationCenter.addObserver(self, selector: #selector(self.keyboardWillBeHidden(_:)), name: NSNotification.Name.UIKeyboardWillHide, object: nil)


Get this bounty!!!

#StackBounty: #ios #swift #notifications #keyboard keyboard notification not called with small keyboard

Bounty: 150

In my code the notifications, that the keyboard will open/close are called normally when the keyboard is big. But as soon as is make it small, squishing the keyboard between to fingers, those notifications are not called anymore. Anybody having similar issues?

let notificationCenter = NotificationCenter.default
notificationCenter.addObserver(self, selector: #selector(self.keyboardWillBeShown(_:)), name: NSNotification.Name.UIKeyboardWillShow, object: nil)
notificationCenter.addObserver(self, selector: #selector(self.keyboardDidShown(_:)), name: NSNotification.Name.UIKeyboardDidShow, object: nil)
notificationCenter.addObserver(self, selector: #selector(self.keyboardWillBeHidden(_:)), name: NSNotification.Name.UIKeyboardWillHide, object: nil)ยดยดยด

That is how I observe the notifications


Get this bounty!!!

#StackBounty: #youtube #notifications Is it possible to get notifications for new comments on a YouTube video?

Bounty: 50

Suppose that there is a video on YouTube which is not on my channel, but published by somebody else.

Is there some way in which I can subscribe to get the notifications about new comments on that particular video?


One use case I can imagine: Many teachers now use YouTube to publish videos with their lectures. And both the students and the teacher might be interested to see new comments. (And in many cases the YouTube channel is not the channel created by the teacher – it might be a channel of the school/department/university. So it’s a bit different from setting up notifications about new activity on my own videos.)


Note. I have seen that there is already this question: How to subscribe to YouTube comments? From the formulation of the question it seems that this question might be considered a duplicate of that one. However, the accepted answer answers the question as if the word subscribe was meant as pay for a subscription. (I am not sure whether this is what the asker intended, but that is the answer they’ve accepted.) Therefore I opted for a new question rather than a bounty on the old one – since to some extent, the offered bounty would be asking for something different from the already accepted answer.


Get this bounty!!!

#StackBounty: #python #notifications #gtk Why is Gio.Notification not showing in Python?

Bounty: 50

I would like to show notifications using my Gtk app, but when I run my code below, I everything works but the notification doesn’t show. I tried running it using a desktop file like the one suggested in this answer, but it still didn’t work. Here’s my code:

import gi
import sys

gi.require_version("Gtk", "3.0")
from gi.repository import Gio, Gtk

class App(Gtk.Application):
    
    def __init__(self, *args, **kwargs):
        Gtk.Application.__init__(self, *args, application_id="org.example.myapp", **kwargs)
        self.window = None

    def do_startup(self):
        Gtk.Application.do_startup(self)

    def do_activate(self):
        notification = Gio.Notification()
        notification.set_body("Hello!")
        self.send_notification(None, notification)
        if not self.window:
            self.window = Gtk.ApplicationWindow(application=self)
            self.window.present()

if __name__ == "__main__":
    app = App()
    app.run(sys.argv)

and here’s the desktop file org.example.myapp.desktop:

[Desktop Entry]
Type=Application
Name=My Application
Exec=python3 /home/user/programs/python/testing/SO/problem_why_is_gtk....py
Terminal=false
X-GNOME-UsesNotifications=true


Get this bounty!!!

#StackBounty: #root-access #notifications #notification-bar #miui Is there a way to group notifications by app?

Bounty: 50

So, my phone is running MIUI 12.5(rooted if it matters) and some apps just push individual notifications so each notification I get, shows up in its own bubble instead of showing them all under a group of notifications for this same app.

It’s really hard since it takes up all my screen and if I want to search for notifications from a certain app I have to go over all the other notifications from the other apps..

Is there a way to force notifications from the same app to be grouped together in my notification bar?

Thanks


Get this bounty!!!

#StackBounty: #javascript #notifications #bookmarklet Using the Notification API from a bookmarklet

Bounty: 50

I am trying to write a bookmarklet that sends me a desktop notification when CI on GitHub completes. Notification.requestPermission runs correctly, and asks me for permission, and the console.log statements run correctly, but the notification does not appear. Here is the text of the bookmarklet script:

(function() {
  Notification.requestPermission().then(() => {
    const search = setInterval(() => {
      if (window.find("All checks have passed")) {
        console.log('all checks passed');
        clearTimeout(search);
        new Notification('Github checks passed!');
      } else {
        console.log('checks pending');
      }
    }, 1000);
  });
})();

i.e.

javascript:(function() {Notification.requestPermission().then(() => {const search = setInterval(() => {if (window.find("All checks have passed")) {console.log('all checks passed');clearTimeout(search);new Notification('Github checks passed!');} else {console.log('checks pending');}}, 1000);});})();

Is this a sandboxing thing?


Get this bounty!!!

#StackBounty: #windows #notifications Windows keeps turning off notifications for one particular app

Bounty: 100

I am using Windows 10 Home. Notifications work normally for most apps, except one: the Mailbird email client.

Every few days (the exact period seems random, it can be anything between a day and a week) the notifications are disabled for Mailbird in Windows Settings. When I notice it’s happened again, I go into Windows Settings -> Notifications and Actions Settings and turn them from Off to On. Then they will work correctly again and the cycle continues.

I’ve contacted the Mailbird developers and they said it’s not something on their end. I don’t know what else to try.

I’ve been having this problem for at least a year and it’s very annoying. Any help would be appreciated.


Get this bounty!!!

#StackBounty: #adb #notifications #usb-debugging #shell Interact with notification action from ADB Shell

Bounty: 250

I have an Android(7) phone and a Linux pc. By enabling USB debugging and using the terminal of my pc, I am able to read the notifications of my phone using the command: adb shell dumpsys notification --noredact

Now, there are some notifications in android in which we can interact with the app directly from the notification. For example, in a Whatsapp notification, there are usually two buttons: Reply & Mark as read. In YouTube, there are options like Play, Turn off, Watch later. In the output of the above command, these options are visible in the following form:

actions={
        [0] "Reply" -> PendingIntent{6becf48: PendingIntentRecord{87b8050 com.whatsapp startService (whitelist: +30s0ms)}}
        [1] "Mark as read" -> PendingIntent{c1661e1: PendingIntentRecord{b8e3249 com.whatsapp startService (whitelist: +30s0ms)}}
      }

I have two questions:

  1. Can we interact with these options from adb shell? For example, is there any command like adb shell <SOME COMMAND> 'Message to be sent in whatsapp with reply option' which will send the text as a reply in whatsapp without opening the app?
  2. Is it possible to swipe the notifications using any adb command? (Not the adb shell input swipe x0 y0 x1 y1, it requires to unlock the phone each time)

Thank you in advance!

Edit:

Here is what I found that may be relevant to this question.

I think that I have to somehow launch the specific intent linked to the mentioned PendingIntent id (in this case 6becf48 or 87b8050)

Using tthe command adb shell dumpsys activity intents > output.txt and then searching for 87b8050 in output.txt, I found the name of the intent. It was as follows:

  * PendingIntentRecord{87b8050 com.whatsapp startService (whitelist: +30s0ms)}
    uid=10104 packageName=com.whatsapp type=startService flags=0x0
    requestIntent=act=com.whatsapp.intent.action.DIRECT_REPLY_FROM_MESSAGE dat=content://com.whatsapp.provider.contact/contacts/2256 cmp=com.whatsapp/.notification.DirectReplyService (has extras)
    whitelistDuration=+30s0ms

Now I think that it may be possible to launch the intent com.whatsapp.intent.action.DIRECT_REPLY_FROM_MESSAGE using adb shell am command, and passing the intent id and message as some parameters.

(Just like we can launch Whatsapp from adb with am command, it should be possible to launch the pendingIntent also.)


Get this bounty!!!

#StackBounty: #samsung #notifications #android-10 #samsung-one-ui #sim-toolkit SIM popup messages keep the screen on indefinitely (Sams…

Bounty: 50

A little background: In my country, carriers keep sending those annoying pop-up messages (I think they’re called class-0 messages?). This has been the case for a couple of years and they won’t stop no matter what you do. Anyway, it wasn’t a big deal with my previous phones; I just learned to ignore them.

However, with my A30s (which I’ve had for a few months), I’m facing a critical issue where the screen will turn on for the message and never turn off unless I close the pop-up or manually turn it off by pressing the power button. There are basically two types of those messages:

  1. Ones that show up after a call is ended (very annoying but avoidable if I remember to close the message after ending the call):

    Messages that show up after call

  2. Ones that show up randomly (sometimes at night while I’m asleep. Screen stays on overnight and drains the battery):

    Message that pop up randomly

I couldn’t even tell which app is responsible for displaying those messages. Here’s what I’ve tried:

  • Checked the permissions for the Messages app and the Phone app to see if there’s something that controls this.
  • Disabled the "draw over other apps" permission for the Messages app.
  • Installed Google’s Messages app and set it as default (since I can’t uninstall or disable the main one).
  • I also checked the permissions for the "SIM toolkit" app but there were none. I tried disabling the notifications but the option was grayed out.

None of the above helped.

Does anyone know how to get rid of these messages?

Note: I want to avoid rooting the device or installing a custom rom.

I tried reporting this to Samsung but they weren’t very helpful.


Get this bounty!!!

#StackBounty: #desktop #notifications #gajim gajim: status change from "Away" to "Available" does not work sometimes

Bounty: 500

I have set “Away after 5 minutes” in:

Gajim
  -> Preferences
    -> Status

This mostly works as expected: After 5 minutes of inactivity, my status automatically changes to “Away”. When I come back and move mouse, or type on keyboard, the status changes back to “Available”.

But it only works 95% of the time. Sometimes, I come back, move mouse, but status does not change to “Available”.

This is extremely annoying, as I have to always check whether my status has changed every time I come back.

Why does it work sometimes, but not always?
What affects this behavior?
Is this simply a bug in Gajim, or is there something on my system that I can do to fix this?

I am using Debian Buster, and gajim 1.1.2-2

Why does such a simple thing not work reliably ?


Get this bounty!!!