Thanks for the comments, both....
John - those lines are already in the manifest, along with the intent definition - see above...
Both - I tried both John's suggestion and the alternate runtime permission suggested by your link Manfred.
The manifest also states android 26+
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
(b4a default I think)
The app does bring up the phone send and receive, and sms send and view dialogues to be accepted at runtime.
The sms send works on both phones, including delivered notifications etc.
logs, view permissions looks ok:
The difference is that on the Huawei, the sms receive intent does nothing. On the Samsung it works 100% every time.
Both phones are Android 9....
Is there some log kept in android that might show what causes the different 'intent' action result?
edit - this is now in activity_resume too:
For Each permission As String In Array(rp.PERMISSION_READ_PHONE_STATE, rp.PERMISSION_SEND_SMS,rp.PERMISSION_RECEIVE_SMS)
rp.CheckAndRequest(permission)
Wait For Activity_PermissionResult (permission As String, Result As Boolean)
If Result = False Then
ToastMessageShow("Permission fail", True)
Return
Else
ToastMessageShow("Permission ok", True)
End If
Next
Gets ok every time...
edit 2:
This is the log from the app on Samsung:
** Activity (main) Resume **
** Receiver (sms1) OnReceive **
*** Service (sms1) Create ***
hello
** Service (sms1) Start **
(Intent) Intent { act=android.provider.Telephony.SMS_RECEIVED flg=0x19000010 cmp=b4a.example/.sms1$sms1_BR (has extras) }
[Address=+447836350240, Body=Rty, IsInitialized=false]
That never happens on the Huawei when an sms is received.