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

Specifying MinimumSessionDuration and SessionTimeoutDuration in xml fails #464

Closed
mindhacker42 opened this issue May 26, 2017 · 1 comment

Comments

@mindhacker42
Copy link

Library: 5.1.0

If I specify session variables in AndroidManifest.xml I get this error that indicates that default value was used.

W/Bundle: Key com.mixpanel.android.MPConfig.MinimumSessionDuration expected Long but value was a java.lang.Integer.  The default value 10000 was returned.
W/Bundle: Attempt to cast generated internal exception:
                                           java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
                                               at android.os.Bundle.getLong(Bundle.java:973)
                                               at com.mixpanel.android.mpmetrics.MPConfig.<init>(MPConfig.java:214)
                                               at com.mixpanel.android.mpmetrics.MPConfig.readConfig(MPConfig.java:442)
                                               at com.mixpanel.android.mpmetrics.MPConfig.getInstance(MPConfig.java:116)

W/Bundle: Key com.mixpanel.android.MPConfig.SessionTimeoutDuration expected Long but value was a java.lang.Integer.  The default value 9223372036854775807 was returned.
W/Bundle: Attempt to cast generated internal exception:
                                           java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
                                               at android.os.Bundle.getLong(Bundle.java:973)
                                               at com.mixpanel.android.mpmetrics.MPConfig.<init>(MPConfig.java:215)
                                               at com.mixpanel.android.mpmetrics.MPConfig.readConfig(MPConfig.java:442)
                                               at com.mixpanel.android.mpmetrics.MPConfig.getInstance(MPConfig.java:116)
@patedit
Copy link
Contributor

patedit commented May 27, 2017

Hi @mindhacker42. Thanks for reporting this! I've fixed this issue and made a new release: 5.1.1

@patedit patedit closed this as completed May 27, 2017
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