Automatic login with QR Code

Automatic login with QR Code

by Iacopo Bocchi -
Number of replies: 3

Hi

I've subscribed to the Premium plan which includes automatic login with QR Code for mobile app. It works with the official app (iOS) but it doesn't work with the app built using open source code. Auto-login is not supported by source code or what else ?

Thanks

Moodle 3.9.6.

Average of ratings: Useful (1)
In reply to Iacopo Bocchi

Re: Automatic login with QR Code

by Buks Saayman -

Hi Iacopo

I have found that the QR code login does not work when you build your app using the source code.  There is also no way to remove the login with QR code button from within the VLE itself. 

The only way to hide the button is to add this :

isplayqroncredentialscreen = false;

to src/config.json inside the app code
 

In reply to Iacopo Bocchi

Trả lời: Automatic login with QR Code

by Nguyễn Tủn Channel -
We can call method tool_mobile_get_tokens_for_qr_login in backend server . And you can add code in getCustomURLData function to get token: params.token, privateToken: params.privateToken to use QR CODE in login page