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

console.log(app.profile,"profile")

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/108.0.0.0 Safari/537.36"
		     },

In my case, I am getting desktop as device.
Thanks

1 Like