Best Tech Blog-

How to

How To Integrate Whatsapp To Your Own App

Want create site? Find Free WordPress Themes and plugins.

For android developers only- Adding whatsapp to your app.

There are two ways to integrate with WhatsApp:

-Through a custom URL scheme
-Through Android’s intent system.

Custom URL Scheme

WhatsApp provides a custom URL scheme to interact with WhatsApp:

If you have a website and want to open a WhatsApp chat with a pre-filled message, you can use our custom URL scheme to do so. Opening whatsapp://send?text= followed by the text to send, will open WhatsApp, allow the user to choose a contact, and pre-fill the input field with the specified text.

Here is an example of how to write this on your website:

Hello, world!

Android intent system

Like most social apps on Android, WhatsApp listens to intents to share media and text. Simply create an intent to share text, for example, and WhatsApp will be displayed by the system picker:

Intent sendIntent = new Intent();
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");

However, if you prefer to share directly to WhatsApp and bypass the system picker, you can do so by using setpackage in your intent:


This would simply be set right before you call startActivity(sendIntent);

Similarly you can use Android’s intent system to send media through WhatsApp, once again, using setPackage to restrict the package to WhatsApp if you only want to send to WhatsApp.

Source: Whatsapp FAq

Did you find apk for android? You can find new Free Android Games and apps.
Click here to read  How To Format An Android Device Remotely With Android Device Manager
Phonefixer xyz isn't just about phone fixing only! Here, we give you: 1. Quality reviews of mobile devices. 2. Tech tips and tricks. 3. Blogger and adsense tricks. 4. How-to-dos on phones and laptops. 5. Cracked apps and softwares for download.

Buy Brand New Cheap Phones Today!

Copyright © 2017 Phonefixerxyz Theme. All Rights ReservedThemetf

To Top
%d bloggers like this: