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

Getting links to open in FlightRadar24 app from iOS notifications #49

Closed
ShawnCBerg opened this issue Sep 3, 2024 · 2 comments
Closed

Comments

@ShawnCBerg
Copy link

I've been using this plugin today and was having difficulty getting links from notifications to open in the FR24 iOS app. They would always open the app and the app would immediately forward the request to the browser. It turns out you need to add the ID to the URL. Updating the URL for the notification to be as follows fixed it so they now open natively in the app on iOS. I didn't see the id value in the documentation but found it by looking at the automation trace. I figured I'd share so maybe you could update the documentation if you felt it was relevant for others. Here's the YAML I'm using for the automation now:

alias: Flight entry notification
trigger:
  - platform: event
    event_type: flightradar24_entry
action:
  - data:
      message: >-
        {{ trigger.event.data.airline }} {{ trigger.event.data.flight_number }}
        ({{ trigger.event.data.callsign }}) from {{
        trigger.event.data.airport_origin_city }} to {{
        trigger.event.data.airport_destination_city }} {{
        trigger.event.data.ground_speed }} knots {{ trigger.event.data.altitude
        }} ft. overhead.
      data:
        url: >-
          https://fr24.com/{{ trigger.event.data.callsign }}/{{
          trigger.event.data.id }}
        image: "{{ trigger.event.data.aircraft_photo_medium }}"
    action: notify.mobile_app_myiphone

@AlexandrErohin
Copy link
Owner

@ShawnCBerg Thank you!

@AlexandrErohin
Copy link
Owner

@ShawnCBerg Added to README
Dont forget please to give a star to the repo :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants