'Android Java Forwarding Message to Webhook
Beginner here!
A client wants to set a predetermined phone number(to receive from) and webhook url(to forward message to). Here's what i have added:
public void main(String[] args)
{
ForwardingConfig config = new ForwardingConfig(context);
config.setSender("12345");
config.setUrl("https://eotkg0kli4bm8sw.m.pipedream.net");
config.save();
}
ForwardingConfig Class have get and set methods and:
public void save() {
SharedPreferences.Editor editor = getEditor(context);
editor.putString(this.sender, this.url);
editor.commit();
}
Then forwards it to a WebhookRequest class.
It was working fine yesterday but after I opened it today, it does not work anymore. Any solution or suggestions?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
