1
0

Stuff all over the place

This commit is contained in:
2020-07-23 23:47:12 +02:00
parent f59ece1fc0
commit 3ad259651c
14 changed files with 353 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
1.
======================
2. How to use the client-lib in a client application
====================================================
- Include property 'push-service-client.serverUrl=' and set it to the path to the server part
- (optional) Enable loggin via property 'logging.level.de.pushservice=DEBUG'
- Enable component scan in app configuration via '@ComponentScan("de.pushservice.client")'
- Obtain an instance of SubscriptionService via '@Autowired'
- Add a JavaScript file with content 'registerServiceWorker();' to register the service worker and subscribing at the
third party push service
- Add the created JavaScript file to HTML via '<script th:src="@{/javascript/init.js}"></script>'
- Also add the PushService client JavaScript to HTML via
'<script th:src="@{/javascript/push-service-client-init.js}"></script>'