home-assistant / home-assistant/iOS

Notification with shortcut won't pass any data to the shortcut

Open
#2,364 6 comments 3 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

**iOS device model, version and app version**

Model Name: iPhone 13 mini
Software Version: iOS 16.4.1 (a)
App version: Home Assistant Companion 2023.4 (2023.460)

**Home Assistant Core Version**
Home Assistant 2023.5.3

**Describe the bug**
When I pass data to an iOS shortcut, the shortcut receives nothing.

**To Reproduce**

Create an iOS shortcut with a single message box that shows the input to the shortcut (by default it will accept anything, i.e., images and any of the other 18 allowed types, in Italian "Immagini e altri 18")
![image](https://github.com/home-assistant/iOS/assets/3187799/c40a9c44-6415-49b9-ad71-505635e43db7)

Call service:

```
service: notify.mobile_app_gkipdm
data:
message: The garage door has been open for 10 minutes.
title: Your Garage Door Friend
data:
shortcut:
name: "Test1"
mytext: "this is my text"
```

**Expected behavior**
The messagebox should show the input data, I guess a dictionary with mytext. It shows nothing instead.

**Screenshots**
![IMG_3122](https://github.com/home-assistant/iOS/assets/3187799/f58ac14e-fcff-4dfd-a6b2-3fd88e05b6b5)

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.