SYSPRO 8 Espresso Notification Service
Exploring
 Where it fits in?
Where it fits in?
                                                                        This service is used to power the Espresso Mobile Application and SYSPRO Espresso from the browser. It generates the user interface for SYSPRO Espresso along with controlling the flow of data and business logic from SYSPRO Espresso to the core SYSPRO application.
This service is used by:
- SYSPRO Espresso
 
                                                                        - 
                                                                                    The default location for this service is: Program Files > SYSPRO > SYSPRO 8 Espresso Notification Service 
Starting
 Prerequisites
Prerequisites
                                                                        - Microsoft .NET Framework 4.6
- SYSPRO 8 Service Upgrade Manager
- SYSPRO 8 e.net Communications Load Balancer (valid endpoint configured in System Setup)
 Installation considerations
Installation considerations
                                                                        - 
                                                                                    This service is installed using the SYSPRO Installer. 
 Settings required on a corporate network for push notifications:
Settings required on a corporate network for push notifications:
                                                                                 Android devices
Android devices
                                                                                        If your organization has a firewall that restricts internet traffic then you'll need to configure it to allow connectivity with Google Cloud Messaging (GCM).
The ports to open are:
- 5228
- 5229
- 5230
GCM typically only uses 5228, but sometimes uses 5229 and 5230. GCM doesn't provide specific IPs; it frequently changes IPs. We recommend against using ACLs.
Meanwhile, the answer for that is 'all IP blocks listed in Google's ASN of 15169'. You can use an online tool to get the ASN info.
 Apple devices
Apple devices
                                                                                        | Field | Description | 
|---|---|
| Device is connected to Wi-Fi and does not have a cellular data account or a cellular data signal, push notifications are not received. | Devices using Access Point Names need a direct connection to Apple's server. If a device is unable to connect using cellular data, it will attempt to use Wi-Fi if available. If there is a proxy server on the Wi-Fi network, the device will be unable to use APNs, because they require a direct and persistent connection from device to server. When connecting to APNs, iOS devices use the cellular data connection, if available. Only if the cellular connection is not available or viable will the device switch to Wi-Fi for APNs connections. For APNs traffic to get past your firewall, you'll need to open these ports: 
 The APNs servers use load balancing. Your devices will not always connect to the same public IP address for notifications. The entire 17.0.0.0/8 address block is assigned to Apple, so it's best to allow this range in your firewall settings. | 
 Configuring
Configuring
                                                                        - Load the System Setup program from within SYSPRO.
- 
                                                                                    Navigate to the Espresso tab and specify the address of the Espresso Server at the Notification address field. This is used to send push notifications to a user's devices (e.g. http://localhost/SYSPROEspresso) as well as the Espresso Application Builder. 
Solving
 Debugging and Diagnostics
Debugging and Diagnostics Service Config.exe file
Service Config.exe file
                                                                                You can debug this service by editing the associated config file in elevated mode (i.e. with administrator privileges).
The SYSPROEspresso.Notifications.Service.exe.config file is located in the folder to which you installed the service.
 Windows Event Viewer function
Windows Event Viewer function
                                                                                You can view monitoring and troubleshooting messages about this service using the Event Viewer function in Windows:
(Control Panel > System and Security Administrative Tools > Event Viewer > Applications and Service Logs)
This service outputs an event log to the SYSPROENS file.
 Windows Services function
Windows Services function
                                                                                You can start, stop, restart and configure this service using the Services function in Windows:
(Control Panel > System and Security Administrative Tools > Services)
Referencing
 Configuration file
Configuration file
                                                                    You should only edit this file for debugging purposes.
Don't use this as a method to update values for the service. This is because a wizard installation updates the system registry, which is what is read when using the service. A fresh installation overwrites these values, which may cause problems when you next run the service.
| Key | Description | 
|---|---|
| ServiceSoapAddress | 30180 | 
| WebSocketsServerAddress | Default provided: http://localhost:8082/SYSPRO8Espresso Accept the default provided, or change manually to match your preference. |