openhab-ios icon indicating copy to clipboard operation
openhab-ios copied to clipboard

Navigating to Basic UI sitemap page from enhanced notification does not work consistently

Open lukiep opened this issue 4 months ago • 0 comments

New bug checklist

Describe the bug As per point 2 in https://community.openhab.org/t/ios-notifications-with-openhab-cloud-connector/159490

  • Using enhanced notification, navigating to a specific sitemap page via an action button eg "ui:/basicui/app?w=0000&sitemap=Crib" only really works if the iOS app has been previously opened and I have previously navigated to the sitemap (in Basic Ui).
  • If the iOS app hasn’t already been accessed, then I just get the Overview page of Main UI.
  • In summary, when attempting to navigate to a specific sitemap page, the app doesn’t reliably open the Basic UI as requested.

To Reproduce Steps to reproduce the behavior: Notification definition: actions.NotificationAction.sendNotification("[email protected]", "ALERT: This is a test.", "motion", "HVAC", "Im Really Hot!!!", "msg-alert-its_hot", "ui:/basicui/app?w=0000&sitemap=Crib", null, "OpenHAB=ui:/basicui/app?sitemap=Crib", "CoolTheHouse=rule:NotificationTest:prop1=OFF", "Cool The House=command:Test_Switch_1:ON");

  1. Make sure the OpenHAB iOS app is closed (not in the background).
  2. Trigger the enhanced notification.
  3. Long press the notification and select the action button containing the navigation to basic UI.
  4. My experience is it navigates to Main UI.
  5. Now navigate to the basic UI sitemap and minimise (but not force close the app).
  6. Follow the steps and this time it should navigate as expected.

Expected behavior

  • Open specific Basic UI sitemap page as per the link.

Screenshots If applicable, add screenshots to help explain your problem.

App (please complete the following information):

  • Version: 3.0.5(11)

Smartphone (please complete the following information):

  • Device: iPhone 13, iOS 18.0.1

openHAB (please complete the following information):

  • Version 4.3M2

Additional context Add any other context about the problem here.

lukiep avatar Oct 12 '24 09:10 lukiep