traccar / traccar-manager-android

Traccar Manager for Android
https://www.traccar.org/manager
Apache License 2.0
262 stars 374 forks source link

User Readonly Option breaks traccar manager #97

Closed CrossFire10100 closed 1 year ago

CrossFire10100 commented 1 year ago

Describe the bug When I set a user to Readonly and also Device Readonly

To Reproduce Steps to reproduce the behavior:

  1. Login as admin and add a user
  2. Enable "Readonly" & "Device Readonly" flags to that newly created user.
  3. Login as the user from the traccar manager.
  4. See error.

Expected behavior Usually no error is shown on a fresh traccar manager installed from the google play store.

Screenshots Screenshot_20230418-210858

Smartphone (please complete the following information):

Additional context I believe the app is trying to setup the notification token and its unable, due breaking that functionality. We want to have users not touch the traccar settings and mess with notification settings and just use the app as a tracking SaaS

tananaev commented 1 year ago

It is because of the notification token. Fixed here: https://github.com/traccar/traccar-web/commit/bddaa24cfc1f2cfb0ce66c938528faff6c846806.