FAQs for Adtrace Android WebBridge SDK
- General Questions
- Implementation
- Do I need to add any "SDK" or scripts to web side?
- I am using the same project and source for android
Web-ViewandPWA. is Adtrace able to track my data using justWeb-BridgeSDK? - Which files I need to import for web side?
- I need real world sample projects.
- Which platforms Adtrace supports for using
Web-Bridge? - How many
events my app can send in a day? how many parameters or meta data eacheventcan have? - I am not sure if Adtrace is tracking all of my
events. what can I do?
General Questions
My application is just one activity with a single web-view inside of it. how Adtrace is going to work on a web page inside of an app?
when an android app is actually a web-view loading inside an activity Adtrace is able to work without a problem just like a native app. the solution presented is a "Web-Bridge".
Adtrace "Web-Bridge" simply acts like a bridge between android and web sides of application. native sdk is the base for sending and managing connection and data, while web-bridge sdk is just an interface accessible via the web side of the app.
initialization is available both from web side or android native side. if your app starts from the web (meaning that user first interacts with the web page layout) use web side initialization. if your app starts from android native activity and some the pages are web view (which means user first interacts with android layout and may or may not enter web pages from there) use android native initialization.
other than initialization some features may need to implement too. for instance you want to trigger an event when user clicks on a certain button or you want to set firebase push token. in these cases you need to use whichever side (web view or native) you target to implement.
Can Web-Bridge have the exact same functionality as native?
yes. any interface you have been using in native, you can use it from web side. in fact each part of the android documentation is consist of both android native and Web-view sample of implementation.
Can I use Adtrace for PWA?
if you have a Progressive Web Applications you can use Adtrace Web SDK. if you are using it inside of an android application then you need to implement Adtrace android and web view SDKs.
Can I use Adtrace for TWA?
Trusted Web Activity is also supported by Adtrace. make sure to contact our support for more information.
Implementation
Do I need to add any "SDK" or scripts to web side?
yes. Adtrace needs to keep its data structure same and untouched through out all the processes. in order to do that you need to import asset file of Web-Bridge.
I am using the same project and source for android Web-View and PWA. is Adtrace able to track my data using just Web-Bridge SDK?
there is not any conflict for using both Adtrace Web-Bridge SDK and Web SDK in one project. the only important consideration is separating them, meaning to use Web-Bridge SDK scripts when webview is loaded inside the app and Web SDK when loaded on a browser.
Which files I need to import for web side?
you need to import js asset files to your web project in order for Adtrace to work with same data structure regarding web and native sides. this is done simply by adding these files to the project and following documentation.
I need real world sample projects.
Which platforms Adtrace supports for using Web-Bridge?
all popular platforms.
How many events my app can send in a day? how many parameters or meta data each event can have?
see these:
I am not sure if Adtrace is tracking all of my events. what can I do?
see this: Event Tracking Testing