- 1

How to use storage in phone?

I'm creating a program where the user has to give permission to use the phone's storage. You need to do it through Javascript.

20th Apr 2022, 12:27 AM
Garnish
Garnish - avatar
1 Resposta
+ 2
You can't use device resources with JavaScript. You need native bindings for that. Develope the App with React Native, then you can use a Android/iOS compatible package for storage. Or platform specific ones. And just to be clear, you can't give permission using any language. The user needs to grant the permission. Unless it's an exploit. You need to keep in mind the required user interactions.
20th Apr 2022, 12:56 AM
Mustafa A
Mustafa A - avatar