question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tweaks values not loading until an activity is stopped and resumed

See original GitHub issue

We have a teak defined in app and on mixpanel and the experiment is joined and mixpanel lib continue to return the default value until we move app to background or open some other activity and com back to the previous activity. ie: until pause/stop or start/resume lifecycle events on the main activity the uses that tweak are called.

Mixpanel lib version 4.9.3.

Let me know if you need more info.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
AamirAbrocommented, Apr 26, 2017

But the experiment is already joined I can see that in the logs but first time it always gives the default value of tweak and the the tweak value is not retained across app restarts, as far as I know only andorid SDK has these issues I talked to iOS developer he said they don’t​ face these issues. I would suggest to keep this thread open and try to have some good default implementation.

1reaction
AamirAbrocommented, Jan 30, 2017

any update guys! let me know how can help or if you need more info/context.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The activity lifecycle | Android Developers
When your activity enters the Stopped state, the Activity object is kept resident in memory: It maintains all state and member information, but ......
Read more >
Firefox/Tweaks - ArchWiki - Arch Linux
The "tweaks" are the backbone of the content related to Firefox, so they should be directly on the main page. The troubleshooting section ......
Read more >
Pausing and Resuming an Activity | Android Developers - MIT
During normal app use, the foreground activity is sometimes obstructed by other visual components that cause the activity to pause.
Read more >
Refreshing activity / "performing stop of activity that is not ...
When calling your gps.showSettingsAlert();//inside this use startActivityForResult(new Intent().setClass(this, MainActivity.class), result_code);.
Read more >
Calendar Tweaks With Highschool Years EA added...
On default all forced Exam/Prom Calendar Events are disabled until you “allow” them to be added. Be aware already added Exam/Prom Calendar ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found