Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sendSMS no longer launches to the SMS app

Tags:

codenameone

I have been developing and testing an app to update to the google play store as requested in this ongoing issue Google Play recent review notification - APK HAS A PROMINENT DISCLOSURE BUT THE DISCLOSURE IS NOT ADEQUATE

Whilst testing the app I have noticed that Display.getInstance().sendSMS(phoneNumber, message, true); no longer opens the default SMS app of the device. Previous builds before at least the 23rd of August last week did not have this issue and would open the phone permission prompt for the user to allow before launching to the SMS app. Display.getInstance().dial(phoneNumber); still works however. Has there been any recent change server side that would affect this? Will I need to add the permission manually somehow? Any help will be greatly appreciated.

like image 756
James N Avatar asked Dec 17 '25 14:12

James N


1 Answers

We're still dealing with the problem in the Google Play recent review notification - APK HAS A PROMINENT DISCLOSURE BUT THE DISCLOSURE IS NOT ADEQUATE issue so we're investigating a lot of things including the phone permission which we disabled by default to avoid a case of accidental activation.

To explicitly enable this you will now need the build hint android.readPhoneState=true.

like image 197
Shai Almog Avatar answered Dec 20 '25 11:12

Shai Almog



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!