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

Replaced generic phone model by device model #253

Merged
merged 2 commits into from
Jun 21, 2018
Merged

Replaced generic phone model by device model #253

merged 2 commits into from
Jun 21, 2018

Conversation

Pe-te
Copy link
Contributor

@Pe-te Pe-te commented Jun 14, 2018

For android devices we see the specific device model in the backend, for iOS devices we only see generic "iPad" or "iPhone".
Here we replace the generic string in the user agent with the real device model (e.g. iPhone8,4), which lets the backend properly display "iPhone SE".

For android devices we see the specific device model in the backend, for iOS devices we only see generic "iPad" or "iPhone".
Here we replace the generic string in the user agent with the real device model (e.g. iPhone8,4),  which lets the backend properly display "iPhone SE".
@brototyp
Copy link
Member

Hi @Pe-te, thanks a lot for this PR. This isn't a method that came in mind, but it's a great idea!
I will have a look and get back to you.

@brototyp
Copy link
Member

I love it! Looks great! Can you do me a favor and add an entry to the CHANGELOG.md? Feel free to reference yourself there.

@brototyp
Copy link
Member

Thanks a lot! I will wait for the tests to finish (just to make sure everything works well 😊) and will merge.

@Pe-te
Copy link
Contributor Author

Pe-te commented Jun 20, 2018

Thx! If it ever causes trouble, maybe there's a cleaner way, where you add the model as extra parameter in the brackets, but this works for us right now.

@brototyp brototyp merged commit df707f7 into matomo-org:develop Jun 21, 2018
hcbarry pushed a commit to hcbarry/matomo-sdk-ios that referenced this pull request Feb 11, 2020
hcbarry pushed a commit to hcbarry/matomo-sdk-ios that referenced this pull request Feb 11, 2020
hcbarry pushed a commit to hcbarry/matomo-sdk-ios that referenced this pull request Mar 2, 2020
hcbarry pushed a commit to hcbarry/matomo-sdk-ios that referenced this pull request Mar 2, 2020
brototyp pushed a commit that referenced this pull request Mar 3, 2020
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

Successfully merging this pull request may close these issues.

2 participants