whatsapp

How to broadcast a message from my own app to contacts on WhatsApp?

为君一笑 提交于 2019-12-12 09:26:18
问题 Now i can send a message from my app to whatsapp by this shown code..BUT how to send to many contacts at one time Intent waIntent = new Intent(Intent.ACTION_SEND); waIntent.setType("text/plain"); String text = "Sorry For Interruption,I'm Just Trying Something"; waIntent.setPackage("com.whatsapp"); if (waIntent != null) { waIntent.putExtra(Intent.EXTRA_TEXT, text);// startActivity(Intent.createChooser(waIntent,"Share with")); 回答1: You can't. WhatsApp allows the user to pick only one contact or

iOS share image AND text to WhatsApp

孤人 提交于 2019-12-12 07:08:15
问题 I have googled, and get some solutions, it seems the only possible way is thru UIDocumentInteractionController . I have found the result that able to share text ONLY, also found result that share image ONLY. But what I want is share BOTH . I know this question may be duplicated, I just wanted to make it clear, here is the screenshot... (This is shared from Android) 回答1: You can use UIActivityViewController to share image , text or URL .Here is a small example : NSString *textToShare = @"Enter

How to send message using whatsapp API

送分小仙女□ 提交于 2019-12-12 06:04:57
问题 I am newer to implement whatsApp API in my project and I downloaded whatsapp API. I used ajaxDemo from that and set following code in my file but it is not working and give internal error in socket.php file. index.php <?php session_start(); $_SESSION["running"] = time(); $_SESSION["inbound"] = array(); $_SESSION["outbound"] = array(); $target = "+91**********"; //conversation target number/JID ?> socket.php require_once '../whatsprot.class.php'; //I got error this two lines $target = @$_POST[

WhatsApp c# api “Login Failed” message

纵饮孤独 提交于 2019-12-12 04:06:23
问题 i'm using c# api for whatsapp and when i attempt to send a message to any number , the message ""Login Failed" show up to me !! here's my code string to = textBox1.Text; string mes = richTextBox1.Text; string from = ******************"; WhatsApp wa = new WhatsApp(from, Mypass, "56mmkjkjk", true, true); wa.OnConnectSuccess += () => { Console.WriteLine("Connected"); wa.OnLoginSuccess += (phoneNumber, data) => { Console.WriteLine("Connection success!"); wa.SendMessage(to, "Hello World!");

Android — intent chooser for whatsapp and sms only

南笙酒味 提交于 2019-12-12 01:44:15
问题 I want to create an IntentChooser who offer to share text only via SMS or WhatsApp. Here is my code to share via WhatsApp: Intent localIntent = new Intent(Intent.ACTION_SEND); localIntent.setType("text/plain"); localIntent.setPackage("com.whatsapp"); if (localIntent != null) { localIntent.putExtra(Intent.EXTRA_TEXT, "Hi there! I'm using this app"); startActivity(Intent.createChooser(localIntent, "Hi there! I'm using this app"); } I need to add to this also sharing with SMS. How can I do it?

How to render whatsapp content in preview dynamically?

爱⌒轻易说出口 提交于 2019-12-12 01:42:28
问题 I have an application where i use dynamically rendering of meta tags. I am using pre render services to render meta content dynamically. It works for facebook, google..etc but for whatsapp it is not able capture dynamic content. It is showing like {{meta.content}}. How can i remove preview from whatapp while sharing from js? Is there any solution to capture preview dynamically? 回答1: If you want to render dynamic content that you need take help of .htaccess. RewriteCond %{HTTP_USER_AGENT}

Android Share Link with WhatsApp

倾然丶 夕夏残阳落幕 提交于 2019-12-12 01:08:54
问题 I am trying to share link with my android app with this: Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_TEXT, share); intent.putExtra(android.content.Intent.EXTRA_SUBJECT, ""); mContext.startActivity(intent); this is the share Strong : Check out my link:\n http://my123domain.com/v.php?vid=123456-123456-123456 But when i share it with Whats App the link is not click able, Any idea Why? 回答1: Whatsapp does not allow sending clickable

How to use mobile app into whatsapp share link working?

流过昼夜 提交于 2019-12-11 17:46:59
问题 How do you use an HTML link to open the whatsapp on a mobile app ? this link works on website Example link: <a href="whatsapp://send?text=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F51533526%2Fhow-to-use-html-link-into-whatsapp-mobile-app%2F51533716%3Fnoredirect%3D1">Whatsapp Share </a> This link is failing in the WhatsApp mobile app. This is the error message: ERR_UNKNOWN_URL_SCHEME (same error => app into phone number click) I want to solve this problem on the front end side. 回答1: The

Whatsapp Web redirecting issue

大城市里の小女人 提交于 2019-12-11 14:47:01
问题 I am trying to create webview application, in that I have created a webview to show the desktop site using custom user-agent . It was working well for the first time , but since second time https://web.whatsapp.com automatically redirect me to https://www.whatsapp.com site instead of web.whatsapp . I removed cookies for this app from my mobile then it got connected with web.whatsapp , but when I try to connect it second time, again it redirect me to whatsapp main site.all time this happen

Send message to specific number whatsapp android?

▼魔方 西西 提交于 2019-12-11 14:28:09
问题 How can I send message to specific number in whatsapp. I searched and found this code Uri uri = Uri.parse("smsto:" + number); Intent i = new Intent(Intent.ACTION_SENDTO, uri); i.putExtra("sms_body", "as sdj ajs"); i.setPackage("com.whatsapp"); startActivity(i); It only opens that number's chat window but no message is displayed in the edit text. Also tried this Cursor c = getContentResolver().query(ContactsContract.Data.CONTENT_URI, new String[] { ContactsContract.Contacts.Data._ID },