Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android WebView Integration] Where can I get the Adjust JS scripts & how do I set them up locally? #629

Open
hrishikeshsoman opened this issue Jan 2, 2025 · 4 comments

Comments

@hrishikeshsoman
Copy link

I’m working on integrating the Adjust Web View SDK in my Android app, which loads HTML content through a WebView. According to the [Adjust documentation], I need to include the following JavaScript files in my web page:

<script src="adjust.js"></script>
<script src="adjust_event.js"></script>
<script src="adjust_third_party_sharing.js"></script>
<script src="adjust_config.js"></script>

However, I have some open questions and issues:

  1. Where can I obtain these JavaScript files?

    • The documentation mentions importing them but doesn’t clearly specify where to download them. I don’t see them in the Android SDK or in the repository.
    • Should I contact Adjust support directly to obtain these files? Are they available somewhere in a public GitHub repo?
  2. Local vs. Remote Hosting

    • If I want to load them locally (e.g., in my assets/ folder), is that recommended or do I need to reference a CDN/URL provided by Adjust?
    • Are there any caching or versioning best practices if I host these scripts on my own server?

Any guidance on the above points would be greatly appreciated!

Thank you!
If there’s a better channel to get these script files or specific documentation for the WebView integration, please let me know.


Additional Context

  • Platform: Android
  • Adjust SDK version: 5.0.0

Thank you in advance for your help!

@namini40
Copy link

namini40 commented Jan 4, 2025

Link to the files

  • as a recommendation its better to do it locally but after all it's a matter of your design

@hrishikeshsoman
Copy link
Author

I see, thanks for the reply, well I think its better to add these links in the documentation itself :)
or is this an interim solution to inject Adjust APIs to webview context?

@namini40
Copy link

namini40 commented Jan 7, 2025

if there is you load the html locally, it is but since nowadays almost always launching the remote url is the case, i think the answer would be 'no'.

@hrishikeshsoman
Copy link
Author

I see, Thanks for the support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants