cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

working with the user name

DiSiDtwin
8-Gravel

working with the user name

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?

ACCEPTED SOLUTION

Accepted Solutions

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'

View solution in original post

4 REPLIES 4

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

  • Public>>> es-public-access
  • Requires Authentication>>> User Name

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.

Announcements

Top Tags