mirror of
https://github.com/NdoleStudio/httpsms.git
synced 2026-04-26 11:25:49 +03:00
[GH-ISSUE #23] configure api url in android app (to use custom endpoints) #4
Labels
No labels
In Review
documentation
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/httpsms#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @michabbb on GitHub (Oct 6, 2022).
Original GitHub issue: https://github.com/NdoleStudio/httpsms/issues/23
hi there,
thanks for this great work and for making it public!! ❤️
I am searching for a way to forward SMS to my very own API.
if I am correct, this line of code sets the URL of the server the android app is talking to:
github.com/NdoleStudio/httpsms@9374001de0/android/app/src/main/java/com/httpsms/HttpSmsApiService.kt (L19)is that correct ? i would like to use my webserver (PHP) to process incoming SMS.
for that it would be amazing if I could configure that URL. i am not an android developer
so changing that URL and start compiling my very first kotlin app is nothing I am really excited about 😁
so maybe there is a chance, you could make that URL configurable in the android app but keep it as default,
so nothing changes for a regular user, but someone like me, would be able to push the information to my own server.
i would be very happy, if you would be open that idea.
thanks,
micha
@AchoArnold commented on GitHub (Oct 7, 2022):
Hello @michabbb
Yep, that's the only URL that needs to change. It's not that difficult to compile the project. Download the "Android Studio" application and make the change to that file and that's it.
I'm not a kotlin developer too. Before this project, I had NEVER used kotlin in my life.
I could also make it such that my web server forwards the incoming SMS to your webhook endpoint. This is easier than changing the URL. Because if you change the URL then you'll have to implement all the outgoing and incoming sms logic yourself.
I'll keep this ticket open, so I can implement this in the future.
@michabbb commented on GitHub (Oct 7, 2022):
thanks a lot for your quick reply. the main point is to become independent, if your server is still part of the game, my project would be dead if something on your side would be broken or you or your webserver would be unavailable, doesn´t matter what the reasons are or if you stop developing this project tomorrow 😕 in my case I only need incoming SMS, so I don´t see any problems processing the request the android app pushes to the webserver, that´s the only part I really need, a simple SMS forwarder, nothing more.
if would be happy to donate to this project in case it helps to make that feature work very soon 😏 🍺
@AchoArnold commented on GitHub (Oct 7, 2022):
I understand your use case completely, It seems like a fun weekend project. Fingers crossed you may have something on your hands by Monday 🤞
@AchoArnold commented on GitHub (Oct 8, 2022):
Hello @michabbb,
Try the latest APK https://github.com/NdoleStudio/httpsms/releases/tag/v0.0.1.
You can set your server URL when logging in. Make sure to implement the
/v1/users/meendpoint on your PHP server since we need this endpoint to log in. Documentation can be found here https://api.httpsms.com/index.html#/Users/get_users_me@michabbb commented on GitHub (Oct 11, 2022):
@AchoArnold amazing, i will test it asap and let you know 😊
@michabbb commented on GitHub (Oct 11, 2022):
@AchoArnold so my server just has to response with a result like this:
correct ?
are any values from that response "fixed" or can I just use random data ?
@AchoArnold commented on GitHub (Oct 11, 2022):
Yes this response wil be fine . The response is not fixed only the JSON schema. You can use what ever values you want
@michabbb commented on GitHub (Oct 11, 2022):
okay, great, will try ! 💪
@michabbb commented on GitHub (Oct 13, 2022):
@AchoArnold just wanted to let you know, that i was successfully able to make some tests and it seems to work. your app pushed the SMS directly to my server, amazing !! thank you so much for your work!! i really hope this project stays alive for a long time 😊
@AchoArnold commented on GitHub (Oct 15, 2022):
Cool. happy it all worked out!