James N
James N

Reputation: 511

sendSMS no longer launches to the SMS app

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.

Upvotes: 3

Views: 75

Answers (1)

Shai Almog
Shai Almog

Reputation: 52770

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.

Upvotes: 3

Related Questions