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

App with Phonegap get different fingerprint every time #1

Closed
igorosabel opened this issue Oct 11, 2014 · 2 comments
Closed

App with Phonegap get different fingerprint every time #1

igorosabel opened this issue Oct 11, 2014 · 2 comments

Comments

@igorosabel
Copy link

Hi!

I'm making an app for iPhone using Phonegap and I liked your library so I wanted to use it to identify people and remember their logins.

The problem is that every time I run the app it gets me different fingerprints. I haven't done anything weird, on XCode I run the app and gives me a value. I stop it, run it again and it gives me a different value.

Thanks!

@igorosabel
Copy link
Author

Hi again! I just found out that the fingerprint is getting different every time because the user agent in Phonegap apps have a different number attached every time:

Mozilla/5.0 (iPhone; CPU iPhone OS 8_0_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A405 (358060448)
Mozilla/5.0 (iPhone; CPU iPhone OS 8_0_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A405 (358060448)
Mozilla/5.0 (iPhone; CPU iPhone OS 8_0_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A405 (384315344)

I still don't know why they do this, but taking the browser agent from the fingerprint "ecuation" kind of solves the issue.

A guy from cordova project comments it here: https://issues.apache.org/jira/browse/CB-5420?focusedCommentId=13830117&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13830117

Thanks!

@jackspirou
Copy link
Owner

@Dunedain thanks for bringing up this issue!

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