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

Emojis in iOS notifications stopped working in 2022.7 #75048

Closed
reesion opened this issue Jul 12, 2022 · 12 comments
Closed

Emojis in iOS notifications stopped working in 2022.7 #75048

reesion opened this issue Jul 12, 2022 · 12 comments

Comments

@reesion
Copy link

reesion commented Jul 12, 2022

The problem

iOS notifications with emoji/surrogate codes not working after 2022.7 update

What version of Home Assistant Core has the issue?

2022.7.3

What was the last working version of Home Assistant Core?

2022.6.7

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

iOS

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@probot-home-assistant
Copy link

mobile_app documentation
mobile_app source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (mobile_app) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@frenck
Copy link
Member

frenck commented Jul 12, 2022

Do you have an example service call we can use to reproduce this issue?

@SenMorgan
Copy link

SenMorgan commented Jul 12, 2022

I have the same issue. Example of call:
- service: notify.mobile_app data: title: "{{ 'ℹ️' }} System Notification" message: Home Assistant started {{ '\uD83D\uDC4C' }} at {{ states('sensor.time') }}

@reesion
Copy link
Author

reesion commented Jul 12, 2022

Do you have an example service call we can use to reproduce this issue?

service: notify.mobile_app_iphone_2
data:
message: 'Garage Entry {{ "\uD83D\uDCA1" }} has been turned off: {{now().strftime("%H:%M:%S %a, %d/%m/%Y")}}'

@BenHornerTech
Copy link

BenHornerTech commented Aug 2, 2022

Same issue for me. I have the below set up as a notification which worked fine until 2022.7 and does work if I remove the emojis.

The below sends no notification:

service: notify.all_ios_devices
data:
  message: How wonderful! {{ "\ud83d\ude0d" }}
  title: They are back

The below works:

service: notify.all_ios_devices
data:
  message: How wonderful! {{ "hello" }}
  title: They are back

@BenHornerTech
Copy link

As an update, I found that if I changed:

message: How wonderful! {{ "\ud83d\ude0d" }}

to this:

message: "How wonderful! \ud83d\ude0d"

It works

@DHoefakker
Copy link

As an update, I found that if I changed:

message: How wonderful! {{ "\ud83d\ude0d" }}

to this:

message: "How wonderful! \ud83d\ude0d"

It works

For me it still doesn't work in "title", tried both options.
The notification only is send when "only text" is used in title.

@reesion
Copy link
Author

reesion commented Sep 9, 2022

A work around will be to paste the emoji symbol directly into your text / code (e.g., 💡)

message: 'Garage Entry 💡 has been turned off: {{now().strftime("%H:%M:%S %a, %d/%m/%Y")}}'

@rwarner
Copy link

rwarner commented Sep 12, 2022

Have the same issue, was working fine in Title until recently. Referenced this other ticket with a UTF-8 error in the log: #75621

title: "\uD83D\uDCEB\uD83D\uDCEB  Mail has arrived  \uD83D\uDCEB\uD83D\uDCEB"

Will note that in the Services tab, when I attempt the same it works in the front end but not in my automation

@EmJay276
Copy link
Contributor

Its the same problem for Android notifications.

As an update, I found that if I changed:

message: How wonderful! {{ "\ud83d\ude0d" }}

to this:

message: "How wonderful! \ud83d\ude0d"

It works

But this here worked for me too. Thanks!

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants