In this case, I need to see two permissions being granted on OAuth consent screen but if I include write permission, it always shows the following screenshot (Add to physical activity, so it means write not read):
At this point, I tried to debug the code. As far as I debugged the code your code was fine and it was trying to build permissions according to the passed parameters through the react bridge. I found that FitnessOptions.builder.addDataType will always respect write permission for steps when I try to add also read permission. When you call getImpliedScopes() you can see that it only shows write scope as you can see in the attached screenshot:
I would really appreciate it if you can fix the problem or help me with what's going wrong. I couldn't make it work to set both read and write scope even manually. I can only set read scope when I delete write access.
What is the problem?
I am trying to request these permissions:
In this case, I need to see two permissions being granted on OAuth consent screen but if I include write permission, it always shows the following screenshot (Add to physical activity, so it means write not read):
At this point, I tried to debug the code. As far as I debugged the code your code was fine and it was trying to build permissions according to the passed parameters through the react bridge. I found that
FitnessOptions.builder.addDataType
will always respect write permission for steps when I try to add also read permission. When you callgetImpliedScopes()
you can see that it only shows write scope as you can see in the attached screenshot:I would really appreciate it if you can fix the problem or help me with what's going wrong. I couldn't make it work to set both read and write scope even manually. I can only set read scope when I delete write access.