ibnux / Android-SMS-Gateway

Make android as SMS Gateway using Firebase push
Apache License 2.0
120 stars 63 forks source link

Backend problems #3

Closed tecufanujacu closed 3 years ago

tecufanujacu commented 3 years ago

The backend doesn't seem to work.

$firebasekey shouldn't be called as global in function sendPush?

firebasekey have to be generated in firebase console at this link: https://console.firebase.google.com/ ?

If I correctly understood the steps anyway I have an error with the backend: {"multicast_id":xxxxxxxxxxxxxxxxxxx,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]}

Please could you provide more info about how to use it?

ibnux commented 3 years ago

Yes, i forgot about that

i update it https://github.com/ibnux/Android-SMS-Gateway/commit/2a253e342af58939ddc49dde7a6d82cabe4c7c6d

tecufanujacu commented 3 years ago

And what about the error MismatchSenderId? I'm still having it.

ibnux commented 3 years ago

You need to create firebase project And add .json file to android project

And server key in php Must the same project

From Android studio Goto Tools -> Firebase Connect to firebase Add Firebase messaging

tecufanujacu commented 3 years ago

Oh yes, I only now checked this: https://github.com/ibnux/Android-SMS-Gateway/blob/master/app/build.gradle

Sorry. I have also opened an issue about not outgoing sms.

Postedit

It works, the problem was my default sms app. It's wonderful, thanks a lot. Great work.

Now I'll recompile the app for my backend.

Thank you.