RE: Track number of logins from mobile and how to trust downloadmanager

Mateusz Wolak, modified 7 Years ago. Junior Member Posts: 27 Join Date: 1/17/18 Recent Posts

Hello,
I've got 2 question - is there any way to track how many users will login to my portal using mobile app? I know I can track how many users will download my app from android market, but I would also like to know how many users logged in using this app, and how many logins total were made using mobile application.

Second question is about trusing standard android DownloadManager from android.app package. How can I trust my certificate to be able to download files attached in liferay portal news.

Best regards

Mateusz Wolak, modified 7 Years ago. Junior Member Posts: 27 Join Date: 1/17/18 Recent Posts

Ok, I have managed to solve my problem with downloading a file, just for information, if You have the same issue just do these things I wrote down bellow.

But I'm still in need to be able to track user log ins. And I don't know why when I'm clicking on html input I'm able to only choose file from my storage and can't take photo ? I've got my android app created using cordova.
 

 

Add to your manifest

and to res -> xml -> new file network_security_config with following lines of code

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <domain-config>
        <domain includeSubdomains="true">example.pl</domain>
    <trust-anchors>
        <certificates src="@raw/path_to_cert"/>
    </trust-anchors>
</domain-config>
</network-security-config>
thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

Hey, thanks a lot for posting the solution here :)

 

Regarding the tracking, I think you would have to create a custom service to do that. Anyway, can you post this question in the Liferay portal category? Maybe there you can get more insight

 

Regards