简体   繁体   English

将用户权限添加到已授权的Android应用程序?

[英]Add user permissions to an already authorized Android application?

I've been testing my app for several days now, but now I want to add new functionalities and I need more permissions from the user. 我已经测试了我的应用程序好几天了,但现在我想添加新的功能,我需要用户的更多权限。 How can I do this if the user already authorized the old permissions? 如果用户已经授权旧权限,我该怎么做? If I add the new permissions to my permissions array, the application stops working. 如果我将新权限添加到我的权限数组,则应用程序将停止工作。

PD: why am I always getting a -1? PD:为什么我总是得到-1? Is someone doing that just for fun? 有人这样做只是为了好玩吗? :( :(

If I add more permissions to my permissions array, I get an error when trying to log in: 如果我向权限数组添加更多权限,则在尝试登录时出错:

An error ocurred, Please try again later 发生错误,请稍后再试

If I delete the new added permissions, the application works again. 如果我删除新添加的权限,应用程序将再次运行。

Answer: 回答:

I found out I was using the wrong permissions, now I am using the right ones, that was the solution. 我发现我使用了错误的权限,现在我正在使用正确的权限,这就是解决方案。

Adding new permissions to an active application isn't a problem. 向活动应用程序添加新权限不是问题。 Simply add it. 只需添加它。 When users download the application, they need to again accept the permissions, like first time. 当用户下载应用程序时,他们需要再次接受权限,就像第一次一样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用户获得授权后添加Facebook权限 - Add facebook permission after user is already authorized Android:Facebook总是显示您已经授权应用程序对话框 - Android: Facebook always shows You have already authorized application dialog 如何为 Unity android 应用程序添加权限? - How to add permissions to Unity android application? Android要求用户为清单中已请求的应用启用权限 - Android requires user to enable permissions for my app that are already requested in manifest 检查 Android 中的用户是否已授予权限 - Checking if permissions have been granted already by user in Android 如何在不提示用户的情况下将运行时权限授予android应用程序 - How to grant runtime permissions to an android application without prompting the user 用户未授权应用执行此操作android facebook SDK(#200) - The user hasn't authorized the application to perform this action android facebook SDK (#200) 在墙上张贴文字:用户未授权应用程序在android中执行此操作 - Posting text on wall: the user hasn't authorized the application to perform this action facebook in android (#200)用户未授权应用程序执行此操作android facebook SDK - (#200) The user hasn't authorized the application to perform this action android facebook SDK 黑莓手机中Android应用程序的权限 - Permissions for android application in blackberry
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM