-
Notifications
You must be signed in to change notification settings - Fork 2
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
All Android signals are always send with "testMode=true" while iOS works fine #6
Comments
@novas1r1 I noticed your comment and I tried to reproduce the faulty behaviour but so far without success. Just to double check - the issue is that using the following setup results in signals being set as test mode? Telemetrydecksdk.start(
TelemetryManagerConfiguration(
appID: Config.TELEMETRYDECK_APP_ID,
testMode: false
),
); The behaviour of the library is expected to be as follows:
In other words, the following will be in test mode for builds where debugging is allowed, but not in test mode for production builds: Telemetrydecksdk.start(
TelemetryManagerConfiguration(
appID: Config.TELEMETRYDECK_APP_ID
),
);
Would it be possible to check if the android release is not configured as "debuggable"? There are several ways this may have been done, e.g., by adding |
Hey @kkostov, So in my app I tried this:
and this:
and this:
Android is broken, all signals (not sure, if its all signals, it would have been only 3 users the past 2 weeks, which is definitely not the case as I can see from registrations in Firebase) end up in the test mode. Not sure what else I can try here? I searched for debuggable flags, but couldn't find any. For the release versions I definitely use the --release flag to build the app. I will try with another project as well. |
Thanks @novas1r1 , that looks strange indeed. I will do some more testing and try to narrow it down. |
@winsmith I confirmed that the Android SDK is respecting the current mode when setting the [
{
"receivedAt": "2024-05-07T11:32:24.401Z",
"appID": "22385f1c-3699-4f04-9d63-24cc0b2e62d8",
"clientUser": "04f8996da763b7a969b1028ee3007569eaf3a635486ddab211d512c85b9df8fb",
"sessionID": "5db7d8f1-6307-4d8c-97e5-1c58251e30e7",
"type": "not_a_test",
"payload": [
"dartVersion:3.3.4 (stable) (Tue Apr 16 19:56:12 2024 +0000) on 'android_arm'",
"telemetryClientVersion:Flutter 0.3.0",
"appVersion:1.0",
"systemVersion:Android SDK: 30 (11)",
"majorSystemVersion:11",
"majorMinorSystemVersion:11.0",
"locale:English (United Kingdom)",
"brand:samsung",
"targetEnvironment:gta3xlwifi",
"modelName:SM-T510 (gta3xlwifieea)",
"architecture:armv8l",
"operatingSystem:Android"
],
"isTestMode": false
},
{
"receivedAt": "2024-05-07T11:32:24.401Z",
"appID": "22385f1c-3699-4f04-9d63-24cc0b2e62d8",
"clientUser": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"sessionID": "5db7d8f1-6307-4d8c-97e5-1c58251e30e7",
"type": "not_a_test",
"payload": [
"dartVersion:3.3.4 (stable) (Tue Apr 16 19:56:12 2024 +0000) on 'android_arm'",
"telemetryClientVersion:Flutter 0.3.0",
"appVersion:1.0",
"systemVersion:Android SDK: 30 (11)",
"majorSystemVersion:11",
"majorMinorSystemVersion:11.0",
"locale:English (United Kingdom)",
"brand:samsung",
"targetEnvironment:gta3xlwifi",
"modelName:SM-T510 (gta3xlwifieea)",
"architecture:armv8l",
"operatingSystem:Android"
],
"isTestMode": false
}
] |
Will do, but it'll be tomorrow. Thanks! |
Oh wait I see it: 'isTestMode' needs to be a string, either "true" or "false". A remnant of the old days when our db didn't support any other types |
@novas1r1 version |
Thanks a lot @kkostov - will check on friday and provide feedback :) |
Hey,
I just discovered all my Android signals from my app were put in my "in testing" dashboard, while all iOS signals are correctly displayed in the production board.
iOS:
![image](https://private-user-images.githubusercontent.com/2575205/323229590-28343cf7-dcbd-4bfb-9aa7-461fc22b6ce9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyMzYyNzMsIm5iZiI6MTcyMzIzNTk3MywicGF0aCI6Ii8yNTc1MjA1LzMyMzIyOTU5MC0yODM0M2NmNy1kY2JkLTRiZmItOWFhNy00NjFmYzIyYjZjZTkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0W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9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Q85a854vbDdhG5H1qkO_lqmEFIN-Xvfe6X1BKPoNrtw)
Any idea why?
My implementation looks as follows for both - Android and iOS:
The correct value for testMode is definitely set when sending, I double checked this.
The text was updated successfully, but these errors were encountered: