Please enable JavaScript
UserAppInfo Entity in Salesforce stores the last Lightning app logged in to by the user. So, we can get the DurableId from it and use it for querying the App details from AppDefinition entity. Blog Post: https://www.infallibletechie.com/2023/06/how-to-find-users-last-logged-in-salesforce-lightning-app.html