home-assistant / home-assistant/iOS

Notifications with attachments do not work when the app is compiled from source code

Open
#3,232 1 comment 0 reactions 0 assignees View on GitHub
bug ios
Dominant language
Swift
Stars
2.4k
Forks
520
Avg merge
7h 27m
Merged PRs (30d)
264

Description

Model Name: iPhone14
Software Version: iOS 18.1.1
App version: 2024.9.5-2024.986

**Home Assistant Core Version**
2024.11.3

**Describe the bug**
After compiling the app from the source code and setting my instance of Firebase, if I send a notification from HA, I only receive notifications with the title and text, and the attachment is lost. If I use the HA version downloaded from the app store, it works correctly.

Is there any option to be set to make it work? Or should a specific setting be placed in the Firebase console? The Android version works without any problem with the same setup.

**To Reproduce**
Compile the app from the source code, set up a custom Firebase project, change the URLs in the source code (Rate limit and push notification), and send a notification with attachments from HA.

**Expected behavior**
The notification with the image should be received.

**Screenshots**

Compiled version

![Screenshot 2024-12-04 at 15 51 05](https://github.com/user-attachments/assets/6806c728-a995-4e2d-a4f3-9f95debdf099)

App Store Version

![Screenshot 2024-12-04 at 15 50 05](https://github.com/user-attachments/assets/6f4b9064-cee5-4dc1-ac39-1f722c1175e0)

Test notification in firebase

![Screenshot 2024-12-04 at 16 05 12](https://github.com/user-attachments/assets/7db8aa31-67ad-409d-a711-e7033ef73d02)

Result in Android

![Screenshot 2024-12-04 at 16 05 57](https://github.com/user-attachments/assets/12b98da2-bfd5-4152-9b6f-46f8bab75ffa)

Result in iOS (compiled app)

![Screenshot 2024-12-04 at 16 07 11](https://github.com/user-attachments/assets/b9b9b25f-8f3e-4442-b575-02761357db62)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.