I used the nativescript-permissions plugin to request permission to store a file in the Download folder. I am having a challenge with the prompt that is displayed to the user as it gives a general message for Photos and others.
This prompt tends to ‘scare’ the users from granting the permission as they are made to believe the App is trying to access things beyond just storing the file.
I wanted to know if there is a way of overriding or customizing the message prompt for the WRITE storage permission.
From this link -
the documentation states:
- permissionName - The permission you are requesting - REQUIRED
- explanation - This can be either a string that will show as a toast at the top of the screen or this can be a function callback that will be called so that you can show whatever you want. - OPTIONAL.
I was thinking using a callback function would override the default prompt message and show “whatever you want” as stated instead if just a toast that flashes at the top of the screen. I tried including a callback function but it still appeared as a toast.
Please, can you help me out with overriding the default prompt message.