Expand my Community achievements bar.

SOLVED

Traffic not getting through app with Xamarin build

Avatar

Level 1

I have a dot net application which is wrapped in Xamrin build. I can see analytics traffic from web, but not from Xamrin app. I can see windows object is created and data is build in required structure. But no traffic is going to analytics dashboard. Can someone suggest any solution or any way to debug any points. 
I tried to get XHR requests initiated from page, but as Analytics request if a 'gif' so I am unable to capture that.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

From my understanding, Xamarin is used more for Native Apps... Is your app Native, or has it been built as a Native App wrapper, loading in a website like app.site.com?

 

If it's a Native app, you need to integrate the Mobile App SDK which works very differently than web requests (you need to set up context variables, use trackState and trackAction functions, and map the context variables to your props and eVars using processing rules....https://aep-sdks.gitbook.io/docs/

If you are doing this, I highly recommend installed the AEP Assurance extension so that you can debug easier.

 

If you are actually loading a variant website through something like a webview within your app, then the tracking can be done like any website, and you should be able to test the web site (app.site.com directly) or see the tracking calls by connecting your device through a proxy to your computer and using an HTTP Sniffer tool like Charles or Fiddler to debug your implementation.

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

From my understanding, Xamarin is used more for Native Apps... Is your app Native, or has it been built as a Native App wrapper, loading in a website like app.site.com?

 

If it's a Native app, you need to integrate the Mobile App SDK which works very differently than web requests (you need to set up context variables, use trackState and trackAction functions, and map the context variables to your props and eVars using processing rules....https://aep-sdks.gitbook.io/docs/

If you are doing this, I highly recommend installed the AEP Assurance extension so that you can debug easier.

 

If you are actually loading a variant website through something like a webview within your app, then the tracking can be done like any website, and you should be able to test the web site (app.site.com directly) or see the tracking calls by connecting your device through a proxy to your computer and using an HTTP Sniffer tool like Charles or Fiddler to debug your implementation.