[英]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. 如果我删除新添加的权限,应用程序将再次运行。
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.