Moderators: marcelr, TerrorSource, Toonz, TheHogNL
TheHogNL wrote:And an idea, look at the smokedetector native app how they overwrite the full screen when smoke is detected. You can use that code to post a NL-alert message
glsf91 wrote:Sorry for the mistake. Thanks for fixing.
TheHogNL wrote:glsf91 wrote:Sorry for the mistake. Thanks for fixing.
No problem. I'll just ask you to create Amber alert app now also
glsf91 wrote:If you first let a kid disappear, otherwise I cannot test it. Testing can take some time![]()
First finish my Toon Bot now.
TheHogNL wrote:And... today we all got a NL-alert.
The polygon region was the area of the country NL.
I was suprised not to see a popup on the Toon. So I dived into the code.
You have chosen the (NL alert provided) areaCenter and then calculate the distance to the point. Marking it 'regio' or 'lokaal' depending on the settings in the NL-alert Toon app.
This didn't work for this situation as the areaCenter was somewhere in the middle of the country, so for most toons outside there configured region. But we all got a NL-alert message and I think Toon should have shown it also.
NL-alert api also provides the area polygon in gps-coordinates. I found (https://stackoverflow.com/questions/225 ... -a-polygon) a method the check if a given coordinate is with a given polygon. Using this method, you can remove the 'regio' and 'lokaal' idea from the app and just provide the message 'if within region' (and for test cases 'show all messages, also outside region').
Could you look if this is something you want to change? Or do you want me to change that?
Users browsing this forum: Edwin66 and 1 guest