App.profile object

Any one have more info about app.profile object. In my code app.profile.userAgent.device is not getting. it’s showing device not found.

Hi @Sachin_Muksha
Please log profile to check what you are getting via


and extract details you require.
For userAgent we are getting

"userAgent": {
          	     "browser": "Chrome",
		         "device": "Desktop",
		         "os": "OS X",
		         "platform": "Apple Mac",
	             "source": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36"

In my case, I am getting desktop as device.

1 Like