Telephony icon indicating copy to clipboard operation
Telephony copied to clipboard

Not receiving msg in real device

Open imsidz opened this issue 2 years ago • 12 comments

Everything is working fine in emulator but after build in release version installing any device its not receiving msg

imsidz avatar Oct 08 '22 14:10 imsidz

Make sure to add appropriate permissions to the manifest file.

erndiggy avatar Oct 08 '22 23:10 erndiggy

I have this error too

<uses-permission android:name="android.permission.RECEIVE_SMS"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.READ_SMS"/> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.READ_PHONE_NUMBERS"/>

I have all permissions and receiver

msaadev avatar Oct 11 '22 20:10 msaadev

anyone find the solution ?

jktan-arrivo avatar Nov 01 '22 13:11 jktan-arrivo

yes, with some devices it works, with others not, even samsung, not just xiaomi

virtualars avatar Nov 03 '22 13:11 virtualars

I write my codes in native side when message comes

msaadev avatar Nov 06 '22 11:11 msaadev

@msaadev can you give us some example ?

jktan-arrivo avatar Nov 10 '22 03:11 jktan-arrivo

This problem is very annoying. The only problem is not working in the background. Following all the points, but still there is this problem. There is no solution for this problem? This plugin is very useful but this is the problem I'm facing, I still haven't found a tool that supports in the background when sms is found.

This plugin is no longer active, do you know a good alternative for it? Or a solution that fixes the problem?

MohammadShateri avatar Nov 13 '22 06:11 MohammadShateri

I had to change plugins, I found a very similar one, it doesn't ask for permissions automatically, so you need to install permission handler, but it works fine

virtualars avatar Nov 14 '22 09:11 virtualars

@virtualars Does it really work on a real device? If it works on a real device, it will be great. Thank you for introducing this package to me to solve this problem. 🙏🌹

MohammadShateri avatar Nov 15 '22 06:11 MohammadShateri

@virtualars Does it really work on a real device? If it works on a real device, it will be great. Thank you for introducing this package to me to solve this problem. 🙏🌹

https://pub.dev/packages/background_sms

virtualars avatar Nov 15 '22 06:11 virtualars

@virtualars Does it really work on a real device? If it works on a real device, it will be great. Thank you for introducing this package to me to solve this problem. 🙏🌹

https://pub.dev/packages/background_sms

thanks. hope you can share us some sample code for using this package

jktan-arrivo avatar Dec 21 '22 04:12 jktan-arrivo

I am trying solution mentioned in https://github.com/shounakmulay/Telephony/issues/165

telephony:
  git:
    url: https://github.com/definev/Telephony.git
    ref: develop

change is adding @pragma('vm:entry-point') to telephony.dart method

Not sure if and when it will merged to original package.

rahulmaindargi avatar Dec 23 '22 05:12 rahulmaindargi