whatsapp

How can whatsapp know country code upon first run on iphone

早过忘川 提交于 2019-11-29 00:39:53
问题 When I first install whatsapp on iphone, when I open it, the first screen already knows my sim cards location and shows the country code. How does whatsapp know this ? As apple rejects all the apps that use sim card info programmatically. 回答1: in your .h file you need to: #import <CoreTelephony/CTCarrier.h> #import <CoreTelephony/CTTelephonyNetworkInfo.h> And this function will get the country code: -(NSString*)getCountryDialingCode { NSDictionary *dialingCodes = [[NSDictionary alloc

Whatsapp html call link [closed]

笑着哭i 提交于 2019-11-29 00:11:02
Is there a way to add a link on my website that will say "Call now" and when it's pressed the user can call from their whats app. Any help would be very helpful. Thanks Creating a telephone link is much like creating a mailto: link... your link would look like this: <a href="tel:1234561234">Call ME!</a> this tells browser plugins and smart phones that the link being followed is a telephone number and to use the default telephone application installed. EDIT: Based on feedback and what other users have commented, I would suggest trying this, I am unsure if this will work as expected but maybe

Start WhatsApp from URL HREF with custom text/content

≡放荡痞女 提交于 2019-11-28 22:38:36
问题 As you know using the whatsapp url scheme on iphone i can create the following link: href="whatsapp://send?text=blahblah" this is possible due to the url scheme support on ios. im try to create the similar effect for android devices. (but no threw android app, just a normal html page). to my understanding it should be something like: href="intent://send/#Intent;scheme=whatsapp;package=com.whatsapp;s.text=test;end;" or: href="intent://send/#Intent;scheme=whatsapp;package=com.whatsapp;text=test

Get Path from another app (WhatsApp)

非 Y 不嫁゛ 提交于 2019-11-28 22:11:15
I'm not getting Path from image or video from uri that I receive from whatsApp. Uri comes like this: content://com.whatsapp.provider.media/item/16695 Media coming from Gallery, Downloads ands others are fine. Anyone know how to get Path? This is the code I'm using: public String getMediaPath(Context context, Uri uri) { if (DEBUG) Log.d(TAG + " File -", "Authority: " + uri.getAuthority() + ", Fragment: " + uri.getFragment() + ", Port: " + uri.getPort() + ", Query: " + uri.getQuery() + ", Scheme: " + uri.getScheme() + ", Host: " + uri.getHost() + ", Segments: " + uri.getPathSegments().toString()

Share raw resource via WhatsApp

我只是一个虾纸丫 提交于 2019-11-28 22:08:07
Intent share = new Intent(Intent.ACTION_SEND); share.putExtra(Intent.EXTRA_STREAM, Uri.parse("android.resource://" + ContextID.getPackageName() + "/" + ResourceID)); share.setType("audio/*"); ContextID.startActivity(Intent.createChooser(share, "Condividi il suono")); The above code works fine with Gmail, while Whatsapp gives a toast message like "Share a file failed, please try it again" Maybe i've the same problem of this guy: Intent.ACTION_SEND Whatsapp But how can i temporarily copy my resources on sd card and then share them? File dest = Environment.getExternalStorageDirectory();

Sending message to WhatsApp from your app using Swift?

半世苍凉 提交于 2019-11-28 21:31:54
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. Pandurang Yachwad 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!) { UIApplication.sharedApplication().open(url as URL, options: [:]) { (success) in if

Send a link to whatsapp group directly from browser (or from app)

余生颓废 提交于 2019-11-28 21:12:40
问题 I want to enable users to share a URL+ text with a WhatsApp group. I want this to work both from iPhones and Androids. However my app is in a browser (it's a website). I'm currently looking into 2 options, but both have issues: 1) The first potential solution - sharing directly from the browser. I checked out WhatsApp's URL schema and used the following URL to share through my app: "whatsapp://send?text=Hello%2C%20World!" However there were several problems with this approach: It seems to

How can I send message to specific contact through WhatsApp from my android app?

☆樱花仙子☆ 提交于 2019-11-28 18:29:58
I am developing an android app and I need to send a message to specific contact from WhatsApp. I tried this code: Uri mUri = Uri.parse("smsto:+999999999"); Intent mIntent = new Intent(Intent.ACTION_SENDTO, mUri); mIntent.setPackage("com.whatsapp"); mIntent.putExtra("sms_body", "The text goes here"); mIntent.putExtra("chat",true); startActivity(mIntent); The problem is that the parameter "sms_body" is not received on WhatsApp, though the contact is selected. Try using Intent.EXTRA_TEXT instead of sms_body as your extra key. Per WhatsApp's documentation, this is what you have to use. An example

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

旧城冷巷雨未停 提交于 2019-11-28 18:17:41
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 parameters/attribute values? This can be easily done now! You just need to use this format: <a href=

How does the web version of Whatsapp work on iOS devices considering the OS shuts apps in 30 seconds?

泄露秘密 提交于 2019-11-28 17:26:52
Now for those who don't know, can go to https://web.whatsapp.com/ and sync your Whatsapp chats by exchanging a QR code and chat via the web extension of the app. I am not interested in how they have an initial handshake( might be communicating with whatsapp servers) nor how they sync data so fast for chatting (might be using Open sockets directly from device to client). I am curious as to how the app works in Background on iOS . AFAIK running a background Intent Service is pretty simple. But not for iOS. iOS allows only up to 30 seconds after the app is shut down normally. 1) I tried crashing