whatsapp

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

蓝咒 提交于 2019-11-30 22:38:37
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, "Share with")); Or is it possible open the app send message to given address and close it? Thanks! No,

How send image to WhatsApp from my application?

▼魔方 西西 提交于 2019-11-30 19:26:17
问题 In July 2013 WhatsApp opened their URL schemes for our apps. I have sent text to Whatsapp from my application, but now I would like send a image. How send a image to Whatsapp? I'm not sure how do it. Thank you. 回答1: Per their documentation, you need to use UIDocumentInteractionController . To selectively display only Whatsapp in the document controller (it is presented to the user, at which point they can select Whatsapp to share to), follow their instructions: Alternatively, if you want to

iOS9: canOpenURL returning false for WhatApp's url scheme

蹲街弑〆低调 提交于 2019-11-30 18:52:25
In my current project I need to share text on whatsapp from iOS app. Here is my code to share text on whatsapp:- NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%2C%20World!"]; if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) { [[UIApplication sharedApplication] openURL: whatsappURL]; } but canOpenURL always returning false in iOS9. Is there any iOS9 privacy policy ? Can anyone help me out. Thanks in advance. In iOS 9 you must whitelist any URL schemes your App wants to query in Info.plist under the LSApplicationQueriesSchemes key (an array of strings):

How can WhatsApp encrypt Push Notifications on iOS? [closed]

ぃ、小莉子 提交于 2019-11-30 16:41:12
Recently WhatsApp integrated the Signal protocol for End-to-End Encryption for all platforms. I tried it with a friend and it said that the encryption was activated. With the app closed and background tasks disabled on iOS 8, the push notifications from my friend still showed the message. Question: Does WhatsApp encrypt the APNS message? If yes, how do they display the text? Is there a method on iOS for processing push notifications? Thanks in advance! WhatsApp could be using VoIP background mode along with PushKit for solving this problem. VoIP pushes are: delivered directly to the app.

How to Send a Text message and Image through Whatsapp from Own Application with help of Intent in Android?

╄→гoц情女王★ 提交于 2019-11-30 15:47:10
I am not able to send both text message and image through whatsapp . Either , I am able to start that particular contact chat thread without any message or I am only able to send message but not opening that particular contact chat thread. I have followed following link : http://www.whatsapp.com/faq/en/android/28000012 Sending message through WhatsApp Send Whatsapp message to specific contact But not getting Success :( Can anybody help me with this. How to Send a Text message and Image through whatsapp from Own Application with help of Intent in Android ? Try using the following solution,

Android share deep link url using whatsapp and open my app when click deep link

蹲街弑〆低调 提交于 2019-11-30 15:43:06
问题 I am sharing some data using whatsapp, and I want to open a specific activity in my app when user press deep link from whatsapp I have the following schema myapp://openapp?type=banner&id=10 whatsapp share the link as a normal text not as url and also I can't open my app when user press it can anyone help please ? EDIT this is my sharing method public static void openWhatsApp(Context mContext) { PackageManager pm = mContext.getPackageManager(); try { Intent whatsAppIntent = new Intent(Intent

Android share deep link url using whatsapp and open my app when click deep link

穿精又带淫゛_ 提交于 2019-11-30 14:21:26
I am sharing some data using whatsapp, and I want to open a specific activity in my app when user press deep link from whatsapp I have the following schema myapp://openapp?type=banner&id=10 whatsapp share the link as a normal text not as url and also I can't open my app when user press it can anyone help please ? EDIT this is my sharing method public static void openWhatsApp(Context mContext) { PackageManager pm = mContext.getPackageManager(); try { Intent whatsAppIntent = new Intent(Intent.ACTION_SEND); whatsAppIntent.setType("text/plain"); String text = "myapp://openapp?type=banner&id=10";

Create a web service that can answer to WhatsApp messages

蓝咒 提交于 2019-11-30 13:15:51
问题 I'm trying to understand if it's possible to create a web service that can send and answer to WhatsApp messages. I searched on the web and I found the WhatsAPI, I guess this solution work fine, but with the actual version of WhatsApp it's not possible to get the nickname, the sender, the imei and the password. To get them I set up a Linux PC in which I installed mitmproxy to sniff the web traffic of a Samsung Galaxy S4. By using mitmproxy I can see the web traffic generated by the phone, so I

How to share pdf and text through whatsapp in android?

徘徊边缘 提交于 2019-11-30 13:07:00
I tried with the following code but it is not attaching the pdf file. Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, message); sendIntent.setType("text/plain"); if (isOnlyWhatsApp) { sendIntent.setPackage("com.whatsapp"); } Uri uri = Uri.fromFile(attachment); sendIntent.putExtra(Intent.EXTRA_STREAM, uri); activity.startActivity(sendIntent); I had this issue where I was trying to open a pdf file from assets folder and I did not work, but when I tried to open from Download folder (for example), it actually worked, and here is an

Sharing image to Whatsapp & Facebook

守給你的承諾、 提交于 2019-11-30 12:10:33
问题 I'm already able to share photos to Whatsapp but the way I do this is by providing Whatsapp option in a UIActivityViewController and then showing a UIDocumentInteractionController . From this UIDocumentInteractionController , I choose the Whatsapp option which redirects the user to Whatsapp and enables him to share the photo. So far my code is like this: if ([activityType isEqualToString:@"whatsappSharing"]) { if ([[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString:@"whatsapp: