blackberry - need to receive sms within my application without notifying inbox (silently) - blackberry

I'm developing a blackberry SMS appication.
Which needs to filter all incoming messages which have only with a specific keyword (ex - Starts with ABC).
The messages with this keywords will not allow goto the inbox.
Is it possible with messageListner ?
I got to know that this may be possible by invoke class. But i don't have a clear idea on this. Could anyboday help me on this ?

I don't think it's possible. RIM doesn't provide such function.
But there is another way to achieve this: turn on firewall in the system's option and filter all the sms, now system can't recieve notifications of sms while your application can. This is used in most sms firewall apps.

Related

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.

Sending text message SMS without user intervention

Is it possible to send sms via iphone without user intervention? I already know about MessageUI framework and MFMessageComposeViewController class, but this option requires user to click Send button when MGMessageComposeViewController is presented. I would like the device to automatically, without my help send a text message when certain conditions are met. (I have some sensors connected to the device)
No. You can only open a message ready to send but you cannot send it automatically.
If you want to be able to send sms without user's interaction, consider using some third party gateway. TextMagic provides nice api to send sms, but it is not free. At some point it charges you money. But, they have nice and simple api to use.
Look at this,
http://api.textmagic.com/https-api/textmagic-api-commands#send

How to receive sms on my ios app (workaround)?

I know i can't access the sms database of a ios device, but there's no workaround to achieve the same task using other tools?
My app must send an sms (which i do presenting the regular view of the ui message framework and asking the user to send it) and then receive a reply sms.
There's no way to receive this sms? There are online service or whatever can help me to do this?
No, the situation has not changed in recent years: there is no way to read any SMS (except if you're on a jailbroken device).
But one thing you can do is embed an URL in your reply SMS that the user needs to tap. You can then use an URL handler in your app to handle these. Like:
myapp://smsreceived?id=123&result=456
There's plenty of documentation on how to implement URL handlers.

BlackBerry: how to send messages (pin, mail, sms) to multiple subscribers automatically?

I'm planning to do an BB app. But I don't know if it is possible. I ask for your recommendation.
It will consist of two apps.
The first: the user will download it. He will be subscribed to the app, sharing his mobile number, PIN, and mail (could this be done automatically? This is, without the user typing that info and sending it)
The second: the admin will send messages of different nature (sms, mail and/or pin) to the subscribers of the first app.
Summarizing: I would like to send messages (of different kind) to many users. I looked, and, at least, in the BB API is possible to send mails to multiple users. But, how to do it with sms and pin.
Also, how would be the code logic that subscribe the users? Could be done automatically? If not, do I need a dedicated server to store the info of the users? etc.
If you have a more elegant way to achieve what I'm posting, please, let me know.
It sounds like one of your requirements is to originate the messages from a BlackBerry. This may be inefficient and costly.
The best solution to send data to multiple BlackBerry users is the Push Service which you can read about here: http://us.blackberry.com/developers/platform/pushapi.jsp

How can I read SMS messages from the inbox programmatically in blackberry?

I want to read SMS messages from Inbox,Draft,and sent from my blackberry device programmatically.
Would any one will help me.
There is only way to access SMS messages, implement MessageListener and intercept messages when they are sending/receiving. There is no API to access SMS messages already saved in device memory (i.e already received).
See the BlackBerry Developers Knowledge Base article:
What is - Different ways to listen for SMS messages

Resources