PrinceSumberia / assets-management

Android Application For Inventory/Assets Management Using AI
https://youtu.be/AHLv1PJO8MQ
36 stars 16 forks source link

Issue report section error and firebase api key #2

Closed SeeVetri closed 1 year ago

SeeVetri commented 3 years ago

Hi .. when i install app in device .. everything seems to be ok .. but the issue report section make the app close when i click to open it .. also may i know where to get firebase api key .. it also show that error too ..

PrinceSumberia commented 3 years ago

The issue maybe with the missing API key. You can find the firebase API key inside your google-services.json file after you have successfully connected with the firebase account.

 "api_key": [
        {
          "current_key": "XXXXXXXXXXXXXXXX"
        }
]

current_key will be your firebase API key and inside res >> values >> string.xml replace _place currentkey value here in the following string value with your API key.

<string name="firebase_api">place current_key value here</string>

Hope this helps

SeeVetri commented 3 years ago

IMG-20210501-WA0003

HELLO SIR THIS IS THE ERROR I GET .. AFTER STILL I PUT MY API ALREADY .. ITS ONLY EFFECT THE ISSUE SECTION

PrinceSumberia commented 3 years ago

I think the inventory is empty that's why you are getting null. Have you tried adding some assets/inventory first before issuing them? First, add some random inventory as well as users' data and check if it works.

keerthik123 commented 3 years ago

hello sir i'm using the same app. For me also the same error

keerthik123 commented 3 years ago

please help me sir

keerthik123 commented 3 years ago

can you run the app and see ?

PrinceSumberia commented 3 years ago

Okay, I will look into the code and figure out what's wrong with the code. But first, can you confirm the following:

If you have completed all the above-mentioned steps and you still get the error, then please let me know I will look into the issue. If not then please complete the above steps and check if the error still exists.

SeeVetri commented 3 years ago

Hello sir when create a user also getting error by making the app to shut down too sometime .. but it do create user sometimes i also don't know how .. but issue effect still same .. qr code scanner also making shut down error .. summore cant log out in normal or approval user section

PrinceSumberia commented 3 years ago

Ok, will check and let you know

keerthik123 commented 3 years ago

i sir how to use the scan asset.

PrinceSumberia commented 3 years ago

You have to scan the QR code generated after you have added the asset.

keerthik123 commented 3 years ago

hi can i know why my realtime database not working firebase

PrinceSumberia commented 3 years ago

Hi @keerthik123, the app uses Firestore Database, not Realtime database. So you need to look into the Firestore Database option just above the Realtime Database option. I hope this helps. Cheers!

PrinceSumberia commented 3 years ago

Today I have gone through the project and found out the reason for the errors. And it seems like the Firebase API has changed since the app was last updated.

The core API remains the same but the setup procedure appears to have changed along with other methods. So, I request you to try making the changes yourself, until the project is updated.