![]() |
Push notifications from LM to iOS and Android devices - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10) +--- Thread: Push notifications from LM to iOS and Android devices (/showthread.php?tid=1083) |
RE: Push notifications from LM to iOS and Android devices - AISystem - 10.11.2023 (10.11.2023, 10:59)Daniel Wrote: Obviously you didn't add any android device to push app. The common mistake is to configure android app before LM. Yes, that turned out to be the problem! Thanks! RE: Push notifications from LM to iOS and Android devices - Sral1987 - 14.09.2024 I can´t get the Push notifications working with IOS 17.6.1 Even in the Push application app i cant send Messages. The error is allways Code: arg: 1 LM FW is 20240426 on a LM2i any ideas what the error could be ? RE: Push notifications from LM to iOS and Android devices - Daniel - 16.09.2024 Thanks, we are aware of this issue and working on solution. RE: Push notifications from LM to iOS and Android devices - Daniel - 16.09.2024 Check it now, it works again. RE: Push notifications from LM to iOS and Android devices - Sral1987 - 17.09.2024 Many thanks, everything is working again RE: Push notifications from LM to iOS and Android devices - xxyzz - 04.10.2024 Hi, I am dealing with a restrictive Network and the Customer wants Push Notifications on his Smartphone. I need a Port list for the IT support. Are you using TCP 443, 5223 and 2197 for Apple and TCP 443, 5228 and 5229/52230 for Android? Thanks for your Time Kind regards RE: Push notifications from LM to iOS and Android devices - Daniel - 04.10.2024 From LM side we use 443 and 8883 but this are outgoing ports. The push notifications are Android and iOS system notifications, we don't use any ports on them. RE: Push notifications from LM to iOS and Android devices - pavlos_konst - 19.12.2024 Hello, We are facing an issue with the push notification functionality. The application we are using the LM for is taking place in a ship, where we use the Logic Machine 5 (LMp2-GSM) in order to receive with the use of MODBUS RTU alarms from the Monitoring System of the ship (essentially the LM is connected to a PLC device) and then send a few push notifications to the crew of the ship to notify them for alarms etc. More specifically: 1) a bit from the PLC is turned on, then the user receives a push notification. This is achieved with the use of an Event Script. 2) after a couple of minutes, the alarm will repeat itself unless it has been acknowledged from the crew members. This is achieved with the use of a Resident Script. 3) The acknowledgment is done through the Mosaic UI with the push of a button and an Event Script. The issue here is that this whole application may not work as intended at all times: 1)the push notification from the first bit may not be sent at all and only receive push notifications from the repeat functionality. 2)the repeat function, which repeats the first message, is generally repeated after the correct time specified time (1minute) but every few repeats its stops for 10-15 minutes and then starts again. We are buffled as to why these things occure. Thank you for your time. Code: -- this is the Event Script that is activated with each alarm and sends the first message Code: --here the repeat function starts RE: Push notifications from LM to iOS and Android devices - admin - 19.12.2024 Log the result of sending push messages: Code: status, errors = pusher.send(...) Most likely the connection is unstable. RE: Push notifications from LM to iOS and Android devices - pavlos_konst - 19.12.2024 (19.12.2024, 10:55)admin Wrote: Log the result of sending push messages: Thank you for your quick reply, I have left the system repeating the alarm unacknowledged for about an hour. The logs show that the script for repeating is executed on time, every time. The users however have differences on the time and frequency they receive the push notifications. For example, I may receive a notification every 1 minute but another one may have 20 minutes of interval between the notifications? Do you think that there may be a fault with the script and it may be executing too quickly? RE: Push notifications from LM to iOS and Android devices - admin - 20.12.2024 Are you sending push notifications to Android or iOS? We've increased message priority for Android, see if it helps. Unfortunately it's not possible to increase priority for iOS messages. RE: Push notifications from LM to iOS and Android devices - pavlos_konst - 20.12.2024 (20.12.2024, 07:55)admin Wrote: Are you sending push notifications to Android or iOS? We've increased message priority for Android, see if it helps. Unfortunately it's not possible to increase priority for iOS messages. We are sending to both IOS and Android devices and both of them have the same issue. The thing is that some times the it is like the service stops completely after repeating the push notification for a few times and then restarts after some time. The logs show that the script is executed on time but the notifications are not sent. RE: Push notifications from LM to iOS and Android devices - Daniel - 20.12.2024 Please share these logs Code: status, errors = pusher.send(...) RE: Push notifications from LM to iOS and Android devices - pavlos_konst - 20.12.2024 (20.12.2024, 08:22)Daniel Wrote: Please share these logs date,"script","text" 2024.12.19 14:28:36,"repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:29:02","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:29:32","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:29:58","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:30:25","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:30:54","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:31:20","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:31:47","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:32:16","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:32:42","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:33:09","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:33:38","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:34:04","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:34:31","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:35:00","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:35:27","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:35:53","repeat","* arg: 1 * bool: true * arg: 2 * nil 2024.12.19 14:36:22","repeat","* arg: 1 * bool: true * arg: 2 * nil RE: Push notifications from LM to iOS and Android devices - Daniel - 20.12.2024 And what was the outcome based on this log? RE: Push notifications from LM to iOS and Android devices - pavlos_konst - 23.12.2024 (20.12.2024, 11:17)Daniel Wrote: And what was the outcome based on this log? The script, based on this log, kept executing properly but the push notifiactions would stop being sent and then restart sending after like 20 minutes or so. This is happening constantly but in irregular paterns. This is what has been buffling us RE: Push notifications from LM to iOS and Android devices - admin - 23.12.2024 Try sending messages now then send your tokens via PM so we can check logs. RE: Push notifications from LM to iOS and Android devices - admin - 23.12.2024 Messages are being sent to the cloud messaging service without any errors. What happens next is out of our control. Since you are using old LM app, you can try sending push notifications via LM Home app: https://kb.logicmachine.net/notifications/push-notifications/ RE: Push notifications from LM to iOS and Android devices - mariosp - 22.01.2025 hello guys i made this script about DHW temperature for push notification and doesnt work the id is true. Here is the script Code: local min_temp = '30' thank you in advance!! RE: Push notifications from LM to iOS and Android devices - baggins - 22.01.2025 (22.01.2025, 12:31)mariosp Wrote: hello guys i made this script about DHW temperature for push notification and doesnt work the id is true. Here is the scriptDo not use quotes: local min_temp = 30 |