The push notifications on IOS stopped working

GnenoxPS 2 years ago

Notifications on IOS stopped working,
I could see in the firebase log the following error.
Please if anyone has any suggestions

Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x948c __exceptionPreprocess
1  libobjc.A.dylib                0x15050 objc_exception_throw
2  UIKitCore                      0x77d634 -[UIViewController performSegueWithIdentifier:sender:]
3  TraccarManager                 0x8374 StartViewController.onSuccess() + 93 (StartViewController.swift:93)
4  TraccarManager                 0x8d40 partial apply for closure #1 in closure #1 in StartViewController.enviar() + 52 (StartViewController.swift:52)
5  TraccarManager                 0x9050 thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)
6  libdispatch.dylib              0x637a8 _dispatch_call_block_and_release
7  libdispatch.dylib              0x64780 _dispatch_client_callout
8  libdispatch.dylib              0x10bdc _dispatch_main_queue_drain
9  libdispatch.dylib              0x1082c _dispatch_main_queue_callback_4CF$VARIANT$mp
10 CoreFoundation                 0x91a2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
11 CoreFoundation                 0x756c8 __CFRunLoopRun
12 CoreFoundation                 0x79da0 CFRunLoopRunSpecific
13 GraphicsServices               0x1998 GSEventRunModal
14 UIKitCore                      0x370fd8 -[UIApplication _run]
15 UIKitCore                      0x370c50 UIApplicationMain
16 TraccarManager                 0x86f0 main + 21 (AppDelegate.swift:21)
17 ???                            0x1ae963344 (Falta)
Anton Tananaev 2 years ago

Are they working in the official app? Then it's probably something with your code changes.

GnenoxPS 2 years ago

Thanks Antón,If we are working with official version, It was working perfectly. In android it works without problems but suddenly in IOS it doesn't work

traccargps1 2 years ago

hi,
I have the same problem for IOS. Did you manage to solve?

GnenoxPS 2 years ago

@traccargps1 Yes, in my case there were some changes in the IOS policies, I accepted the changes and had to recompile.

Daniel Hölder 2 years ago

I had a problem with push notifications after update to 5.9 as well. In the beginning I got some error messages, but after some time, it started to work without changing anything.

traccargps1 2 years ago

@GnenoxPS where did you accept and change these policies?