Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Sh4d0xx
3
Years of Service
User Offline
Joined: 5th Dec 2014
Location: United Kingdom
Posted: 1st Jun 2018 13:58
Good day,

I was wondering if we have any examples for the use of the new permissions ?

1) RequestPermission
2) CheckPermission


Thanks
Sh4xx
Phaelax
DBPro Master
15
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 4th Jun 2018 14:42
It looks like they take a string as the parameter. Once you make the request, which returns nothing, you'll need to use checkPermission to determine if it was granted by the user or not. So I'm guessing anytime you would need to use one of the permissible functions you would need to check the permission first. Because if you did it once immediately after requesting it and tried to cache the answer, the user may not have had time to respond to the dialog yet before the answer is checked.

That's just how I interpreted the help file. It also says this will only work on android.
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
Sh4d0xx
3
Years of Service
User Offline
Joined: 5th Dec 2014
Location: United Kingdom
Posted: 6th Jun 2018 02:17
Good day,
Ok I will try and get back to you.

Thanks
Sh4xx

Login to post a reply

Server time is: 2018-06-22 04:53:35
Your offset time is: 2018-06-22 04:53:35