invernyx / smartcars-3-bugs

The bug tracker for the smartCARS 3 application
3 stars 0 forks source link

[FEATURE] - Launch Actions via URLs #272

Closed BossOfGames closed 2 months ago

BossOfGames commented 1 year ago

Is your feature request related to a problem? Please describe.

In the phpVMS Code, there are links to vmsACARS which allows for flights to be started/loaded directly from the website.

Screenshot 2023-06-18 at 16 43 19

Describe the solution you'd like

Similarly, I'd like for the ability for smartCARS 3 to parse a URL, like start a flight with flight tracking via sc3:{communityid}/com.tfdidesign.flight-tracking/startflight?{flightparams}. This way, we can drive people to the client, from the website.

Describe alternatives you've considered

I don't think there's alternatives to this type of functionality.

Additional context

Ideally, I would like to see if this could work on a "cold start" (application closed).

GenericNerd commented 1 year ago

We have actually considered this in the past. The problem that I have yet to figure out is:

  1. How do we actually go about implementing this?

I have done some research on this previously, and I was not able to find what I wanted, which was a system-agnostic solution. I did find some answers for a Windows specific solution, but this does not apply to MacOS or Linux.

Upon further research, there is an option for app.setAsDefaultProtocolClient which we would likely use.

  1. How would we handle a case where the plugin you are linking to does not exist on the user system, e.g. a user plugin?

We could present a "plugin not found" error, or something similar, but do we perhaps want to direct the user to download said plugin?

Thien42 commented 2 months ago

Closing this for now, we might consider it again in the future