matomo-org / matomo-mobile-2

Matomo Mobile 2 App - The official Git repository! Liberating Web Analytics on the go!
https://matomo.org/mobile
Other
103 stars 31 forks source link

Update user agent to fix issue with some Matomo installs #5447

Closed tsteur closed 1 year ago

tsteur commented 1 year ago

refs #5444

The old user agent was blocked by some web servers.

Also improving getting token as most users should use Matomo 4 these days. Not relevant for the actual change.

This also updates the titanium SDK

tsteur commented 1 year ago

Found the problem for the crash that is happening (unrelated to the user's issue). Some translations contain %1$s etc and String.format fails on this and crashes the app.

tsteur commented 1 year ago

Tested it and all works now

m1ga commented 1 year ago

you should update the store version too. That one is still from Apr 2022

tsteur commented 1 year ago

Thanks @m1ga the store version is the version in the tiapp.xml? I've updated it locally already. Been trying to troubleshoot for hours why it would show left menu like this

image

and when I set extendSafeArea:true then it fills out the space of the left menu nicely but the labels are still not positioned to the left.

m1ga commented 1 year ago

This is how the current master looks on my phone (Pixel 7, Android 13):

Screenshot_20230315-201100

Screenshot_20230315-201046

the white bar in the landscape image is because of the cutout camera on that side.

For a store update you increase: https://github.com/matomo-org/matomo-mobile-2/blob/master/tiapp.xml#L10 and the both numbers in https://github.com/matomo-org/matomo-mobile-2/blob/master/tiapp.xml#L56 Then build the apk and upload it

tsteur commented 1 year ago

That issue I actually only have on iOS. Thanks for mentioning this.

m1ga commented 1 year ago

ah ok :smile: can't test that at the moment, sorry