Diego Marcelo Croatto Member Licensed User Longtime User Jul 10, 2019 #1 Hi... I'm was write a time ago an application to intercomunicate a phone with a device and the program work ok with this line in the manifest: <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19"/> in a new version of B4a (8.50) the I cant compile anymore and the compiler tell me change the number 19 to other upper with this line... the SMS intercept don't work anymore: <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="24"/> I'm using the Phone library and dis functions --> StartService(smsmodule) Any sugerence?.... thank's a lot
Hi... I'm was write a time ago an application to intercomunicate a phone with a device and the program work ok with this line in the manifest: <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19"/> in a new version of B4a (8.50) the I cant compile anymore and the compiler tell me change the number 19 to other upper with this line... the SMS intercept don't work anymore: <uses-sdk android:minSdkVersion="5" android:targetSdkVersion="24"/> I'm using the Phone library and dis functions --> StartService(smsmodule) Any sugerence?.... thank's a lot
hatzisn Expert Licensed User Longtime User Jul 10, 2019 #2 Google has restricted access to SMS unless you set your application as the default sms app. Upvote 0
Diego Marcelo Croatto Member Licensed User Longtime User Jul 10, 2019 #3 Thanks Hatzisn ...And... how I can do this?.... in the new version of b4a is resolve it or it's the same? Upvote 0
Thanks Hatzisn ...And... how I can do this?.... in the new version of b4a is resolve it or it's the same?
janderkan Well-Known Member Licensed User Longtime User Jul 10, 2019 #4 You have to make your customers change their default SMS app to your app. I think that to do that your sms app should be better than the default. Bottom line, SMS is dead. Upvote 0
You have to make your customers change their default SMS app to your app. I think that to do that your sms app should be better than the default. Bottom line, SMS is dead.
Diego Marcelo Croatto Member Licensed User Longtime User Jul 10, 2019 #5 And..... what is the solution to transmit and recive data over long long distances? (I Don't live in a firs world country ) Upvote 0
And..... what is the solution to transmit and recive data over long long distances? (I Don't live in a firs world country )
mangojack Expert Licensed User Longtime User Jul 11, 2019 #6 Diego Marcelo Croatto said: And..... what is the solution to transmit and recive data over long long distances? (I Don't live in a firs world country ) Click to expand... possible solution .. https://www.b4x.com/android/forum/t...-messages-firebase-cloud-messaging-fcm.67716/ Upvote 0
Diego Marcelo Croatto said: And..... what is the solution to transmit and recive data over long long distances? (I Don't live in a firs world country ) Click to expand... possible solution .. https://www.b4x.com/android/forum/t...-messages-firebase-cloud-messaging-fcm.67716/
hatzisn Expert Licensed User Longtime User Jul 11, 2019 #7 There is also a workaround for SMS if you just want to receive the SMSs and not send. Use the NotificationListener and (at least for SAMSUNG) you can get the SMSs into your app as notifications. For SAMSUNG it is tested and it works. I wonder if it works for other phones also. Please do inform us about that. An other possible solution would be MQTT. Last edited: Jul 11, 2019 Upvote 0
There is also a workaround for SMS if you just want to receive the SMSs and not send. Use the NotificationListener and (at least for SAMSUNG) you can get the SMSs into your app as notifications. For SAMSUNG it is tested and it works. I wonder if it works for other phones also. Please do inform us about that. An other possible solution would be MQTT.
Diego Marcelo Croatto Member Licensed User Longtime User Jul 11, 2019 #8 I need send and receive data (control) from a remote board with an AiThinker A7 GPS/GSM/GPRS module all this controlled over a Android phone. The fastest solution was Sms but... when I finish the project in a 85% .... Google change the way ... I must learn more options!.... Thank's to every coding people! Upvote 0
I need send and receive data (control) from a remote board with an AiThinker A7 GPS/GSM/GPRS module all this controlled over a Android phone. The fastest solution was Sms but... when I finish the project in a 85% .... Google change the way ... I must learn more options!.... Thank's to every coding people!
P pamoxi Member Licensed User Longtime User Jul 11, 2019 #9 hatzisn said: Google has restricted access to SMS unless you set your application as the default sms app. Click to expand... janderkan said: You have to make your customers change their default SMS app to your app. I think that to do that your sms app should be better than the default. Bottom line, SMS is dead. Click to expand... For example WhatsApp is not the default sms application, however it intercepts and reads sms messages. If the application uses an SMS library, the user must give permission to the application at the time of installation, when asked. Upvote 0
hatzisn said: Google has restricted access to SMS unless you set your application as the default sms app. Click to expand... janderkan said: You have to make your customers change their default SMS app to your app. I think that to do that your sms app should be better than the default. Bottom line, SMS is dead. Click to expand... For example WhatsApp is not the default sms application, however it intercepts and reads sms messages. If the application uses an SMS library, the user must give permission to the application at the time of installation, when asked.
Diego Marcelo Croatto Member Licensed User Longtime User Jul 13, 2019 #10 And... if dont ask for permission at instalation process? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 14, 2019 #11 Diego Marcelo Croatto said: in a new version of B4a (8.50) the I cant compile anymore and the compiler tell me change the number 19 to other upper Click to expand... This is just a warning. It has nothing to do with being able to compile. pamoxi said: For example WhatsApp is not the default sms application, however it intercepts and reads sms messages. If the application uses an SMS library, the user must give permission to the application at the time of installation, when asked. Click to expand... Are you sure that Whatsapp is doing anything with regular SMS messages? You cannot ask for permissions during installation. Only at runtime: https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/ Upvote 0
Diego Marcelo Croatto said: in a new version of B4a (8.50) the I cant compile anymore and the compiler tell me change the number 19 to other upper Click to expand... This is just a warning. It has nothing to do with being able to compile. pamoxi said: For example WhatsApp is not the default sms application, however it intercepts and reads sms messages. If the application uses an SMS library, the user must give permission to the application at the time of installation, when asked. Click to expand... Are you sure that Whatsapp is doing anything with regular SMS messages? You cannot ask for permissions during installation. Only at runtime: https://www.b4x.com/android/forum/threads/runtime-permissions-android-6-0-permissions.67689/
kisoft Well-Known Member Licensed User Longtime User Jul 14, 2019 #12 Maybe Whatsapp has received permission from Google to send and receive SMS messages. This is possible, but you must submit a request to google. Upvote 0
Maybe Whatsapp has received permission from Google to send and receive SMS messages. This is possible, but you must submit a request to google.