hello guys
I made a app where i have to get phone storage
but the problem is
if someone deny to get permission then app show a error and i want a filter in my app like if permissions granted then open content otherwise show a message for permissions
vknow360
(Sunny Gupta)
October 22, 2019, 2:17pm
#2
I think you should check screen blocks.
9999memes
(Sunita Poudel)
October 22, 2019, 2:20pm
#3
make a block that reload the permission after certain time if permission denied.
i check in blocks but i dont know how to place blocks
am i place blocks in correct way ?
1 Like
ImranTariq
(Imran Tariq)
October 22, 2019, 4:08pm
#5
use only if call whatsapp tools are permission granted, then call images, else call ask for permission,
dosnt need =
ImranTariq
(Imran Tariq)
October 22, 2019, 4:12pm
#7
use in screen1 initialize,
Doesnt work bro can you show blocks
ImranTariq
(Imran Tariq)
October 22, 2019, 4:27pm
#9
your permission is wrong,
use ’ android.permission.READ_EXTERNAL_STORAGE ’
ImranTariq
(Imran Tariq)
October 22, 2019, 4:29pm
#10
i am using in my app,
check this,
it doesnt matter bro because in my app when i use permissions like in this post
i check in blocks but i dont know how to place blocks
am i place blocks in correct way ?
[blocks%20(4)]
then it also shows a message for permission
i think problem is in if then
because when i grant permissions then the message did not appear but permissions are accepted but page didnt open because of some problem in blocks
and it also doesnt work as you show in you blocks i just checked it yet
ImranTariq
(Imran Tariq)
October 22, 2019, 4:44pm
#13
then you have to check other blocks also, because in many phones it automatically ask for permission, after permission granted, is your blocks working? in companion ?
ImranTariq:
in companion ?
we cant open companion without granting storage permission
so we cant check storage permissions in companion
ImranTariq
(Imran Tariq)
October 23, 2019, 2:32pm
#15
Mean to say that is your app working in companion, not permission blocks blocks after permission because companion has already permission of storage so is it working in companion
no it is not working even in companion
Taifun
October 23, 2019, 3:29pm
#17
Harpinder_Singh:
it is not working
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
Taifun
1 Like
ImranTariq
(Imran Tariq)
October 23, 2019, 3:43pm
#18
then problem is in other blocks not in permission blocks, as @Taifun said show use your blocks
hello here are the blocks
i want to check permissions on click on button of status saver which is in 1st picture
and it works properly when i click on do it in 2nd block
is there any way to check 2nd block in else of 1st block
or any other way to check permissions before opening screen
see here:
Requesting permissions on Screen.Initialize does not trigger Screen.Permission Granted. You will need to reload the screen to get permissions, especially with the File component.
To check this:
permission_bug.aia (38.1 KB)
permission_bug.apk (5.1 MB)
[grafik]
[grafik]
If a (dangerous) permission has to be requested, the following block should no longer be used, for example:
[grafik]
The block works, but it is not supported in this block:
[grafik]
So just use always this block by default:
[grafik]
Only then you get the correct Boolean (true / false):
[grafik]
2 Likes