WSDOT / wsdot-kotlin-app

Source Code for the WSDOT Android Application
GNU General Public License v3.0
1 stars 3 forks source link

User reports never receiving push notifications for Mason County #121

Closed waynedyck closed 3 years ago

waynedyck commented 3 years ago

User subscribes to Mason County alerts, however reports he has never received one.

waynedyck commented 3 years ago

According to the logs it appears the alert was pushed out,

2021-07-27 08:30:18.211397 : ===============PUSHED==================
2021-07-27 08:30:18.211606 :     message: b'Road work on US 101 both directions from milepost 324 near Shar Ln to milepost 332 near Old Mill Hill Rd beginning at 8:23 am on July 27, 2
021 until about 4:30 pm. Motorists should be prepared for extended delays in this area.'
2021-07-27 08:30:18.211683 :     topic: mason_county
2021-07-27 08:30:18.211773 :     location: 47.493086051, -123.070365628
waynedyck commented 3 years ago

Found the problem. We have a typo in the NotificationTopics.js file,

{
  topic: "manson_county",
  title: "Mason County",
  category: "Traffic Alerts"
},

The push_notifications script is correctly sending out alerts to themason_county topic, however, users are incorrectly subscribed to the manson_county topic.