Comments (5)
That's an interesting use case we haven't tested yet. We'll look into it.
If you feel like exploring it yourself, you could start by adding some logging inside the adjust SDK to check if the trackEvent
function actually gets called. You could extend that too see where exactly it stops working. If you do that, we would be interested in your findings.
from android_sdk.
Indeed the issue is the missing Activity. Therefore the activityHandler in the Adjust class is null and as the logger is null as well any reporting is just swallowed. (see method trackRevenue(): https://github.com/adjust/android_sdk/blob/master/Adjust/src/com/adjust/sdk/Adjust.java#L116 )
Within my push receiver I have no access to any Activity and therefore I can't call Adjust.onResume() or similar to setup everything.
On further (short) digging: Why does the ActivityHandler needs an Activity in the first place? All I see is that the ApplicationContext is needed. If I am not mistaken, the easiest way would be to change the Activity parameter to a Context type and so it should work.
Am I missing something?
from android_sdk.
Am I missing something?
No that's a good observation. We only use the activity to get access to the context. So you're right, we could change the parameter type and you could call Adjust.onResume
before Adjust.trackEvent
. We will change that in future.
Thanks 👍
from android_sdk.
@nonelse: I sent you a patch from @WarrenFaith to fix the issue. Could you apply it?
@WarrenFaith: Thanks for the patch. 👍
Feel free to open pull requests in the future.
from android_sdk.
Fixed in version v3.6.1
from android_sdk.
Related Issues (20)
- TWA (Trusted Web Application) has no Activity in android native HOT 3
- Duplicate class HOT 3
- Fixed it
- Unable to get any Device IDs. Please check if Proguard is correctly set with Adjust SDK HOT 2
- Tracked event not show Adjust console HOT 2
- Android Deferred deeplink testing for Reinstalls HOT 2
- All installs are attributed to Organic HOT 3
- ANR caused by adjust_sdk HOT 2
- adjust-android-samsung-referrer error HOT 2
- Update the 'Get started with the Android SDK' documentation HOT 1
- Issues with AGP 8 / R8 Full Mode HOT 3
- `AdjustEvent` properties not public anymore HOT 4
- Hi, Adjust team. I want to integrate adjust sdk for our android app, but there is a question. HOT 2
- Why can't i download SDK for java codes? HOT 1
- Hi, Team. I have a question here about config for tracking. HOT 1
- CleverTap integration HOT 3
- Adjust.getAdId() takes no callback ? HOT 1
- Critical security warning com.adjust.sdk.webbridge.AdjustBridgeUtil$8$2 does not check TLS certificate validity correctly HOT 1
- Add filter Nan for double to AdjustAttribution.toMap() method
- StrictMode DiskReadViolation during initialization
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android_sdk.