I am looking to clear all the push notification registrations on my Enterprise Edition Worklight Server v5.0.5 deployed on WAS 8.5. We have one user, with just two devices, but the WL console push notifications display 6 registered devices for that user. Seems like some of the registrations have duplicated themselves, or have become corrupted. One of the devices no longer receives push notification messages, which used to work before. I tried deleting the adapter that declares the event source, and even re-deploying the application. However, the push notification registrations are still intact when the adapter is re-deployed. Could you please let me know how to clear these entries from the WL server ?
1
votes
1 Answers
2
votes
I believe the only way to do so would be to clear the contents of the tables in the database. The specific tables in this instance would be:
NOTIFICATION_DEVICE and NOTIFICATION_USER
If it is OK from you to also re-deploy the application, then before doing so also clear these two:
NOTIFICATION_APPLICATION and NOTIFICATION_MEDIATOR