Android Question WhatsApp Library by MarcoRome

AlpVir

Well-Known Member
Licensed User
Longtime User
I refer to the library in subject and to the request of many people to send the same message to multiple contacts.
https://www.b4x.com/android/forum/threads/whatsapp-library.51571/#content
This would seem impossible, reading the post numbers dedicated to this.
However, note that since the library was created, WhatsApp has added the Broadcast feature that, if inserted in this library, could solve the above problem.
I'm wrong?
Personally I would need to send a very short message to the contacts whose check box is selected (see attached picture). I can do it for column 1 (Email) and column 2 (SMS) but not for column 3 (WhatsApp).
An integration / update of the library would be highly appreciated.
 

Attachments

  • wap.jpg
    wap.jpg
    77.6 KB · Views: 521

Star-Dust

Expert
Licensed User
Longtime User
You have to see if WhatsApp has made APIs available to use these features.
Some APIs have been disabled for security reasons. For example, you can not send a notification to a specific contact from APP. But you can send a message that opens the WA panel and select the contact. Or vice versa, choose contact from the app but do not prefix the text from app.

This is because listening to notifications can intercept the received messages and send them back to another contact. Actually a spyware.

So some APIs have been disabled.
 
Upvote 0

AlpVir

Well-Known Member
Licensed User
Longtime User
I could not find any APIs that matter to me.
The following code sends a message to WhatApp. Then start WhatsApp and only then the user selects the recipient, only one. Does not use libraries.
B4X:
Dim i As Intent
    i.Initialize(i.ACTION_SEND, "")
    i.PutExtra("android.intent.extra.TEXT", "TEST 2 bla bla bla")
    i.SetType("text/plain")
    Dim jo As JavaObject = i
    jo.RunMethod("setPackage", Array("com.whatsapp"))
    StartActivity(i)
I would like to send to 5 or 6 contacts a single message, interacting as little as possible with WhatsApp.
Through my app I would create the message and choose (with the various check boxes) the recipients.
That's what I'd like to do.
It will be possible ?
 
Upvote 0

AlpVir

Well-Known Member
Licensed User
Longtime User
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
On official website there are codes for developers.
The API to send specific code that worked until a few years ago now does not work anymore.

However you see the official site
This is the link: https://faq.whatsapp.com/en/android/28000012

Many Projects on GitHub now no longer work the change that WhatsApp has done
 
Last edited:
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Thank you
News a bit daunting !
But if you find a solution .... we know we have many pending projects ....

One of them is a SpyWare for WhatsApp :p
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
There are also non-original versions of whatsapps that use the protocol without having permission.
WhatsApp ascertains the use of non-original apps definitively delivers the phone number.

There will be unofficial ways, I do not know them and I do not advice
 
Upvote 0
Top