So i'm new to programmation and my boss wants me to build an app function which sends an sms invitation to all the user's contacts. Now, aside from this function being the most horrible thing i've ever heard, this is my job and i'd like to get some help on how to do it.
didn't try cause i've never programmed android
Related
I have implemented Phone Authentication in my application, and it had been working fine until last night, when suddenly no codes by SMS were received anymore. The authentication process proceeded smoothly, but no SMS.
When I tried using another phone number from my app in my phone, an SMS was received, but of course the authentication wasn't complete, since it wasn't my phone that received it.
I read in the official docs about the limits on SMS sent, but that was 500/IP/hour, which the frequency of my testing (I tested 34 times in the period of around a day) comes no where near...
The problem is that I depend on onCodeSent() method which is invoked when an SMS with the code is sent to display a dialog, which when dismissed will complete the sign-in process. Without the SMS, onCodeSent() isn't invoked, therefore the dialog won't be displayed, and thus can't be dismissed, which in turn won't complete the sign-in process.
Can somebody help?
P.S.: If the question isn't in the right place, please tell me. I can be considered a fairly new member of Stack Overflow, so I don't know that much about the rules.
Ok, I figured out what was happening:
Basically, for some reason, the instant verification or auto retrieval of code in my phone (which for some reason wasn't working before) kicked in, perhaps because of the number of SMS sent to the same number.
After searching the net for some time, some misunderstandings I had about the process of phone number authentication of firebase got corrected:
onCodeSent() is not invoked in cases of instant verification or auto-retrieval of code, the latter of which detects the incoming of the SMS to your phone.
onVerificationCompleted() is only invoked in cases of instant verification or auto-retrieval of code.
In other words, both work separately from each other, and I had to take measures to finish the sign-in process in case no SMS was sent.
Hopefully this helps anyone with the same problem.
I'm creating video chat (like skype, but for a specific type of companies) apps for Android and iOS using Xamarin. I'm wondering what the best approach is to handle the server to client communication, specifically when a call is coming, how do I fast and reliably contact the receiver ie client phone?
I want to be able to contact my App even if it is closed
I need to know if the message have gone through
It has to be fast, preferably under 1 second
I've read about push notification and they can wake my app, but they are slow and no guarantee they will get through.
I've been looking into SignalR which are fast and reliable, but I can't quite see how to open my app.
Currently I'm thinking about setting a status wether or not the app is open. If it's open I'll use signalR else the caller will be asked if he wants to notify the receiver about the incoming call. Does anyone have better idea?
I’m trying to develop an application to do some manipulation (compression and security matters) on the outgoing Sms regardless of the composer application. The main challenge is that I cannot capture the Sms exactly before being sent. For instance the user compose the message body using Go Sms Pro and when the send button is pressed , right before the sms is actually sent we capture it and do the compression and security matters on .
Any solution or replacement idea appreciated.
Starting with KitKat, the SMS content provider has been opened up (finally): http://developer.android.com/about/versions/android-4.4.html
To make this work with previous versions of android, you could set up a content observer to watch content://sms/, query the appropriate tables in that database, and then do whatever you like to erase the message before it goes out. This is just a thought mind you, but whatever you do will likely involve using this method.
This is not possible, short of via your own custom build of the Android OS. You have no ability to intercept, let alone modify, the calls from an arbitrary app via SmsManager to the OS to send an SMS message.
I'm learning android programming and to practice I want to develop a little app. The idea is to count the sent messages, like a counter...
The approach I was thinking of was doing a service that monitors the "content://sms/out" I do this by using a ContentObserver, inside the onChange method I increment some kind of counter or something like that... then from an activity I fetch the data from service (IPC)...
Is this a good way of doing this? I've been reading a lot and I couldn't make out a best way of writing this little test app...
There is no "global variable" or something like that where android stores the amount of sent messages right?? Because I couldn't find that...
Thanks for reading!!
===================================UPDATE========================================
I've been doing some research and found there are two kind of applications in the market that count the sent sms.
The first group, just read the amount of sms in the cellphone. I did the following test, I checked how many sms this app showed me, after that I deleted a message and the app showed one message less. This is not a good approach. The app that behave in this wave is this one https://market.android.com/details?id=org.kknd.android.smscounter&feature=search_result#?t=W251bGwsMSwxLDEsIm9yZy5ra25kLmFuZHJvaWQuc21zY291bnRlciJd
The second group I don't know how, counts perfectly the messages sent, I did the same test I did in the previos case and the app showed the correct number of sent and received messages... So I thought that the app must have some kind of service running all the time to check the messages... But for my surprise there is no service, so how this app work?!?!?!? The app is: https://market.android.com/details?id=nitro.phonestats&feature=search_result#?t=W251bGwsMSwxLDEsIm5pdHJvLnBob25lc3RhdHMiXQ.. (great app by the way...)
Any idea???
I've got an idea for an Android Application, however I am unsure if it would work. Essentially what I want to do is "intercept" all text messages sent from any SMS App and make modifications to them.
For example, say I write out the following SMS:
Hi {Name}, how are you today? Can you tell {Boss} I'll be 15 minutes late today.
The onSMSSend function in my application(assuming it is currently running in the background) would then be able to edit the content of the message(Eg. Replacing variables with ones defined in the application), and then send it on to the recipient.
Is Android able to provide this functionality?
No it is not. Android may be able to inform you after an SMS was send. But there is no way to intercept a message that should be sent and apply changes to it on a non rooted phone.
What you could do is to write a new messaging App that allows the user to type a message, choose a number and send the message. Now you have full control over the message that is send but building a replacement for the sms app is a fair amount of work.