FAQ Database Discussion Community

Get source code of web.whatsapp.com

Is it possible to get the source code of web.whatsapp.com? $ch = curl_init("https://web.whatsapp.com/"); $fp = fopen("example_homepage.txt", "w"); curl_setopt($ch, CURLOPT_FILE, $fp); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); fclose($fp); It doesn't work. I also tried file_get_contents()....

Share to Whatsapp using ImageButton android

I wanna share text to whatsapp using ImageButton, but I don't know how to set the ImageButton to share the text. Here is my code ImageButton wasap = (ImageButton) findViewById(R.id.wasapKongsi); Intent whatsappIntent = new Intent(Intent.ACTION_SEND); whatsappIntent.setType("text/plain"); whatsappIntent.setPackage("com.whatsapp"); whatsappIntent.putExtra(Intent.EXTRA_TEXT, R.id.hadisView + "/n" + R.id.textView); try { startActivity(whatsappIntent); } catch (android.content.ActivityNotFoundException ex)...

PhoneGap and WhatsApp

I hope you'll can help me to find an issue to my problem. I'm developping an application who should use WhatsApp. This application is using HTML5, CSS3 and Javascript. I am using this link to send an message with WhatsApp : <a href="whatsapp://send?text=Test 1"> This link work perfectly when you...

Android Messaging app - Client - Server Communication

I want to write a private messaging app similar to Whats App. Smartphones with Android OS shall be the clients and communicating with one server. Now my question is how could that work out? I guess the best way would be via a Restful webservice as port forwarding is absolutely...

UIActivityViewController not passing new line characters to some activities

I am using the following code to set up UIActivityViewController: NSArray *activityItems = [NSArray arrayWithObjects:[self textMessageToShare], nil]; UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil]; [activityViewController setCompletionHandler:^(NSString *activityType, BOOL completed) { if (completed) { [self sendFeedbackWithIndexPath:indexPath AndLikeType:100 AndCell:nil]; } }]; [self.navigationController...

How can I integrate WhatsApp API in iOS app?, as I have to send a text to a particular WhatsApp user by pressing a button?

I am new to this kind of program in iOS. Basically, I have a text in a text field which i need to send to a particular WhatsApp contact directly by pressing a button.I saw WhatsApp FAQ which tells to use custom URL or iOS Document Interaction API, I don't...

Unable to identify WhatsApp contacts

I'm trying to write an Android program which can identify if a given contact number is associated with WhatsApp or not. I managed to find out if a particular contact name has WhatsApp account or not. How can I find out which contact corresponding to that contact name has WhatsApp?...

How do I execute a shell file?

I'm trying to download Whatsapp on my laptop. I am using Ubuntu desktop software. I've installed Android Emulator from http://dl.google.com/android/android-sdk_r16-linux.tgz I unzipped the file, opened the folder, Android-sdk-linux, opened Tools and now I'm supposed to execute the file Android, and I'm not sure how to do that. Can anyone give...

Run Cefsharp as Chrome

Is it possible to use CefSharp as 'Chrome'? I know, it is a kind of Chrome, but webpages doesn't see CefSharp as Chrome. The story: I want to embed WhatsApp Web with CefSharp, but Whatsapp says: Only Chrome supported. Are there any possibilities to 'fake' Chrome?

Whatsapp notifications on iPhone 6 plus

Hello Community Members, I am using iOS device (iPhone) with latest iOS version. When I get message from one of my contacts and screen is locked, WhatsApp shows that I got message from name (name it uses is set by user, and not as saved in my contacts) Example: If...

Share text AND media with WhatApp Share Extension

I'm using a UIActivityViewController to enable the user to share photos and videos created with my app. I attached two UIActivityItemProviders to it: one for the media and one for a default text to use ("Created with..."). This works well for all share extensions I tested—except for WhatsApp. WhatsApp only...

Share image ant text WhatsApp api iOS

I'm trying to share an image and a text with the api of WhatsApp but I'm unable to do it. To share an image I have this code: if([[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString:@"whatsapp://app"]]) { NSURL *documentURL = [[NSFileManager defaultManager] URLForDirectory:NSDocumentDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:NO error:nil]; NSURL *tempFile = [documentURL URLByAppendingPathComponent:@"whatsAppTmp.wai"]; NSData...

Match status bar colour with most predominant colour of art Material Design Android

I was wondering if there was some kind of library/api or way to match the status bar colour with some imagery just like in the Whatsapp material design update. Example here and here. Thanks in advance!...

Windows Phone Whatsap Share Text

Is possible to share text to WhatsApp app in Windows Phone? I found only way to run app. But how to share data like on Android or iOS? await Windows.System.Launcher.LaunchUriAsync(new Uri("whatsapp:")); ...

Check whatsapp online status

I've been asked to create a mobile application that checks the online status of selected whatsapp contacts, and notifies the user when the selected contact is online. I think this is possible, because it already exists another app that uses the same information and it works at least for someone:...

Ruby: Convert
to newline URI encode

I want to share sometext on whatsapp so I'm converting html to text otherwise it displays all the tags. Currently I'm using strip_tags to remove tags but that also removes breaks from the text. How do I convert html to text and convert breaks to newline characters and url encode...

How to create a whatsapp like recording button with slide to cancel

As in whatsapp I need a recoding button and a slide to cancel and fade animation , I have searched for similar code but didn't got one. I am new to android programming any help or link could be helpful.

How can I share a picture from my application to Whatsapp?

I`ve searched a few solutions here but only for iOS. How can I share a picture from my Android application to Whatsapp?

building a whatsapp client for android

Is it possible to build a whatsapp client for android? I came across the Yowsup project for building a whatsapp client for pc and I wonder if there is something like that for android too. Thanks ahead Edit: Is there any way to build the client with the Yowsup library...

UIDocumentInreactionController won't allow NSURL for .URL (Swift)

I'm basically taking a screenshot of a view, saving it to my camera roll , getting the NSURL path and exporting to Whatsapp //Create the UIImage UIGraphicsBeginImageContext(view.frame.size) view.layer.renderInContext(UIGraphicsGetCurrentContext()) let image = UIGraphicsGetImageFromCurrentImageContext() UIGraphicsEndImageContext() //Save it to camera roll round 2 var library = ALAssetsLibrary() library.writeImageToSavedPhotosAlbum(image.CGImage, metadata: nil, completionBlock: { (path:NSURL!,...

how to text with image share on intent in android?

I want to share image with text via intent. not a image whole or text differtent. see this is my code: Uri imageUri = Uri.parse("android.resource://" + getPackageName() + "/drawable/app_icon"); String shareTxt = "Hey, now this is image "+ imageUri + " text."; Intent shareIntent = new Intent(); shareIntent.setAction(Intent.ACTION_SEND); shareIntent.putExtra(Intent.EXTRA_TEXT, shareTxt);...