"Tell a Friend" example (sending email/SMS to people in contacts) - android

I'm developing application where I need to add the functionality of allowing user to send either email or SMS to people in his contact book about app.
Thus, I wonder if somebody wrote such code and would like to share it, or if you know any example in Internet where could I use.
or at least, if you know any example of sending SMS or email it will be good too.

This question: Android: Separate intents for email & SMS shows you how to send information via email and sms.
You should also read the Developer Guides where they discuss the ShareActionProvider. The ShareActionProvider allows you to easily transfer information from your app to another (like Facebook, Twitter, or any app that is ready).

Related

can I send Whatsapp programmatically in my app flutter

I want to send WhatsApp messages in bulk, meaning my goal is that if the user gives me consent. I will be able to connect to his WhatsApp and send WhatsApp messages to a list of numbers that I will provide. Note: I don't want the user to leave my app, meaning I don't want the regular functionality that the WhatsApp app is opened with the number. I want that after the user's consent, I will be able to use the user WhatsApp to send around 200 WhatsApp messages automatically without leaving my app.
I saw the related answers each one did not work for me.
first answer - the regular functionality that just opened WhatsApp.
whatsapp flutter lib from what I saw, I can not send messages to a user who does not have WhatsApp for business.
android send whatsapp I saw this message that will allow me to do this in android only, and I need to find a way to write a custom function in Kotlin or Java to make it work.
flutter whatsapp - I saw the answers, but none of them told me if I could send a bulk of messages without opening the actual app.
I should note: there me be another approach that can work. Create a shortcut programmatically for ios, which will allow me to create a shortcut that will include the list of numbers with the text and activate the shortcut. But I could not figure out also how to do so.
On the apple form, someone asks this question and does not answer.
swift create a shortcut
tech: flutter, firebase
You will need to see what APIs WhatsApp has available that you can utilize. There isn't a current way to just send bulk messages directly from your app and they get sent in whatsapp. You need to work with WhatsApp's APIs to accomplish what you are trying to do.

Android send shopping card order e-mail with attachments without using intent

I've developed an Android app with a self developed shopping cart. At the end of the purchase process I want to send an automatic email to the store owner in order to proceed with order.
Till now I used an email intent in order to force the user to send an email by themselves but the store owner got too many complaints from the users. So now I'm searching for another solution in order to do it in the background.
I've searched around but didn't find a proper solution. The email should contain a bit of text information along with 1-n attachments from users phone.
Do you have any suggestions?
Proper solution would be to send it through web service. But if you want to do it through email in background of your app you must provide possibillity to sign in to email address and send it, it would be like creating another email client.
Think about creating web service to which you will send these orders it is way better solution than sending emails from background of your app.

Google now handles whatsapp messaging

I see there are many threads on
How to send whatsApp message without opening WhatsApp?
All the answers lead to either of these two options:
Open whatsApp -> select contact. Message set in intent would be sent to that contact.
Open whatsApp with specific contact -> paste manually the message set in intent and hit send.
So, there is no option provided by WhatsApp to directly send a message to contact completely in background.
If this is so, then how GoogleNow is able get hold of this unavailable service of whatsApp?
If it is a new service opened up in google or whatsApp, can I get pointers so I could use this in my app?
WhatsApp doesn't have any information about it, and doesn't have any API.
Refer to these discussions:
WhatsApp's philosophy is to push storage down to devices, rather than doing central server based message storage. This means the API needs to live on the device as well.
Because "WhatsApp does not want to inundate users with messages they don't want to see", per Brian Acton in the latest F8 conference. While that may be sad for developers, I think it's a good decision.
WhatsApp's appeal is private, human, group conversations. It does that extremely well and for more than a billion people. Disturbing that would be risky.
Several companies around the world could benefit on developing customer service apps through WhatsApp.
And in the official page of WhatsApp there's only these information about integration (which is actually an Android System function).
I think what GoogleNow really does is handle the events of the system, Google has Android so there is no problem for them to know all the events and actions that can be integrated into the system when having an app installed.
So, is not possible for us (unfortunately) do that yet. We'll have to wait to WhatsApp to elaborate some API.

Creating an android app with SMS based user registration process (a la Yo and WhatsApp)

I am developing a free messaging app and I was looking to implement a user registration process based on the user's phone number and, for the verification of that number, I would like to implement a SMS mechanism similar to Yo, WhatsApp or Telegram apps, in which the user receives a unique confirmation code in an SMS to verify the phone number and activate the user's account.
My research indicates that all these apps use third party SMS gateways providers like Twilio or Nexmo, for example, but that seems very costly for a free, and sort of recreational app, like Yo. So I wonder if free apps like Yo use paid SMS gateways providers to send confirmation codes to their users, or they indeed use anything else.
I have also checked Telegram's Android app source code (see here) but I could not figure out how and what service they use to send SMSs with confirmation codes. Is anyone acquainted with Telegram's source code that could tell me how they do it?
Much appreciated.
Have you looked into Twitter's Fabric API ?
https://get.fabric.io/digits
If you are looking for just user confirmation and not just sms confirmation I would suggest cognalys, it confirms users using missed calls.

How to Send message to a WhatsApp group without opening WhatsApp?

Is it possible to send message using the WhatsApp server to a WhatsApp group,
inside my own application and without opening the WhatsApp app?
Also please help me regarding the history of WhatsApp contact chat.
in short NO
Reason: because (at least to my knowledge) Whatsapp does not allows the same. i.e. no external events or APIs to implement the same. So you have to at least use the intents and let the user handle the rest.
Also please help me regarding the history of WhatsApp contact chat.
This also can't be done (using ethical approach) because all the chat history is stored in a private database which is not revealed to the external apps by the Whatsapp application and also potentially violates the users privacy.

Categories

Resources