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

Supports setting keep-alive notification text on Android #13815

Closed
88250 opened this issue Jan 14, 2025 · 6 comments
Closed

Supports setting keep-alive notification text on Android #13815

88250 opened this issue Jan 14, 2025 · 6 comments
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Jan 14, 2025

https://liuyun.io/article/1736809674707

Custom notifications on Android

In order to keep the background running as much as possible, SiYuan will send notifications regularly. The default notification content is some lyrics that the development team likes.

If you need to customize it, please follow the steps below:

  1. Create a text file named android-notification-texts.txt in the desktop workspace/data/assets/ folder, where each line will be used as the text of the notification
  2. Synchronize it to the Android side through Data sync

After completing these two steps, the notification will use the customized text.

Android 端自定义通知

为了尽量保活后台运行,思源会定时发送通知,默认的通知内容是一些开发团队喜欢的歌词。

如果需要自定义它,请按如下步骤操作:

  1. 在桌面端 工作空间/data/assets/ 文件夹下创建一个名为 android-notification-texts.txt 的文本文件,其中每一行会作为通知的文本
  2. 通过数据同步将其同步到 Android 端

完成这两个步骤以后通知就会使用自定义的文本。

@88250 88250 self-assigned this Jan 14, 2025
@88250 88250 added this to the 3.1.20 milestone Jan 14, 2025
88250 added a commit to siyuan-note/siyuan-android that referenced this issue Jan 14, 2025
@88250 88250 closed this as completed Jan 14, 2025
@TCOTC
Copy link
Contributor

TCOTC commented Jan 14, 2025

本来以为会在设置里加一个输入框的,没想到这么硬核

@kuangdongksk
Copy link

之后会支持插件推送安卓端的通知吗?

@88250
Copy link
Member Author

88250 commented Jan 17, 2025 via email

@TCOTC
Copy link
Contributor

TCOTC commented Jan 17, 2025

android-notification-texts.txt 会被当成未引用的资源文件清理掉

@TCOTC
Copy link
Contributor

TCOTC commented Jan 17, 2025

不对,是 工作空间/assets/ 还是 工作空间/data/assets/ ?

@88250
Copy link
Member Author

88250 commented Jan 17, 2025

data/assets

这两个问题稍后改进。

EightDoor added a commit to EightDoor/siyuan that referenced this issue Jan 22, 2025
* commit '2ee69394da22d5cdbd30ae46b36f0bb4c8e15de4': (101 commits)
  🔖 Release v3.1.20
  🎨 PNPM Lint
  📝 Update changelogs
  📝 Improve the user guide
  📝 Improve User Guide (siyuan-note#13825)
  🎨 siyuan-note#13793
  🎨 Improve workspace path checking siyuan-note#7569
  🎨 siyuan-note#13677
  🎨 siyuan-note#13801
  🎨 siyuan-note#13796
  🎨 siyuan-note#13735
  🎨 siyuan-note#13704
  🎨 Supports setting keep-alive notification text on Android siyuan-note#13815
  🎨 Improve the user guide
  🎨 siyuan-note#13704
  🎨 Backlink count at the doc block title including sub-blocks siyuan-note#13791
  🎨 Improve tree block stat siyuan-note#13811
  🎨 Improve text
  🎨 Backlink count at the doc block title including sub-blocks siyuan-note#13791
  🎨 siyuan-note#13791
  ...
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

3 participants