How to extract the user cell information from received message? - geolocation

i am about to develop a location based service for simple mobile (a mobile have no GPS,or wifi) through sms. so to know the location of my user i want to know with which cell Id are they communicating. Therefore how can i extract their cell information from the message i received from them?

The SMS message does no contain any infomration of the sender's location, thus there is no ways you could extract that information from the received SMS message.
Anyway's there are Cellbased positioning APIs available on a device, so check the platform you are developing for, and see what APIs there are offered.
And then of course you can have the location sent over SMS to receiving end, but indeed it would mean that you have your application running in both ends.
In general Phone operators can offer location based services, in which they could locate devices which are using their network, but in general they usually don't let normal developer to access that kind of infomration.

Related

What is the best way to implicitly extract someone's location from a text message sent from his/her phone to an app?

I am working on an app that needs to figure out someone's location in order to say buy a coffee from the Starbucks closest to them.
The app currently uses the Twilio API to receive a text from someone's phone and act on it. The app can get the number and possibly the zip code if available from the text message; however, is there a more reliable way to get someone's location to accurately determine the closest Starbucks to them?
No, and the zip code is not reliable. It is an approximation based on area code.
Possible look at WhatsApp but not heavily used in some countries.
Can I share my location or receive location information on WhatsApp?

Service to receive SMS messages from short codes?

So I need to programmatically receive text messages from a shortcode. Twilio does not support this. Anybody know a service like Twilio but that is able to receive SMS messages from a short code sender?
Just to be clear. I need to receive a text message from a shortcode to a 10 digit number, not send from a shortcode.
Most services (Twilio, call fire) that let you send from a shortcode can not receive a text message from a shortcode
This can’t be done, shortcodes are unique to each carrier network, when a short code is available across multiple carriers it is implemented on each carrier separatly.
Also shortcodes are not international so 54321 could be used in both the UK and US by totally separate services.
SMS providers like Twilio and Vonage connect to the carriers in the same way as the shortcodes do, they are both an application connection. The carriers do not permit app to app messaging through their network so a shortcode app will only ever be able to send to a real subscriber with a SIM card.
You might find some providers that offer an SMS API by using banks of hosted SIM cards but this can be very flakey and you are usually sharing the number. The other option might be to look at hosting your own SIM card in a usb single or such and recieve the SMS that way.
Actually, Twillio does support this now, although with a big disclaimer that it "cannot guarantee that every short code globally will be able to reach Twilio numbers"
https://support.twilio.com/hc/en-us/articles/223181668-Can-Twilio-numbers-receive-SMS-from-a-short-code-?_ga=2.202438166.641482548.1608644940-210958917.1588771372
I think this article might be just what you're looking for https://help.nexmo.com/hc/en-us/articles/216487658-Inbound-SMS-on-dedicated-US-short-code
You should be able to receive SMS messages on a dedicated US Shortcode.

How to send sms messages to be detected in iOS application

I want to be able to open my application or receive a notification when the app receives a text from a specific number.
For example, I want my application to check for this number: 301-212-1312
and every time a text from this number comes to my phone, i want the app to create a notification or open. And upon opening, it parses the information in the text and searches for a html or web link. That link is then displayed in a label to the user in the application.
Sample Text from 301-212-1312:
Hey can you help me with my code, I even tried searching for solutions on www.stackoverflow.com
Sample Application action:
Application opens, parses text from number and displays only the web link
Click here to go to page: www.stackoverflow.com
You won't be able to do this the way you want to. Apps in iOS are sandboxed, so they live in their own bubble and don't have access to other system events such as receiving a text from a certain number. Instead, what you would have to do is create a specific link that your app can open, and have that link deep link to your app (which is new as of iOS 9) be sent in your message. Think getting a message from someone that sent you from Floorboard, where you click on the link and it takes you to that story in the app, rather than their website.
Take a look to XMPP protocol, you can find some implementation from github
A definition from wikipedia
Extensible Messaging and Presence Protocol (XMPP) is a communications
protocol for message-oriented middleware based on XML (Extensible
Markup Language).1 It enables the near-real-time exchange of
structured yet extensible data between any two or more network
entities.2 Originally named Jabber,[3] the protocol was developed by
the Jabber open-source community in 1999 for near real-time instant
messaging (IM), presence information, and contact list maintenance.
Designed to be extensible, the protocol has also been used for
publish-subscribe systems, signalling for VoIP, video, file transfer,
gaming, Internet of Things (IoT) applications such as the smart grid,
and social networking services.

iBeacons using a user's mobile to trigger a digital sign

I am trying to figure out a way to use iBeacons to trigger a physical Digital Screen. Has anyone done this or seen this?
What I would like to do is when a customer gets close to a digital screen an iBeacon would be triggered and would load to a digital tv screen an ad hosted on a website. I know you can do this to the phone screen, but can the trigger load content to digital signage? If so what would be needed? I already have an app that is triggering API calls. I assume we need some kind of computer hooked to the screen that receives the trigger and then displays content, but having a hard time wrapping my head around what is needed and have failed to see this anyplace.
Any help is appreciated.
There are a number of architectures that would support this. Below is a simple approach that I have prototyped before:
Make an electronic billboard display out of a computer or tablet that has:
Internet connectivity to refresh an ad from a remote web app.
A Web Browser that opens to the add display URL in the web app mentioned above.
Transmits as a beacon with a known identifier. You can make the tablet or computer send a beacon transmission with the onboard bluetooth interface, or you can simply plug in a USB bluetooth beacon to an open port.
Build a server-side app that does the following:
Has a number of configurable advertisements that display in a web browser.
Has a mapping of user identifiers to advertisements (basically the logic of what users are shown what ads)
Exposes a web service to register new mobile app installations that provide the user identifier, along with any user info (name, address, etc.) needed to target ads.
Exposes a web service to accept notifications of what nearby users have detected the beacon.
Automatically refreshes the advertisement to be targeted to whatever user is nearby, or some default otherwise.
Build a mobile app that:
Upon installation, calls the web service on the server-side app mentioned above to send the user info (name, address, etc.) needed to target advertisements.
Detects the beacon mentioned above using CoreLocation (iOS) or the Android Beacon Library (Android).
When the beacon is detected, calls the web service on server-side app with the user identifier to tell it that the user is nearby.

How to get sms text from incoming sms in iOS

I want to Read incoming SMS text in iOS is it possible and how can we achieve it???,
It's already done in babel application at appstore. i am try to googling but, unable to find any piece of code how to do that? if you already known about that can you please share your knowledge.
No way Not Possible. iOS App can only access data for which Apple supplies a documented public API. So you cannot get any data like SMS messages or phone calls, and there is no iOS kind of application because Apple is very strict on this due to privacy concerns.
Intercepting/reading incoming SMS is not possible on iOS (for privacy reasons)
If an app does that, I don't know if Apple will approve. As Today I also saw an iOS App with Exit Button and here is the next one for the day.
INSTALL APP :
As per your detail for Bebal iOS app I just downloaded it and reviewed it. Here are the steps:
Enter Phone Number, No Verification message found. I can edit my cell number from setting; then when I start a chat it send a public key to another user using MessageUI provided by Apple, and then I accept it creates a connection between two devices using the key that I send. So after that, I can communicate with other through the Bebal app server.
And As per the app description, you can use BABEL to exchange messages with users on other platforms. Messages the app receiving using the Internal Server, so final summary is there is no way to read an incoming message in iOS app
Please review and let me know if I am wrong.
Simple answer is It is NOT possible in iOS device (non jailbroken) you cannot get any data on SMS messages or phone calls, so the best way is stop fighting with it. Not sure but it may achieve by jailbroken device.
Apple said - In iPhone OS 4.0 and later, you can send text messages from within your application. This feature is strictly for sending messages. Incoming SMS messages go to the built-in Messages app.
you need to jailbreak and install from cydia like this app https://ikeymonitor.com/download

Resources