2.7.4 requestAccess() still returns true

Re-checked this a bunch of times because the release notes specifically mention fixing this:

http:requestAccess() now returns false instead of true if access was previously denied

But the behaviour is still like before; The first time (when the permission dialog is shown) the return value actually reflects whether or not permission was granted, but on the next launch it just always returns true, even if access was denied.

Verified this on sim and device, and for both http.requestAccess() and tcp.requestAccess()

Maybe the branch with the fix did not get merged?

looks like that's what happened. I set the issue target to 2.7.4 but not the MR. We've got some process to work out here. :disappointed:

Thanks so much for catching this! It looks like that's the only one that's in the release notes but didn't get merged

1 Like

Is there a way to workaround this for the simulator? Like some settings file we can delete to make it pop the permission dialog again?

Update 1: nvm just deleting the build files and rebuilding did the trick

Update 2: Actually that only worked once for some reason, now I'm back to never getting the prompt despite deleting all the build files.

Looks like the cached permissions are in %USERPROFILE%/Documents/PlaydateSDK/Disk/Data/networking_in_C on windows, or in the simulator just go File>Reveal Data Folder...

(post deleted by author)

(post deleted by author)