how to send an SMS without opening other app in flutter? - android

I am trying to send SMS directly from my flutter app like by clicking button and enterning reciever's number but without opening any other or default sms app. I have already try many packages like url_launcher,flutter_sms but they generally redirect to other app.
If someone knows how to do it, please answer.
Answer in code will be more helpful.
Thank you in advance........

It's impossible to do directly from app.
You could use some 3rd party service, such as Twillio. So you would send API call to that service and Twillio would take care of rest.
But why do you need to do so? This is not what usual user expects from the app. It would look like some number stealing app.
I suggest you to use regular way, which is used in the most apps.

Related

Android: What do the users do with my app?

In order to create a sustainable Android App, I want to capture, how the users are actually using it. Why improving a feature that is actually not really being used?
So I would like to collect anonymous data on different user actions. For example send data whenever a user clicks button XY.
So to my question: Does anybody know, whether there is already a framework or a service out there, that would support me on this purpose, or do I have do implement everything from scratch?
Thank you for your advice!
There are some 3rd party libraries for that purpose. Some of them are given below:
Google Analytics
MixPanel
Flurry
APSALAR

Send push-notification from Android to iOS and vice versa?

I've just learned that its going to be pretty tough for me to realize an app that can send a push notification to another device, BUT: is it even worse to send it from Android to iOS respectively iOS to Android ? I know it's possible because WhatsApp does it, but okay, WhatsApp...
The way I need it is, on Phone A (Android) a user clicks on a button "Send 'ring'" to user B (iOS).
When A clicks that Button, an AlertDialog (UIAlertView) shall appear on user B's screen.
That's just to describe what I want to do, it obviously won't only send a 'ring'.
Any suggestions or good tutorials?
To do this, you need to implements the server-side logic, but everithing it's much simple if you use some services like Parse
Here the docs related to iOS and Android.
They have their SDK, there is a pretty good documentation, you can setup everything very quickly. We are using Parse a lot recently and (specially for notifications) it's very helpful.
There are others services like this (most of them based on node.js):
Deployd Open Source
Sockethub Open Source

Facebook on Android: What kind of intent is used by links clicked from wall posts?

I have a question regarding some implementation details of the Facebook app for Android.
When clicking a web link from within Facebook (e.g. a web article posted in News Feed), I would guess that it creates and sends some kind of Intent object for the http/https link that a capable web browser app can receive and use to open that link.
I'm looking to make an app that can receive that Intent to potentially do something more useful with it, instead of always sending it to a web browser. I need to know a few things so that my app will successfully capture that intent:
What kind of Intent is it?
What action and categories are specified?
Are there any other specific details I might need to know?
I appreciate any help or links to resources that may point me in the right direction.
EDIT:
One thing I would like to know specifically is whether this intent is sent to Broadcast Receiver components instead of to activities or services. If so, I can just use Tasker to achieve what I want.
I believe you are probably looking to do something similar to this tutorial
http://blog.vogella.com/2011/02/21/android-intents/
Although I can't be certain of what Facebook is calling, I know that all of my current browsers on my Tablet have the option of being used. I would assume they are using
new Intent(Intent.ACTION_VIEW)
Keep in mind that if you register your app in this way you will look like a browser to all apps, not just the Facebook app as you suggested.

Send text to app (not specific phone number)

I don't know if this is even possible, couldn't find anything usefull on the internet.
I wanted to make an app, that me and some of my friends could send a message trough "my app" and that everyone who has that app, receive the message, without using a phone number.
So basically, same as WhatsApp GroupConversation, but then without using a phone number.
Is this even possible?
If it is possible, could you put me on the right track to start with.
Hope I am clear enough, if not, tell me :)
Edit:
This just pops up in my head (didn't look on internet yet), but what I want, is a kind of a shoutbox.
This is possible, in fact WhatsApp does not use your phone number for this at all.
You simply provide your phone number to asure a unique ID and proof that you are indeed in possession of this phone with the validation SMS.
From there on, your phone number isn't even used anymore.
You can go 2 ways with this;
Create a simple webservice with a database on which you just save and request messages. Maybe make a little difference between get all or get latest message. Anyone, hooking into the group, can just fetch the same data. With the use of GCM push notifications, you can make this pretty instant.
Use XMPP, which is a chat protocol kinda all the chats use. Whatsapp, Google talk, FB messenger... This will provide you with instant messaging just like any other chat app or program you know.
Option 2 is by far the best in final functionality, but be warned that XMPP is quite complex and error prone.
You can look into the asmack and asmackx libraries for Android, which will give you the basic functionality with ease. Going a bit deeper, you'll have to dig into the protocol and really get to know it though.
ps. For both you'll need your own server, however with asmack(x) you are also allowed to use Google's Talk servers for free. Communication will go through your Gmail account. Basically with this you just make your own version of Google Talk.
It is possible by implementing server-client architecture. Your app will use a common database for all the users. whenever an user install your app, he will achieve an unique user ID. if anyone uninstall it, his id will be destroyed. You can track the users from those ID in database. You don't need phone numbers.

Notification in Android

I am trying to create an android application which allows users to receive updates from a particular server/website.
For example, whenever I have a piece of information I want to share, like an update or notice, I will post it on this website. Whenever, there are updates posted by me, I want the phone to receive a notification about it as well and add the information into the app.
Just like the gmail app on android. Update immediately when there is a mail and not have a timer to check at every interval.
Does anyone know how can I go about it? I am new to programming, it will be good if your answers in steps for me to follow. Thanks in advance.
EDIT:
The android application will have a login page which is define the type of the user. Only the updates and information regarding the type of the user will be pushed.
However users of this application, may not login with a google account.
You could use C2DM - Cloud 2 Device Messaging. It's relatively new tech though so not a lot of resources about it.
Here's a good tutorial on it: http://www.vogella.de/articles/AndroidCloudToDeviceMessaging/article.html
Edit: PS: and it's in beta too so might work best as a proof of concept more than an actual product.

Categories

Resources