BraidenPsiuk / pinephone.js

Interact with PinePhone devices using JavaScript!
https://npmjs.com/pinephone
GNU General Public License v3.0
4 stars 0 forks source link

Notification inconsistencies on Phosh #3

Open BraidenPsiuk opened 2 years ago

BraidenPsiuk commented 2 years ago

All of the following commands fail to show pop-up notifications when the phone is unlocked. They'll only appear when you slide down from the top-edge of the screen to view the "notification center" area.

pinephone.notify(" ")
pinephone.notify(" ", " ")
pinephone.notify("test")
pinephone.notify("test", " ");
pinephone.notify("Hello!", "What is go") // <=10 characters in the body seems to fail...

This, however, works:

pinephone.notify("Hello!", "What is goi") // This works... needs >10 characters?
BraidenPsiuk commented 2 years ago

Dollar sign characters ($) also seem to either get completely ignored, or have strange effects on other characters.

BraidenPsiuk commented 2 years ago

More strange behavier... running this:

pinephone.notify("TEST", "!@#$$test$123")

Outputs the following: Title: "TEST" Body: "!@#464969test23"

BraidenPsiuk commented 2 years ago

The dollar sign character issues are related to running as a shell command, and can be seemingly fixed by using single quote strings as arguments to notify-send instead of double quote strings.