whatsapp

how to integrate whatsapp in ios

北战南征 提交于 2019-12-19 11:18:13
问题 hi now i am trying Integrate What's app in our app i have done already integrate Tweet :-in this app i create two buttons one(chooseImagePressed) button is choose the image form local file and then and then second(tweetButtonPressed) this is post the image to Tweeter - (IBAction)tweetButtonPressed:(id)sender { if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) { SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType

Find out if app is installed

 ̄綄美尐妖づ 提交于 2019-12-19 07:49:12
问题 I think the question says it all: What is the best way to find out if the user has installed Facebook or Whatsapp on his phone? Do I have to go over the package or what is the best way for this? 回答1: This was question was answered here. You can using the following piece of code to check for the package name com.facebook.android OR com.facebook.katana Code: public class Example extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Send WhatsApp message in background or send message and close the app in android

六月ゝ 毕业季﹏ 提交于 2019-12-19 03:42:18
问题 Is it possible to send whatsApp message without opening the app, to be sent in the background like sending SMS using: smsManager.sendTextMessage("+12546304580", null, "Test Message", null, null); if so how? The code that I tried opens the APP (WITH INTENT): Intent waIntent = new Intent(Intent.ACTION_SEND); waIntent.setType("text/plain"); String text = "Test Message"; waIntent.setPackage("com.whatsapp"); waIntent.putExtra(Intent.EXTRA_TEXT, text);// startActivity(Intent.createChooser(waIntent,

How to send message on WhatsApp Group using official API

三世轮回 提交于 2019-12-18 16:58:39
问题 I know about send message to any number using WhatsApp official API using https://api.whatsapp.com/send?phone= But is there any way to send message to WhatsApp Group is user is joined that group. I have a form and want this form data to be shared in our whatsapp group on click. 回答1: The WhatsApp Business API Client supports a subset of the features provided by the WhatsApp applications you already know from Android, iOS, Web and other platforms including end-to-end encryption. The difference

I am trying to send text- messages on WhatsApp with javascript?

空扰寡人 提交于 2019-12-18 13:35:59
问题 I am trying to send text messages on whatsapp web version on chrome. (www.web.whatsapp.com) This is the code: document.getElementsByClassName("input")[1].innerHTML="This message was written via JS script! "; var input = document.getElementsByClassName("icon btn-icon icon-send"); input[0].click(); But the problem is , initially when no text is present the input box looks like this: And only when I physically write some text it changes to this: And only now my script works since it requires the

How to make whatsapp type of animation for opening the menu from toolbar(actionbar)

£可爱£侵袭症+ 提交于 2019-12-18 11:02:30
问题 Description: I recently updated whatsapp and noticed the animation for menu item clicked on toolbar. How to achieve this effect? Are there any opensource projects to achieve this? I have not posted any code because. I have no clue how they are doing it. Snapshot-1 : Before clicking the attachment button in menu Snapshot-2 : After clicking the attachment button in menu How to Achieve this? 回答1: Seems like they "ported" lollipop animation in pre-L devices. The simplest way to do this is using

Sending message to WhatsApp from your app using Swift?

陌路散爱 提交于 2019-12-17 23:25:14
问题 For one of my app, I wanted to share data to WhatsApp contacts. I tried few solutions overs the StackOverflow but couldn't get exact solution. After some trials could achieve what I was looking for, so sharing here for anyone's future reference. 回答1: var url = NSURL(string: "whatsapp://send?text=Hello%20Friends%2C%20Sharing%20some%20data%20here...%20!") //Text which will be shared on WhatsApp is: "Hello Friends, Sharing some data here... !" if UIApplication.sharedApplication().canOpenURL(url!

Web link to specific whatsapp contact

谁说我不能喝 提交于 2019-12-17 21:26:47
问题 I'd like to place a link on a webpage which opens a whatsapp chat with a certain whatsapp contact. In other words: I want a "contact me by whatsapp" link to go next to the page's "Contact us my facebook/twitter/google+/etc" links. Something like: href="whatsapp:contact=015555555555@s.whatsapp.com&message="I'd like to chat with you" 回答1: I've tried many approaches and I have a winner (see Test 3), here is the result of each one: (I think the Test 3 will also work for you because if the person

Mobile website “WhatsApp” button to send message to a specific number

戏子无情 提交于 2019-12-17 17:44:24
问题 A mobile website can be customized to allow users to share a pre-filled message in WhatsApp to a manually chosen contact. As given here it is done using Custom URL Scheme. An example: <a href="whatsapp://send?text=Hello%20World!">Hello, world!</a> To call a particular number we use: <a href="tel:0123456789">Call</a> Similarly, can we send a WhatsApp message to a specific number (or at least open the chat) without user choosing the phone number manually rather it will be one of the predefined

Send Whatsapp message to specific contact

南楼画角 提交于 2019-12-17 15:44:51
问题 I followed this link and this is my code Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("content://com.android.contacts/data/" + "MYNUMBER@s.whatsapp.net")); i.setPackage("com.whatsapp"); startActivity(i); This is my log android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=content://com.android.contacts/data/MYNUMBER@s.whatsapp.net pkg=com.whatsapp } at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java