🎨 Supports setting keep-alive notification text on Android https://github.com/siyuan-note/siyuan/issues/13815

This commit is contained in:
Daniel 2025-01-14 21:57:37 +08:00
parent 3ecdd70d03
commit 5fd0874347
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 662 additions and 34 deletions

View file

@ -7,7 +7,7 @@
"id": "20240113110040-7sgw8kl", "id": "20240113110040-7sgw8kl",
"title": "Mobile App", "title": "Mobile App",
"type": "doc", "type": "doc",
"updated": "20250114213934" "updated": "20250114215441"
}, },
"Children": [ "Children": [
{ {
@ -16,7 +16,7 @@
"HeadingLevel": 2, "HeadingLevel": 2,
"Properties": { "Properties": {
"id": "20240113110114-xav9o1n", "id": "20240113110114-xav9o1n",
"updated": "20240113110114" "updated": "20250114214300"
}, },
"Children": [ "Children": [
{ {
@ -30,12 +30,21 @@
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"id": "20240113110114-j6okyut", "id": "20240113110114-j6okyut",
"updated": "20240113110129" "updated": "20250114214300"
}, },
"Children": [ "Children": [
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": "SiYuan provides Android and iOS apps, which are already available in some mobile app stores. Please search for " "Data": "SiYuan provides Android, iOS and HarmonyOS apps, and has been listed on some mobile app stores. Please search for "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "思源笔记"
},
{
"Type": "NodeText",
"Data": " or "
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
@ -399,7 +408,7 @@
"HeadingLevel": 2, "HeadingLevel": 2,
"Properties": { "Properties": {
"id": "20240113110114-3h7r74i", "id": "20240113110114-3h7r74i",
"updated": "20240113110333" "updated": "20250114215310"
}, },
"Children": [ "Children": [
{ {
@ -544,6 +553,161 @@
] ]
} }
] ]
},
{
"ID": "20250114215310-k9lnjrc",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20250114215310-k9lnjrc",
"updated": "20250114215441"
},
"Children": [
{
"Type": "NodeText",
"Data": "Custom notifications on Android"
}
]
},
{
"ID": "20250114215310-4r03n8k",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215310-4r03n8k",
"updated": "20250114215321"
},
"Children": [
{
"Type": "NodeText",
"Data": "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."
}
]
},
{
"ID": "20250114215310-7wh4al0",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215310-7wh4al0",
"updated": "20250114215348"
},
"Children": [
{
"Type": "NodeText",
"Data": "If you need to customize it, please follow the steps below:"
}
]
},
{
"ID": "20250114215310-h1tgrnv",
"Type": "NodeList",
"ListData": {
"Typ": 1
},
"Properties": {
"id": "20250114215310-h1tgrnv",
"updated": "20250114215441"
},
"Children": [
{
"ID": "20250114215310-uhglsyt",
"Type": "NodeListItem",
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "MS4=",
"Num": 1
},
"Properties": {
"id": "20250114215310-uhglsyt",
"updated": "20250114215441"
},
"Children": [
{
"ID": "20250114215310-z7geibq",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215310-z7geibq",
"updated": "20250114215441"
},
"Children": [
{
"Type": "NodeText",
"Data": "Create a text file named "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "android-notification-texts.txt"
},
{
"Type": "NodeText",
"Data": " in the desktop "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "workspace/assets/"
},
{
"Type": "NodeText",
"Data": " folder, where each line will be used as the text of the notification"
}
]
}
]
},
{
"ID": "20250114215310-6sdvtuo",
"Type": "NodeListItem",
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "Mi4=",
"Num": 2
},
"Properties": {
"id": "20250114215310-6sdvtuo",
"updated": "20250114215417"
},
"Children": [
{
"ID": "20250114215310-dzbod4g",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215310-dzbod4g",
"updated": "20250114215417"
},
"Children": [
{
"Type": "NodeText",
"Data": "Synchronize it to the Android side through "
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20210721112206-mhr9wxi",
"TextMarkBlockRefSubtype": "d",
"TextMarkTextContent": "Data sync"
}
]
}
]
}
]
},
{
"ID": "20250114215310-pqgvvof",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215310-pqgvvof",
"updated": "20250114215310"
},
"Children": [
{
"Type": "NodeText",
"Data": "After completing these two steps, the notification will use the customized text."
}
]
} }
] ]
} }

View file

@ -7,7 +7,7 @@
"id": "20240113102857-c63dmo5", "id": "20240113102857-c63dmo5",
"title": "移动端 App", "title": "移动端 App",
"type": "doc", "type": "doc",
"updated": "20250114213859" "updated": "20250114215433"
}, },
"Children": [ "Children": [
{ {
@ -16,7 +16,7 @@
"HeadingLevel": 2, "HeadingLevel": 2,
"Properties": { "Properties": {
"id": "20240113102857-aof1w7f", "id": "20240113102857-aof1w7f",
"updated": "20240113103019" "updated": "20250114214155"
}, },
"Children": [ "Children": [
{ {
@ -30,12 +30,12 @@
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"id": "20240113103019-9qixtas", "id": "20240113103019-9qixtas",
"updated": "20240113105701" "updated": "20250114214155"
}, },
"Children": [ "Children": [
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": "思源笔记提供了 Android 端和 iOS 端 App已经上架部分手机应用商店请在应用商店中搜索 " "Data": "思源笔记提供了 Android 端、iOS 端和鸿蒙端 App已经上架部分手机应用商店请在应用商店中搜索 "
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
@ -408,7 +408,7 @@
"HeadingLevel": 2, "HeadingLevel": 2,
"Properties": { "Properties": {
"id": "20240113103753-6tsixvt", "id": "20240113103753-6tsixvt",
"updated": "20240113104524" "updated": "20250114214413"
}, },
"Children": [ "Children": [
{ {
@ -552,6 +552,165 @@
] ]
} }
] ]
},
{
"ID": "20250114214413-n2v7z20",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20250114214413-n2v7z20",
"updated": "20250114215433"
},
"Children": [
{
"Type": "NodeText",
"Data": "Android 端自定义通知"
}
]
},
{
"ID": "20250114214422-sv4vhfx",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114214422-sv4vhfx",
"updated": "20250114214515"
},
"Children": [
{
"Type": "NodeText",
"Data": "为了尽量保活后台运行,思源会定时发送通知,默认的通知内容是一些开发团队喜欢的歌词。"
}
]
},
{
"ID": "20250114214516-9f65cgn",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114214516-9f65cgn",
"updated": "20250114215336"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果需要自定义它,请按如下步骤操作:"
}
]
},
{
"ID": "20250114215159-d40seb3",
"Type": "NodeList",
"ListData": {
"Typ": 1
},
"Properties": {
"id": "20250114215159-d40seb3",
"updated": "20250114215433"
},
"Children": [
{
"ID": "20250114215201-degei8s",
"Type": "NodeListItem",
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "MS4=",
"Num": 1
},
"Properties": {
"id": "20250114215201-degei8s",
"updated": "20250114215433"
},
"Children": [
{
"ID": "20250114215201-ffgvnm6",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215201-ffgvnm6",
"updated": "20250114215433"
},
"Children": [
{
"Type": "NodeText",
"Data": "在桌面端 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "工作空间/assets/"
},
{
"Type": "NodeText",
"Data": " 文件夹下创建一个名为 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "android-notification-texts.txt"
},
{
"Type": "NodeText",
"Data": " 的文本文件,其中每一行会作为通知的文本"
}
]
}
]
},
{
"ID": "20250114215213-x87hdl5",
"Type": "NodeListItem",
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "Mi4=",
"Num": 2
},
"Properties": {
"id": "20250114215213-x87hdl5",
"updated": "20250114215213"
},
"Children": [
{
"ID": "20250114215213-ca89zpd",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215213-ca89zpd",
"updated": "20250114215220"
},
"Children": [
{
"Type": "NodeText",
"Data": "通过"
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20230808120347-3cob0nb",
"TextMarkBlockRefSubtype": "d",
"TextMarkTextContent": "数据同步"
},
{
"Type": "NodeText",
"Data": "将其同步到 Android 端"
}
]
}
]
}
]
},
{
"ID": "20250114215221-sl97cs4",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215221-sl97cs4",
"updated": "20250114215242"
},
"Children": [
{
"Type": "NodeText",
"Data": "完成这两个步骤以后通知就会使用自定义的文本。"
}
]
} }
] ]
} }

View file

@ -7,7 +7,7 @@
"id": "20240113110500-dz2ae4n", "id": "20240113110500-dz2ae4n",
"title": "行動端 App", "title": "行動端 App",
"type": "doc", "type": "doc",
"updated": "20250114214031" "updated": "20250114215523"
}, },
"Children": [ "Children": [
{ {
@ -16,7 +16,7 @@
"HeadingLevel": 2, "HeadingLevel": 2,
"Properties": { "Properties": {
"id": "20240113110513-8s7tp6d", "id": "20240113110513-8s7tp6d",
"updated": "20240113110513" "updated": "20250114214225"
}, },
"Children": [ "Children": [
{ {
@ -30,12 +30,21 @@
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"id": "20240113110513-7dv2nyk", "id": "20240113110513-7dv2nyk",
"updated": "20240113110531" "updated": "20250114214225"
}, },
"Children": [ "Children": [
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": "思源筆記提供了 Android 端和 iOS 端 App已經上架部分手機應用程式商店請在應用程式商店中搜尋 " "Data": "思源筆記提供了 Android 端、iOS 端和鴻蒙端 App已經上架部分手機應用程式商店請在應用程式商店中搜尋 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "思源筆記"
},
{
"Type": "NodeText",
"Data": " 或 "
}, },
{ {
"Type": "NodeTextMark", "Type": "NodeTextMark",
@ -399,7 +408,7 @@
"HeadingLevel": 2, "HeadingLevel": 2,
"Properties": { "Properties": {
"id": "20240113110513-pxc89dc", "id": "20240113110513-pxc89dc",
"updated": "20240113110513" "updated": "20250114215505"
}, },
"Children": [ "Children": [
{ {
@ -544,6 +553,165 @@
] ]
} }
] ]
},
{
"ID": "20250114215505-lg1uhjx",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20250114215505-lg1uhjx",
"updated": "20250114215523"
},
"Children": [
{
"Type": "NodeText",
"Data": "Android 端自訂通知"
}
]
},
{
"ID": "20250114215505-fhrh4h0",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215505-fhrh4h0",
"updated": "20250114215505"
},
"Children": [
{
"Type": "NodeText",
"Data": "為了盡量保活後台運行,思源會定時發送通知,預設的通知內容是一些開發團隊喜歡的歌詞。"
}
]
},
{
"ID": "20250114215505-v559536",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215505-v559536",
"updated": "20250114215505"
},
"Children": [
{
"Type": "NodeText",
"Data": "如果需要自訂它,請按以下步驟操作:"
}
]
},
{
"ID": "20250114215505-0k51ynd",
"Type": "NodeList",
"ListData": {
"Typ": 1
},
"Properties": {
"id": "20250114215505-0k51ynd",
"updated": "20250114215523"
},
"Children": [
{
"ID": "20250114215505-kgwvae6",
"Type": "NodeListItem",
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "MS4=",
"Num": 1
},
"Properties": {
"id": "20250114215505-kgwvae6",
"updated": "20250114215505"
},
"Children": [
{
"ID": "20250114215505-cayyq7g",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215505-cayyq7g",
"updated": "20250114215505"
},
"Children": [
{
"Type": "NodeText",
"Data": "在桌面端 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "工作空間/assets/"
},
{
"Type": "NodeText",
"Data": " 資料夾下建立一個名為 "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "android-notification-texts.txt"
},
{
"Type": "NodeText",
"Data": " 的文字文件,其中每一行會作為通知的文本"
}
]
}
]
},
{
"ID": "20250114215505-y572ade",
"Type": "NodeListItem",
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "Mi4=",
"Num": 2
},
"Properties": {
"id": "20250114215505-y572ade",
"updated": "20250114215523"
},
"Children": [
{
"ID": "20250114215505-kbmum62",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215505-kbmum62",
"updated": "20250114215523"
},
"Children": [
{
"Type": "NodeText",
"Data": "透過"
},
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20211226121438-xaafdo8",
"TextMarkBlockRefSubtype": "d",
"TextMarkTextContent": "資料同步"
},
{
"Type": "NodeText",
"Data": "將其同步到 Android 端"
}
]
}
]
}
]
},
{
"ID": "20250114215505-8w2wnfo",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215505-8w2wnfo",
"updated": "20250114215505"
},
"Children": [
{
"Type": "NodeText",
"Data": "完成這兩個步驟以後通知就會使用自訂的文字。"
}
]
} }
] ]
} }

View file

@ -8,7 +8,7 @@
"id": "20240530101000-e6z5okf", "id": "20240530101000-e6z5okf",
"title": "モバイルアプリ", "title": "モバイルアプリ",
"type": "doc", "type": "doc",
"updated": "20240530101000" "updated": "20250114215620"
}, },
"Children": [ "Children": [
{ {
@ -18,7 +18,7 @@
"Properties": { "Properties": {
"ID": "20240530101000-peznsnc", "ID": "20240530101000-peznsnc",
"id": "20240530101000-2nn9stf", "id": "20240530101000-2nn9stf",
"updated": "20240530101000" "updated": "20250114214341"
}, },
"Children": [ "Children": [
{ {
@ -31,23 +31,13 @@
"ID": "20240530101000-pnwqee0", "ID": "20240530101000-pnwqee0",
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"ID": "20240530101000-ysty1wf",
"id": "20240530101000-pnwqee0", "id": "20240530101000-pnwqee0",
"updated": "20240530101000" "updated": "20250114214341"
}, },
"Children": [ "Children": [
{ {
"Type": "NodeText", "Type": "NodeText",
"Data": "SiYuan は Android と iOS のアプリも提供しています。アプリストアで " "Data": "SiYuan は Android、iOS、HarmonyOS アプリを提供しており、一部のモバイル アプリ ストアに掲載されています。アプリ ストアで「思源笔记」または「SiYuan」を検索してください。"
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "SiYuan"
},
{
"Type": "NodeText",
"Data": " を検索してください。"
} }
] ]
}, },
@ -131,7 +121,7 @@
"Properties": { "Properties": {
"ID": "20240530101000-yx7xlm6", "ID": "20240530101000-yx7xlm6",
"id": "20240530101000-zx8lkgl", "id": "20240530101000-zx8lkgl",
"updated": "20240530101000" "updated": "20250114215535"
}, },
"Children": [ "Children": [
{ {
@ -291,12 +281,159 @@
] ]
}, },
{ {
"ID": "20240530101000-wps7kn8", "ID": "20250114215535-x0zo9js",
"Type": "NodeHeading",
"HeadingLevel": 2,
"Properties": {
"id": "20250114215535-x0zo9js",
"updated": "20250114215620"
},
"Children": [
{
"Type": "NodeText",
"Data": "Android でのカスタム通知"
}
]
},
{
"ID": "20250114215535-1m8nzmu",
"Type": "NodeParagraph", "Type": "NodeParagraph",
"Properties": { "Properties": {
"ID": "20240530101000-qpexeys", "id": "20250114215535-1m8nzmu",
"id": "20240530101000-wps7kn8" "updated": "20250114215620"
},
"Children": [
{
"Type": "NodeText",
"Data": "バックグラウンドでの動作を可能な限り維持するために、SiYuan は定期的に通知を送信します。デフォルトの通知内容は、開発チームが気に入っている歌詞です。"
} }
]
},
{
"ID": "20250114215535-942fbf3",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215535-942fbf3",
"updated": "20250114215535"
},
"Children": [
{
"Type": "NodeText",
"Data": "カスタマイズする必要がある場合は、以下の手順に従ってください。"
}
]
},
{
"ID": "20250114215535-5igrtp8",
"Type": "NodeList",
"ListData": {
"Typ": 1
},
"Properties": {
"id": "20250114215535-5igrtp8",
"updated": "20250114215612"
},
"Children": [
{
"ID": "20250114215535-a0e9b4c",
"Type": "NodeListItem",
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "MS4=",
"Num": 1
},
"Properties": {
"id": "20250114215535-a0e9b4c",
"updated": "20250114215612"
},
"Children": [
{
"ID": "20250114215535-2lxc7ib",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215535-2lxc7ib",
"updated": "20250114215612"
},
"Children": [
{
"Type": "NodeText",
"Data": "デスクトップの "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "workspace/assets/"
},
{
"Type": "NodeText",
"Data": " フォルダに "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "android-notification-texts.txt"
},
{
"Type": "NodeText",
"Data": " という名前のテキストファイルを作成します。各行は通知のテキストになります。"
}
]
}
]
},
{
"ID": "20250114215535-gcwij08",
"Type": "NodeListItem",
"ListData": {
"Typ": 1,
"Delimiter": 46,
"Marker": "Mi4=",
"Num": 2
},
"Properties": {
"id": "20250114215535-gcwij08",
"updated": "20250114215604"
},
"Children": [
{
"ID": "20250114215535-hfrsfi9",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215535-hfrsfi9",
"updated": "20250114215604"
},
"Children": [
{
"Type": "NodeTextMark",
"TextMarkType": "block-ref",
"TextMarkBlockRefID": "20240530101000-wo49zvq",
"TextMarkBlockRefSubtype": "d",
"TextMarkTextContent": "データ同期"
},
{
"Type": "NodeText",
"Data": "を介してAndroid側に同期します。"
}
]
}
]
}
]
},
{
"ID": "20250114215535-0a2tswh",
"Type": "NodeParagraph",
"Properties": {
"id": "20250114215535-0a2tswh",
"updated": "20250114215535"
},
"Children": [
{
"Type": "NodeText",
"Data": "これら 2 つの手順を完了すると、通知にはカスタマイズしたテキストが使用されるようになります。"
}
]
} }
] ]
} }