Message to end Live Activity does not close it on the device.
維護者通常 1 天內回覆
@chong-shao 已經在處理了。
開始於 2025年9月2日。
評估
這個 Issue 還沒有評估資料。
描述
Environment
- Operating System version: python:3.12.10-slim Docker image running on MacOS
- Firebase SDK version: 6.9.0
- Firebase Product: cloud messaging
- Python version: 3.12.10
- Pip version: 25.0.1
The problem
Management of iOS live activities.
Currently I can successfully start a live activity using the sdk with the following message:
message = messaging.Message(
apns=messaging.APNSConfig(
live_activity_token=live_activity_token,
payload=messaging.APNSPayload(
aps=messaging.Aps(
alert=messaging.ApsAlert(
title="Live Activity Started",
body="Your live activity has been started",
),
custom_data = {
"input-push-token": 1,
"event": "start",
"timestamp": int(time.time()),
"content-state": {
"myAttribute": False,
},
"attributes-type": "MyObjectAttributes",
"attributes": {
"name": "name",
},
},
),
headers={
"apns-priority": "5",
},
),
),
data={ 'type': 'mytype' },
token=token
)
The issue appears when trying to end the live activity, it seems that the sent message has no effect and the live activity remains on the lock screen of the device. This is the message that is being sent:
message = messaging.Message(
apns=messaging.APNSConfig(
live_activity_token=live_activity_token,
payload=messaging.APNSPayload(
aps=messaging.Aps(
alert=messaging.ApsAlert(
title="Live Activity Ended",
body="Your live activity has been ended",
),
custom_data = {
"event": "end",
"timestamp": int(time.time()),
"dismissal-date": int(time.time()),
"content-state": {
"myAttribute": False
},
"attributes-type": "MyObjectAttributes",
"attributes": {
"name": "name"
},
},
),
headers={
"apns-priority": "5",
},
),
),
data={ 'type': 'mytype' },
token=token
)
All the responses of the messaging.send_each method are successful (response.success => True) but the live activity does not end.
Steps to reproduce:
Currently these are the steps to reproduce the issue:
- Start a live activity with the
startmessage - Send the
endmessage via themessaging.send_eachmethod - Check the responses, they should be successful
- The live activity still displays on the device
PS: this might be an issue with Firebase itself and not with the sdk, but I am not entirely sure.
- 主要語言
- Python
- 星號
- 1.2k
- 分支
- 362
- 平均合併
- 8 小時 7 分鐘
- 30 天內合併 PR
- 3
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
firebase/firebase-admin-python 的其他 Issue
-
Fix typos and wrong types in remote_config.py可能已有人在做 @Shubham-Padkonde 於 11 天前認領。 未關閉api: remoteconfig
難度 2/5 1-3 小時 新手友好度 75/100
firebase/firebase-admin-python#957 · 1 則留言 ·
維護者通常 1 天內回覆
-
api: database type: feature request
難度 2/5 1-3 小時 新手友好度 62/100
firebase/firebase-admin-python#58 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 45/100
firebase/firebase-admin-python#978 · 1 則留言 ·
維護者通常 1 天內回覆
-
[FR] Support VERIFY_AND_CHANGE_EMAIL in generate_email_action_link (parity with firebase-admin-node)可能已有人在做 @lahirumaramba 於 153 天前認領。 未關閉api: auth
firebase/firebase-admin-python#949 · 2 則留言 · 1 個 reaction · 已指派 1 人 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 43/100
firebase/firebase-admin-python#945 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
查看 firebase/firebase-admin-python 的全部 Issue
相似的 Issue
-
Device Details tables: FS/SF columns contradict each other (nfet_01v8 Vt row, pfet_01v8 Idsat row)未關閉
難度 2/5 1-3 小時 新手友好度 75/100
google/skywater-pdk#450 ·
-
Drained trajectory arrays are overwritten when the sequence buffer is reused可能已有人在做 @sylvesterkaczmarek 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
google-deepmind/bsuite#56 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
LearningCircuit/local-deep-research#7206 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
chingu-voyages/V62-tier3-team-33#285 ·
維護者通常 1 天內回覆
-
Proxy drops log notifications from backends that don't send FastMCP's msg/extra dict可能已有人在做 @asasemahmed 今天認領。 未關閉bug server
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆