Android Question out going messsages not going samsung

Makumbi

Well-Known Member
Licensed User
iam trying to send sms to my server using samsung galaxy a9 (sma900) but the message is not going please help where could the problem be . yer on other phones it goes well thanks

B4X:
        Dim j As HttpJob
            j.Initialize("", Me)
            j.Download($"http://kccug.com/KabojjaApp/RecieveSMS.ashx?customerId=${act}&s=${txtMessage.Text}&d=${DateTime.Date(l)& " "& DateTime.Time(now)}&id=${NewID}&ph=${phone}&f=${sx}"$ )
            Wait For (j) JobDone(j As HttpJob)
            If j.Success Then
                Log(j.GetString)
            End If
 

DonManfred

Expert
Licensed User
Longtime User
Where is the FULL ERROR?

I don´t see how we can help with this - LESS - Information
 
Upvote 0

Makumbi

Well-Known Member
Licensed User
Where is the FULL ERROR?

I don´t see how we can help with this - LESS - Information
there is no error with the code but my problem is why does the message on other phones go through and it refuses on this one yet it is the same app thanks
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
HOW could we help here? You are telling NOTHING about any further way or that the problem is not this call. So i guess the problem is in the webservice?

Is the job from #1 ended with SUCCESS = true?
If not: What is the error?

PS: You do not check the, maybe available error, in your code. WHY?
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
This is a long shot, but it looks like you are trying to connect to a non-ssl web service.

From what I remember, later versions of Android only allow connections to secure (https) websites by default and you need to add a line into the manifest to allow your app to make connections to http (non-ssl) website.

Maybe the Galaxy A9 is using a later version of android that has this restriction and the other copies of your app that are working are using an older version of android that does not have this restriction.

But I just spent 5 minutes searching and I can find the forum post that discusses this - so maybe I'm imagining this :)
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
Found it:


B4X:
- 28 - Non-ssl (non-https) communication is not permitted by default. It can be enabled in B4A v9+ by adding this line to the manifest editor:

 B4X:  CreateResourceFromFile(Macro, Core.NetworkClearText)1
 
Upvote 0
Top