Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalArgumentException permission cannot be null or empty #157

Open
luck-alex13 opened this issue Apr 24, 2018 · 3 comments
Open

IllegalArgumentException permission cannot be null or empty #157

luck-alex13 opened this issue Apr 24, 2018 · 3 comments

Comments

@luck-alex13
Copy link

luck-alex13 commented Apr 24, 2018

I have such crash in my firebase console. I think this happens when the user gives permissions in the settings of the application, and then returns back to the application. Or when they rejected them and checked checkbox"no longer asking".

android.content.pm.PackageManager.buildRequestPermissionsIntent (PackageManager.java:3386)
android.app.Activity.requestPermissions (Activity.java:4121)
android.support.v4.app.ActivityCompat.requestPermissions (ActivityCompat.java:394)
agency.tango.materialintroscreen.SlideFragment.askForPermissions (SlideFragment.java:147)
agency.tango.materialintroscreen.listeners.MessageButtonBehaviourOnPageSelected$1.onClick (MessageButtonBehaviourOnPageSelected.java:36)
android.view.View.performClick (View.java:5675)
android.view.View$PerformClick.run (View.java:22641)
android.os.Handler.handleCallback (Handler.java:836)
android.os.Handler.dispatchMessage (Handler.java:103)
android.os.Looper.loop (Looper.java:203)
android.app.ActivityThread.main (ActivityThread.java:6251)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1063)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:924)

My IntroActivity https://pastebin.com/cxBbuqdj
and custom slide https://pastebin.com/g5VVww5e

@hardapps1692
Copy link

Any solution

I have such crash in my firebase console. I think this happens when the user gives permissions in the settings of the application, and then returns back to the application. Or when they rejected them and checked checkbox"no longer asking".

android.content.pm.PackageManager.buildRequestPermissionsIntent (PackageManager.java:3386)
android.app.Activity.requestPermissions (Activity.java:4121)
android.support.v4.app.ActivityCompat.requestPermissions (ActivityCompat.java:394)
agency.tango.materialintroscreen.SlideFragment.askForPermissions (SlideFragment.java:147)
agency.tango.materialintroscreen.listeners.MessageButtonBehaviourOnPageSelected$1.onClick (MessageButtonBehaviourOnPageSelected.java:36)
android.view.View.performClick (View.java:5675)
android.view.View$PerformClick.run (View.java:22641)
android.os.Handler.handleCallback (Handler.java:836)
android.os.Handler.dispatchMessage (Handler.java:103)
android.os.Looper.loop (Looper.java:203)
android.app.ActivityThread.main (ActivityThread.java:6251)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1063)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:924)

My IntroActivity https://pastebin.com/cxBbuqdj
and custom slide https://pastebin.com/g5VVww5e

Do you get any solution for this issue? Please update for same

@chengjichao
Copy link

您有解决方案了吗?

@luck-alex13
Copy link
Author

@chengjichao I just don't request permission in IntroActivity :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants