Title: Message to end Live Activity does not close it on the device. · Issue #909 · firebase/firebase-admin-python · GitHub
Open Graph Title: Message to end Live Activity does not close it on the device. · Issue #909 · firebase/firebase-admin-python
X Title: Message to end Live Activity does not close it on the device. · Issue #909 · firebase/firebase-admin-python
Description: 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 activiti...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/firebase/firebase-admin-python/issues/909
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Message to end Live Activity does not close it on the device.","articleBody":"### Environment\n\n * Operating System version: python:3.12.10-slim Docker image running on MacOS\n * Firebase SDK version: 6.9.0\n * Firebase Product: cloud messaging\n * Python version: 3.12.10\n * Pip version: 25.0.1\n\n### The problem\nManagement of iOS live activities.\nCurrently I can successfully start a live activity using the sdk with the following message:\n\n```\nmessage = messaging.Message(\n apns=messaging.APNSConfig(\n live_activity_token=live_activity_token,\n payload=messaging.APNSPayload(\n aps=messaging.Aps(\n alert=messaging.ApsAlert(\n title=\"Live Activity Started\",\n body=\"Your live activity has been started\",\n ),\n custom_data = {\n \"input-push-token\": 1,\n \"event\": \"start\",\n \"timestamp\": int(time.time()),\n \"content-state\": {\n \"myAttribute\": False,\n },\n \"attributes-type\": \"MyObjectAttributes\",\n \"attributes\": {\n \"name\": \"name\",\n },\n },\n ),\n headers={\n \"apns-priority\": \"5\",\n },\n ),\n ),\n data={ 'type': 'mytype' },\n token=token\n)\n```\n\nThe 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:\n\n```\nmessage = messaging.Message(\n apns=messaging.APNSConfig(\n live_activity_token=live_activity_token,\n payload=messaging.APNSPayload(\n aps=messaging.Aps(\n alert=messaging.ApsAlert(\n title=\"Live Activity Ended\",\n body=\"Your live activity has been ended\",\n ),\n custom_data = {\n \"event\": \"end\",\n \"timestamp\": int(time.time()),\n \"dismissal-date\": int(time.time()),\n \"content-state\": {\n \"myAttribute\": False\n },\n \"attributes-type\": \"MyObjectAttributes\",\n \"attributes\": {\n \"name\": \"name\"\n },\n },\n ),\n headers={\n \"apns-priority\": \"5\",\n },\n ),\n ),\n data={ 'type': 'mytype' },\n token=token\n)\n```\nAll the responses of the `messaging.send_each` method are successful (`response.success =\u003e True`) but the live activity does not end.\n\n#### Steps to reproduce:\n\nCurrently these are the steps to reproduce the issue:\n- Start a live activity with the `start` message\n- Send the `end` message via the `messaging.send_each` method\n- Check the responses, they should be successful\n- The live activity still displays on the device\n\nPS: this might be an issue with Firebase itself and not with the sdk, but I am not entirely sure.","author":{"url":"https://github.com/dr-contributor","@type":"Person","name":"dr-contributor"},"datePublished":"2025-08-30T08:23:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/909/firebase-admin-python/issues/909"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:83f6fa1e-c9ee-bdae-4af3-c9ba538c9a26 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC54:162A79:17E74C:20034E:698ECD78 |
| html-safe-nonce | 7ff1c2b93aa84b746d8e37f9bbd17923b86c3782ffde89e705ec6574f1d53fed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzU0OjE2MkE3OToxN0U3NEM6MjAwMzRFOjY5OEVDRDc4IiwidmlzaXRvcl9pZCI6IjYzNTM3NzMxMDgxOTc3NzI2NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 19fe0f31c3e10cfb63768da95b58270b21e844792d86407e5c77f337e98ce291 |
| hovercard-subject-tag | issue:3368903541 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/firebase/firebase-admin-python/909/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d21876479d4e514adab6bc74cc6b2aec8004c0ea73f90211b0f4c16d193c987e/firebase/firebase-admin-python/issues/909 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d21876479d4e514adab6bc74cc6b2aec8004c0ea73f90211b0f4c16d193c987e/firebase/firebase-admin-python/issues/909 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dr-contributor |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/firebase/firebase-admin-python git https://github.com/firebase/firebase-admin-python.git |
| octolytics-dimension-user_id | 1335026 |
| octolytics-dimension-user_login | firebase |
| octolytics-dimension-repository_id | 84979152 |
| octolytics-dimension-repository_nwo | firebase/firebase-admin-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84979152 |
| octolytics-dimension-repository_network_root_nwo | firebase/firebase-admin-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width