nikhilmuz / WhatsApp-Bulk-Sender

Send bulk messages right from your WhatsApp Android Client or WhatsApp Web
MIT License
243 stars 121 forks source link

App is getting crashed when I click send button #41

Open akhilnaidu101 opened 4 years ago

akhilnaidu101 commented 4 years ago

I created the CSV in the required format but when I click send it crashes. accessibility permission is also given. Android 10

nikhilmuz commented 4 years ago

Open .csv in notepad or any text editor and compare with one in repository. There must be format error in .csv.

On Thu, 16 Jul, 2020, 16:17 akhilnaidu101, notifications@github.com wrote:

I created the CSV in the required format but when I click send it crashes. accessibility permission is also given. Android 10

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nikhilmuz/WhatsApp-Bulk-Sender/issues/41, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZUYF27OAEDSUBU7GTK4XLR33LDXANCNFSM4O4AOPHQ .

akhilnaidu101 commented 4 years ago

I checked, still not working

nikhilmuz commented 4 years ago

Have you tried with one in the example directory? Still crashing?

On Thu, 16 Jul, 2020, 17:51 akhilnaidu101, notifications@github.com wrote:

I checked, still not working

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nikhilmuz/WhatsApp-Bulk-Sender/issues/41#issuecomment-659375105, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZUYF5N5WALNQVBKABQRELR33WGBANCNFSM4O4AOPHQ .

akhilnaidu101 commented 4 years ago

Just tried. Same issue. here's brief: First time when I click send button the app closes and nothing happens and then I open it again it shows below not permitted :( and when I select file again and send it crashes.

nikhilmuz commented 4 years ago

not permitted :( this message appears while pinging with the network to check if the app is to the latest version. Also, I am unable to reproduce on Android 10 with the CSV in this repository. It would be better if I get relevant logcat from ADB.

akhilnaidu101 commented 4 years ago

ok, Check this out: 07-16 17:59:35.306 630 630 E AndroidRuntime: Process: ga.nikhilkumar.whatsappsender, PID: 630 07-16 17:59:35.306 630 630 E AndroidRuntime: java.lang.RuntimeException: Unable to start service ga.nikhilkumar.whatsappsender.WASenderFgSvc@16db8b9 with Intent { cmp=ga.nikhilkumar.whatsappsender/.WASenderFgSvc (has extras) }: java.lang.SecurityException: Permission Denial: startForeground from pid=630, uid=10754 requires android.permission.FOREGROUND_SERVICE 07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4434) 07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.ActivityThread.access$2100(ActivityThread.java:272) 07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087) 07-16 17:59:35.306 630 630 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107) 07-16 17:59:35.306 630 630 E AndroidRuntime: at android.os.Looper.loop(Looper.java:237) 07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8016) 07-16 17:59:35.306 630 630 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 07-16 17:59:35.306 630 630 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 07-16 17:59:35.306 630 630 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076) 07-16 17:59:35.306 630 630 E AndroidRuntime: Caused by: java.lang.SecurityException: Permission Denial: startForeground from pid=630, uid=10754 requires android.permission.FOREGROUND_SERVICE 07-16 17:59:35.306 630 630 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:2088) 07-16 17:59:35.306 630 630 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2056) 07-16 17:59:35.306 630 630 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2004) 07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:6985) 07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.Service.startForeground(Service.java:707) 07-16 17:59:35.306 630 630 E AndroidRuntime: at ga.nikhilkumar.whatsappsender.WASenderFgSvc.onStartCommand(WASenderFgSvc.java:65) 07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4416) 07-16 17:59:35.306 630 630 E AndroidRuntime: ... 8 more 07-16 17:59:35.306 630 630 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace: 07-16 17:59:35.306 630 630 E AndroidRuntime: at com.android.server.am.ActivityManagerService.enforcePermission(ActivityManagerService.java:7440) 07-16 17:59:35.306 630 630 E AndroidRuntime: at com.android.server.am.ActiveServices.setServiceForegroundInnerLocked(ActiveServices.java:1354) 07-16 17:59:35.306 630 630 E AndroidRuntime: at com.android.server.am.ActiveServices.setServiceForegroundLocked(ActiveServices.java:1005) 07-16 17:59:35.306 630 630 E AndroidRuntime: at com.android.server.am.ActivityManagerService.setServiceForeground(ActivityManagerService.java:16562) 07-16 17:59:35.306 630 630 E AndroidRuntime: at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3202) 07-16 17:59:35.306 630 630 E AndroidRuntime: 07-16 19:37:19.500 11353 11353 E AndroidRuntime: FATAL EXCEPTION: main 07-16 19:37:19.500 11353 11353 E AndroidRuntime: Process: ga.nikhilkumar.whatsappsender, PID: 11353 07-16 19:37:19.500 11353 11353 E AndroidRuntime: java.lang.RuntimeException: Unable to start service ga.nikhilkumar.whatsappsender.WASenderFgSvc@9970408 with Intent { cmp=ga.nikhilkumar.whatsappsender/.WASenderFgSvc (has extras) }: java.lang.SecurityException: Permission Denial: startForeground from pid=11353, uid=10754 requires android.permission.FOREGROUND_SERVICE 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4434) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.ActivityThread.access$2100(ActivityThread.java:272) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.os.Looper.loop(Looper.java:237) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8016) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: Caused by: java.lang.SecurityException: Permission Denial: startForeground from pid=11353, uid=10754 requires android.permission.FOREGROUND_SERVICE 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:2088) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2056) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2004) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:6985) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.Service.startForeground(Service.java:707) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at ga.nikhilkumar.whatsappsender.WASenderFgSvc.onStartCommand(WASenderFgSvc.java:65) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4416) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: ... 8 more 07-16 19:37:19.500 11353 11353 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace: 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at com.android.server.am.ActivityManagerService.enforcePermission(ActivityManagerService.java:7440) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at com.android.server.am.ActiveServices.setServiceForegroundInnerLocked(ActiveServices.java:1354) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at com.android.server.am.ActiveServices.setServiceForegroundLocked(ActiveServices.java:1005) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at com.android.server.am.ActivityManagerService.setServiceForeground(ActivityManagerService.java:16562) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3202) 07-16 19:37:19.500 11353 11353 E AndroidRuntime: 07-16 19:37:20.770 14603 14603 E AndroidRuntime: FATAL EXCEPTION: main 07-16 19:37:20.770 14603 14603 E AndroidRuntime: Process: ga.nikhilkumar.whatsappsender, PID: 14603 07-16 19:37:20.770 14603 14603 E AndroidRuntime: java.lang.RuntimeException: Unable to start service ga.nikhilkumar.whatsappsender.WASenderFgSvc@c3f0d69 with Intent { cmp=ga.nikhilkumar.whatsappsender/.WASenderFgSvc (has extras) }: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND typ=text/plain flg=0x10000001 pkg=com.whatsapp.w4b clip={text/plain T:Enjoy} (has extras) } 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4434) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ActivityThread.access$2100(ActivityThread.java:272) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.os.Looper.loop(Looper.java:237) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8016) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND typ=text/plain flg=0x10000001 pkg=com.whatsapp.w4b clip={text/plain T:Enjoy} (has extras) } 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2071) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1717) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ContextImpl.startActivity(ContextImpl.java:1000) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ContextImpl.startActivity(ContextImpl.java:971) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.content.ContextWrapper.startActivity(ContextWrapper.java:389) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at ga.nikhilkumar.whatsappsender.WASenderFgSvc.send(WASenderFgSvc.java:117) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at ga.nikhilkumar.whatsappsender.WASenderFgSvc.onStartCommand(WASenderFgSvc.java:89) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4416) 07-16 19:37:20.770 14603 14603 E AndroidRuntime: ... 8 more

nikhilmuz commented 4 years ago

Thanks for sharing will check it out in a while.

akhilnaidu101 commented 4 years ago

ok, Thank you

nikhilmuz commented 4 years ago

looks the app you are using is too old and ain't compiled from latest source at master branch. ensure the following line is there in AndroidManifest.xml <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> and then compile the release build using gradle.

akhilnaidu101 commented 4 years ago

Can you please send me the latest compiled apk. Thank you.

On Fri, 17 Jul 2020, 12:20 am Nikhil Kumar, notifications@github.com wrote:

looks the app you are using is too old and ain't compiled from latest source at master branch. ensure the following line is there in AndroidManifest.xml

and then compile the release build using gradle.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nikhilmuz/WhatsApp-Bulk-Sender/issues/41#issuecomment-659602194, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3YJD4IVUGY5P2BAMB5KPDR35DWTANCNFSM4O4AOPHQ .

tauseefshams commented 4 years ago

The same request from me also "Can you please send me the latest compiled apk. Thank you." Tauseef VIDICOM ENTERPRISES www.vidicomindia.com 09769642009 02265335699

On Fri, 17 Jul 2020 at 05:43, akhilnaidu101 notifications@github.com wrote:

Can you please send me the latest compiled apk. Thank you.

On Fri, 17 Jul 2020, 12:20 am Nikhil Kumar, notifications@github.com wrote:

looks the app you are using is too old and ain't compiled from latest source at master branch. ensure the following line is there in AndroidManifest.xml

and then compile the release build using gradle.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/nikhilmuz/WhatsApp-Bulk-Sender/issues/41#issuecomment-659602194 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AF3YJD4IVUGY5P2BAMB5KPDR35DWTANCNFSM4O4AOPHQ

.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nikhilmuz/WhatsApp-Bulk-Sender/issues/41#issuecomment-659747479, or unsubscribe https://github.com/notifications/unsubscribe-auth/APQOP7YURMK7GCOBAWNKAJTR36JRNANCNFSM4O4AOPHQ .

alwinsajip commented 4 years ago

HAVE YOU GOT THE LATEST APKs AND SOLVED YOUR PROBLEMS. I TOO HAVE THIS PROBLEM PLEASE CAN YOU HELP ME.

ravi2143 commented 3 years ago

I have the same issue, but I solved by following sample csv file, and contact should be in number format.

nikhilmuz commented 3 years ago

Nice to know you solved the issue.

On Mon, Oct 26, 2020, 13:26 ravi2143 notifications@github.com wrote:

I have the same issue, but I solved by following sample csv file, and contact should be in number format.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nikhilmuz/WhatsApp-Bulk-Sender/issues/41#issuecomment-716378144, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZUYF4OL3NGNUTRYY5CPTLSMUTUVANCNFSM4O4AOPHQ .

patelnisheet commented 3 years ago

Can you please send me the latest compiled apk. Thank you. On Fri, 17 Jul 2020, 12:20 am Nikhil Kumar, @.***> wrote: looks the app you are using is too old and ain't compiled from latest source at master branch. ensure the following line is there in AndroidManifest.xml and then compile the release build using gradle. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#41 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3YJD4IVUGY5P2BAMB5KPDR35DWTANCNFSM4O4AOPHQ .

Hey, have you checked latest version apk? Would you mind to send it to me on nishitpatel2712@gmail.com

ambtechfirebase commented 3 years ago

i need a demo like these if you can make it i will paid you. Mail me : ambtechfirebase@gmail.com

daljeet175 commented 3 years ago

Mobile number : - 7717744914

Please resolve below issue this error comes when click the send button...........

java.lang.RuntimeException: Unable to start service ga.nikhilkumar.whatsappsender.WASenderFgSvc@10e9f78 with Intent { cmp=ga.nikhilkumar.whatsappsender/.WASenderFgSvc (has extras) }: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4017) at android.app.ActivityThread.access$1800(ActivityThread.java:233) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1912) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:233) at android.app.ActivityThread.main(ActivityThread.java:7225) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:962) Caused by: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 at ga.nikhilkumar.whatsappsender.WASenderFgSvc.send(WASenderFgSvc.java:105) at ga.nikhilkumar.whatsappsender.WASenderFgSvc.onStartCommand(WASenderFgSvc.java:88) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3984) at android.app.ActivityThread.access$1800(ActivityThread.java:233)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1912)  at android.os.Handler.dispatchMessage(Handler.java:106)  at android.os.Looper.loop(Looper.java:233)  at android.app.ActivityThread.main(ActivityThread.java:7225)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:962)  D/Parcel: Parcel 0x7c5b01cf00: freeing with 4014 capacity

nikhilmuz commented 2 years ago

Seems you haven't given accessibility permission to the app.

On Tue, Oct 5, 2021 at 8:30 AM daljeet175 @.***> wrote:

Mobile number : - 7717744914

Please resolve below issue this error comes when click the send button...........

java.lang.RuntimeException: Unable to start service @.*** with Intent { cmp=ga.nikhilkumar.whatsappsender/.WASenderFgSvc (has extras) }: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4017) at android.app.ActivityThread.access$1800(ActivityThread.java:233) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1912) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:233) at android.app.ActivityThread.main(ActivityThread.java:7225) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:962) Caused by: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 at ga.nikhilkumar.whatsappsender.WASenderFgSvc.send(WASenderFgSvc.java:105) at ga.nikhilkumar.whatsappsender.WASenderFgSvc.onStartCommand(WASenderFgSvc.java:88) at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3984) at android.app.ActivityThread.access$1800(ActivityThread.java:233) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1912) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:233) at android.app.ActivityThread.main(ActivityThread.java:7225) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:962) D/Parcel: Parcel 0x7c5b01cf00: freeing with 4014 capacity

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nikhilmuz/WhatsApp-Bulk-Sender/issues/41#issuecomment-934017611, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZUYF5SL3CGZF7TJ7VJMYLUFJS6VANCNFSM4O4AOPHQ .