Traffic not getting through app with Xamarin build | Community
Skip to main content
March 30, 2023
Solved

Traffic not getting through app with Xamarin build

  • March 30, 2023
  • 1 reply
  • 584 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jennifer_Dungan

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.

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
March 30, 2023

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.