I am making a Emergency App right now, and for this map screen, my user gets to alert the surrounding user that he/she is facing a emergency and needs help by clicking the bottom right, yellow button. I've completed everything but I'm not sure what i set up will work as what I thought, can someone help or help me to improve the function?
It's actually a group project for me to use this website to create a app, my groupmate set up the blocks for the button to function in this page. And since we can't have more than one device to run the app, so I can't try if the block he set up would function or not. And also I don't understand how the block he set up works, so I am asking and looking for support here. Please forgive me if I have caused any inconvinience.
Because we can only run the app on one device each time, so we can't tell if the notification going to pop up or alert the user around. And the reason he didn't ask here is because I am the one who is thinking to ask for help since I can't find any resources to help completing what we need, I only tell my groupmates when I've made progression, we all have different part of work to do for this project after discussion, which mean there's a lot of screen in our app, and not just this "map" screen. And at this point, because my groupmate ask for my help on this screen, so I did some research but couldn't find a way to set up this screen, and so I post a topic here to look for help.
What you want to do is to send a notification or message to nearby Android devices? It is not possible to send a notification/message to just people near you Sorry.
If you know the phone numbers or email addresses of those surrounding you can send text messages to those phones. Perhaps that is what you want to do?
Yo Steve, thank you so much for helping! I've got everything set up according to your tutorial and things are all working well, I am able send and receive SMS! But there is some problem now that a runtime error (destinationAddress) often pops up on my computer screen, and the SMS keep getting sent again and again. Is there a solution or did I set up anything wrong?
Oh yea, thanks for telling, my bad i didn't realise that mistake. But the error still exist, and when I pressed to send SMS, the SMS keep sending non-stop, can someone help? Thanks
The sms resends whenever the LocationChanged event fires. Your sendLocation Procedure is sending a new location every time the sensor gets new coordinates. Remove the sendLocation. as shown and it should fix that issue. Only use a Button to use your sendLocation.
You have lots of other issues as others have pointed out too.
Oh I see how it works now, thank you! So sorry about that, my English isn't too good, I didn't understand what the others have pointed, i do always go through the replies tho, appreciate you people's help.