I found this article: Get The Username/User Id Of Currently Logged In User In A UWP App
to get the username of current user logged in in uwp app , but when I tried the accepted answer , it returns null/empty , is there any updated version of that?
NOTE: Iam using a microsoft account
UPDATE: All properties from "KnownUserProperties" returns empty string except for "First Name" & "Last Name"
Thanks
Did enable the User Account Information in the package.appxmanifest ?
Here is the image which shows the manifest file.