I'm using Andres Cotes Camera Viewer Recorder extension. I am using the tinyDB to store when I have obtained permission to use the camera, audio, and storage. The first time I installed the app, I get a request to obtain permission to use the camera, audio and storage then the app works fine. But when I uninstall and reinstall the app, the app will proceed without asking for permission and function like permissions were not obtained. I get the impression that the tinyDB still stores the value for having requested permission after I uninstall the app. So when I reinstall the app, permissions are lost but the app doesn't re-ask for permission. How would I solve this problem so tinyDB resets after I uninstall the app?
You do not need to use the tinydb for the state of permissions, just request permissions on initialise, if they are not already in place you will be asked for them.
Testing for permissions with companion and tinydb then installing with the same device can pick up tinydb items "left behind".
I used APK Editor Studio to disable back up for the app. I saved it as an APK using the APK Editor Studio. When I upload it to Google Play I get the error:
"Upload failed
You uploaded an APK that is signed with a different certificate to your previous APKs. You must use the same certificate."
How do I save the apk with the APK Editor and use the same certificate?
I tried to not store the state of permissions with tinydb. It asks for permissions and records the first time I install and open the app. But when I close and reopen the app, it doesn't ask for permissions and the video doesn't record. The blocks are shown below:
I added the permission request for audio to screen initialize. The app will open and request permission to use the camera but not request permission to use the audio. The app will then have an error about not having permission to use the audio. If I restart the app, I will get a request to use the audio. The app will run and then I get a runtime error that I'm guessing is because it wants permission to use storage.
I dragged the File component in. But when I run it, I still get the runtime error. But when I request for permission for storage, the runtime error doesn't occur. The app works the first time I run it. But when I try to run it a second time, the app doesn't activate the camera.