Description

Important for new version 3.0! Your project must have a minimum sdk of 11 or higher, which can be set in the global game settings of your project.

Welcome to Android Permissions!! Android operating systems 6.0 and higher now check for permissions at run time, and it is now up to us the developers to handle this. I have made this extension to do that. there are 25 permissions Android lists as 'Dangerous Permissions' and so there are 25 get permission functions in this extension and 25 check permission functions for a total of 50 functions to cover everything. Update 10/26/17 now Google play requires any games or apps submitted to the play store show a reason for requesting dangerous permissions that access personal information, so there is now an extra function for that and it also alows several permissions to be asked for at once. I have left all the old functions there also in the case that you don't want (or need) to give a reason. I also left the previous version of the extension on the market place in case you want to roll back to it, the reason for that is to get the dialog box to work your project must have a minimum sdk of 11 or higher, the previous version allows sdk version 9 and higher. So the new function is: ShowReasoning( String "PERMISSION_NAME1 PERMISSION_NAME2 etc.. but must be all capital letters" ,String "The reason"); A dialog box will come up with the list of permissions and the reason you need them, then seperate dialog boxes will be shown to confirm or deny the permissions. This would be an example of how to ask for permission AND show a reason OR ask for multiple permissions at once:

global.permissions=0; if (ChkWriteExtStor()==0 || ChkAudio()==0) //If the permission has not been granted { ShowReasoning("WRITE_EXTERNAL_STORAGE RECORD_AUDIO", "To use this app."); } else { global.permissions=1;//If the game has been run before and we got the permission execute related code } Most apps only need 1 or 2 dangerous permissions so you'd most likely only need to use 2 - 4 of the functions but to cover every situation I have included ALL OF THEM for you along with a small project showing how to use the extension. For a list of all the functions and their use import all the files into a new project and view either the game information file, readme file in the included files, or visit the Android Permissions home page on my website: http://roadhammergaming.blogspot.com/p/android-permissions.html A demo apk can be downloaded here: https://drive.google.com/open?id=0B4uEFC9Ii8BnMXNQRmxZbFVSVjg

More info

End User Licence Agreement (EULA).

Changes in 3.2.0

1- Fixed possible exiting game automatically if permission is denied 2- Fixed issue with message text on ShowReasoning getting cut off in dialog box if long message is displayed Note: This extension is compatible with GMS2, the example project is not, but can be imported to GMS2 if desired.

Version 3.2.0. Published November 3, 2017

Created with GameMaker: Studio v1.99.551

Age Rating: 4+

Privacy Policy

Average Rating

Your review

You can only review assets you've bought.


Gravatar

Supro G 04 August 2017

Works for now

Works perfectly, but I had a look at the release notes of the beta version of GMS1.4, and this feature will be implemented in-game in the future. But for now it's just great

This review was left for a previous version of this asset.


Gravatar

Anonymous 22 May 2017

This review was left for a previous version of this asset.


Gravatar

lu j 03 January 2017

Handy little extension

Now that Google has made it harder for developers by having us code in our own permissions
we are lucky that developers like Roadhammer Gaming are here to help us with this extension.

Support to get this extension working correctly is just a email away if you need it( Tom from Roadhammer Gaming was AWESOME in helping me in every step of the way).

Thanks Tom and Roadhammer Gaming .

This review was left for a previous version of this asset.

Logo

Roadhammer Gaming (Publisher) 11 April 2017

Thank you very much! I'm glad I could help and glad I can be a part of forwarding the development of all the great Android games and apps you all create!

What is the issue?

Back to Top