Problem with end-user notifications for admin user

tktecnologia3 days ago

As an administrator, I want to monitor the vehicles on my platform using geofences. However, I'm encountering the following problem. Within my "admin" user account, I create the necessary geofences, then I create geofence entry and exit notifications. Finally, I connect the geofences and notifications to the vehicles where I need them. The problem is that once I've done all of this, I start receiving notifications from geofences created by the end users monitoring those vehicles.

For example, an end user named "test" has a vehicle named "test_car" connected. Within the "test" end user account, a geofence named "area_1" is created along with geofence entry and exit notifications, and finally, this geofence "area_1" and the notifications are assigned to the vehicle "test_car". This entire procedure is performed within the "test" user account.

Now, as the ADMINISTRATOR, logged into my ADMIN account, I create a geofence called "area_admin," enable geofence entry and exit notifications, and connect it to the vehicle "test_car."

What's happening now is that both users ("test" and "admin") are starting to receive push notifications from both geofences ("area_1" and _area_admin). Is this how it's supposed to work? Shouldn't the "test" user only receive notifications for the "area_1" geofence, and the "admin" user only receive notifications for the "area_admin" geofence?

Anton Tananaev3 days ago

That's how it's designed to work currently.

Anton Tananaev3 days ago

Why are there two topics?

tktecnologia3 days ago

Sorry, my internet played a trick on me. I didn't mean to post the same thing twice.

Is there a way to do what I need without this happening? So that I only receive notifications for geofences that I create?

Anton Tananaev3 days ago

It would require pretty significant code changes.