invoiceninja / admin-portal

Invoice Ninja: Desktop/mobile admin portal built with Flutter
https://demo.invoiceninja.com
Other
1.62k stars 548 forks source link

Mac app not loading #579

Closed NPCtom closed 1 year ago

NPCtom commented 1 year ago

Hi there, I am having issues with the Invoice Ninja desktop app. It doesn't seem to be working at all even after multiple reinstalls.

I have also deleted the Inovice Ninja files in the Application Support directory.

Do you have any troubleshooting tips I could try?

Thank you very much for the assistance.

OS: 14.0 Beta (23A5257q)

Screenshot 2023-06-12 at 2 06 29 AM
hillelcoren commented 1 year ago

Hi,

Try deleting the contents of this folder and then launching the app.

~/Library/Containers/com.invoiceninja.app/Data/Documents/

NPCtom commented 1 year ago

Same result. There was a single file named invoiceninja__ui_state.json

hillelcoren commented 1 year ago

Maybe you also need to reinstall?

https://github.com/invoiceninja/admin-portal/issues/549#issuecomment-1406343349

NPCtom commented 1 year ago

Removed the app and reinstalled, still the same behaviour

hillelcoren commented 1 year ago

Are you able to get to the login screen?

NPCtom commented 1 year ago

No I'm unable to get to any screen. It's just the loading symbol and the about icon does not appear on the bottom left either.

hillelcoren commented 1 year ago

I'm not sure, these steps seemed to help for the other user.

We can look into making the logout option visible in this case in the next release.

hillelcoren commented 1 year ago

In the next release of the macOS app you'll be able to click the about icon in the lower left corner and then long-press the app version to access a logout option.

NPCtom commented 1 year ago

Thanks, the logout option worked.

Would you happen to know what this error means upon login:

Error :: '[id, VolejRejNm, user_id, VolejRejNm, assigned_user_id, , product_key, Spotif...' to 'ProductEntity' failed due to: Deserializing '1' to 'String' failed due to: type '_Smi' is not a subtype of type 'String' in type cast
hillelcoren commented 1 year ago

You should be able to fix this by either updating to the latest version of the backend app or commenting out this line:

https://github.com/invoiceninja/invoiceninja/blob/v5-stable/app/Transformers/CompanyTransformer.php#L197

NPCtom commented 1 year ago

Thanks, that's awesome.