Background: Currently, relevant departments of mobile phone APP terminal stipulate that users should agree with privacy policy and service agreement before installing the APP. Otherwise, exit the installation
How to achieve:
To configure it in uniapp’s manifest.json source view, just copy and paste the following code into app-Plus
"Privacy" : {"prompt" : "template", "template" : {// Prompt is valid when template is used to configure the content displayed in the template prompt box. "title" : Service Agreement and Privacy Policy, message: "Dear users, you are welcome to register as a user of this APP. Please read the user Agreement </ A > and the Privacy Policy </a> carefully before registration to understand the rules we have set for your use of our APP. The processing of your personal information and the purpose and scope of application for permission. <br/> Upon your confirmation, this User Agreement and Privacy Policy shall have legal effect between you and the Application. Please read the service agreement carefully before registering. If you have any questions, please contact our customer service." , "buttonAccept" : "agree and continue ", // continue next "buttonRefuse" :" disagree "// exit download}},Copy the code
The effect is as follows:
Note: UniAPP android App and iosApp implementation is not the same, if ios directly as the above configuration is not effective, if necessary, please move to all articles to view the corresponding article implementation method