Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Good afternoon!
I want to work with the username in my services. But, elementary, Vuforia does not display the user name in the text field. I use the Current Session Info thing and the getCurrentUser service and output the result to a text field, but it doesn't work.
Previously, there were already topics with such a question, but the approach that is mentioned there does not work.
What should I do? Are there any solutions?
Solved! Go to Solution.
Hi, @DiSiDtwin
I tried the methed in display actual user name in statusbar , and it works.
Have you tried this?
My setting:
Button Event(click, pressed...) >>> CurrentSessionInfo\ Service\ GetCurrentUser
GetCurrentUser Service\ Current Selected Item\ result >>> Widget property 'text'
Hi, @DiSiDtwin
I tried the methed in display actual user name in statusbar , and it works.
Have you tried this?
My setting:
Button Event(click, pressed...) >>> CurrentSessionInfo\ Service\ GetCurrentUser
GetCurrentUser Service\ Current Selected Item\ result >>> Widget property 'text'
Hi, @dsgnrClarK
Yes, of course I tried it. This works if I launch my project in Vuforia Studio by clicking the Preview button.
But if I open this project already through the View app on my mobile phone, it doesn't work.
Hi, @DiSiDtwin
If I set the Project Access to
What is your Access setting?
What response do you have on your mobile phone?
Hi, @dsgnrClarK
Thanks for the help. I solved my problem and it was related to CORS. After I set up the policies, everything worked.