traccar / traccar-client-ios

Traccar Client for iOS
https://www.traccar.org/client
Apache License 2.0
204 stars 304 forks source link

Lost of log-in status and push notifications (Official iOS app) #76

Closed castillo92 closed 1 year ago

castillo92 commented 1 year ago

Describe the bug After updating from v4.9 to v5.2 and start using modern UI, I can not keep the login status in the mobiles app. Each start of app requires sign-in again.

This affect to push notifications because since update I loose all of them except if you open the app and inmidiately trigger a "Test message" notification.

Steps to reproduce the behavior:

  1. In the phone: Open official iOS app v2.10
  2. In a computer: click on "Test message", you receive in the mobile one test notification: push and web.
  3. In the phone: Minimize the app and wait 30 minutes... or more
  4. Click again on "Test message", you will not receive any test notification: push or web.

Expected behavior The app should keep open the login status and receive notifications despite you open or close the app

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context I came from Traccar Blog: https://www.traccar.org/forums/topic/traccar-manager-ios-app-lost-login-info-after-a-couple-of-minutes/#post-73265

Original issue in a bad repo: https://github.com/traccar/traccar/issues/4903#issue-1312965904

tananaev commented 1 year ago

Just tested. After waiting 3 hours I still receive push notifications without any issues.

tananaev commented 1 year ago

Fixed the login issue here: https://github.com/traccar/traccar-manager-ios/commit/011ddb9fcd1dfea68e8261bb2cc8b628c6175978.

By the way, this is also a wrong place for the ticket. Your report is about Traccar Manager, not Traccar Client.

castillo92 commented 1 year ago

Fixed the login issue here: traccar/traccar-manager-ios@011ddb9.

By the way, this is also a wrong place for the ticket. Your report is about Traccar Manager, not Traccar Client.

Thanks Antón, the main issue was the lost the login status. I am happy to know you found the fault. It will came in a iOS app update or is in the server side?

tananaev commented 1 year ago

We need to update Traccar first because there are some new requirements from Apple.