Closed sergibh closed 7 years ago
Hi,
Have you got all the permissions below in your manifest additions?
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
Hi, yes I have them
<android>
<colorDepth>16bit</colorDepth>
<manifestAdditions><![CDATA[
<manifest android:installLocation="auto">
<!--The new Permission thing on Android works ONLY if you are targetting Android SDK 23 or higher-->
<uses-sdk android:targetSdkVersion="23"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.WRITE_SMS"/>
<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.READ_SMS"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<application>
<activity android:name="com.distriqt.extension.contacts.activities.ContactPickerActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<activity android:name="com.distriqt.extension.contacts.permissions.AuthorisationActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<activity android:name="com.distriqt.extension.message.permissions.AuthorisationActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<activity android:name="com.distriqt.extension.message.activities.SendMailActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"></activity>
<activity android:name="com.distriqt.extension.message.activities.ShareActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"></activity>
<receiver android:name="com.distriqt.extension.message.receivers.MessageSMSReceiver" android:exported="true" >
<intent-filter android:priority="1000">
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
</application>
</manifest>
]]></manifestAdditions>
</android>
<iPhone>
<InfoAdditions><![CDATA[
<!--iOS 8.0 or higher can support this ANE-->
<key>MinimumOSVersion</key>
<string>8.0</string>
<key>UIDeviceFamily</key>
<array>
<string>1</string>
<string>2</string>
</array>
<!-- Contacts -->
<key>NSContactsUsageDescription</key>
<string>App can select a contact to get his phone number</string>
]]></InfoAdditions>
<requestedDisplayResolution>high</requestedDisplayResolution>
</iPhone>
<extensions>
<extensionID>com.distriqt.Message</extensionID>
<extensionID>com.distriqt.Contacts</extensionID>
<extensionID>com.distriqt.Core</extensionID>
<extensionID>com.distriqt.androidsupport.V4</extensionID>
</extensions>
</application>
Hi,
Does the authorisation request succeed when you don't include the Contacts ANE? Just wondering if there's a conflict there somewhere.
Have you only tested on Android 6.0?
Hi, I have removed contacts ANE and checked again, but same issue occurred. I have tested in 2 devices with 6.0.1 and one more with 6.0
Could you post the debug logs from the device? Appears you've only posted the info/warnings/errors above?
Attach it logcat.txt
Hi,
Looks like you've missed the android.permission.RECEIVE_SMS
permission?
I am not using this feature, is necessary to add this permission?
Currently yes, we haven't separated the SMS receive functionality from the send.
Thanks mate, Now seems that is working perfectly
Hi, I am using your current version (v5.2) and when run my app on android with SDK 23 or above (I could test in 2 devices with version 6.0), app shows me the dialog to check the permission, I mark the SMS permission, but in code I always get "denied" despite I grantted it, and hasAuthorisation() always returns false. Attach code I am using, console log and logcat