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

[Android] App crash on release version. RN 0.27 #9428

Closed
karkb opened this Issue Aug 16, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@karkb

karkb commented Aug 16, 2016

E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
                                               Process: com.mypackage, PID: 23260
                                               com.facebook.react.modules.core.JavascriptException: undefined is not an object (evaluating 'a.requestPermissions'), stack:
                                               value@392:1766
                                               notification@817:163
                                               <unknown>@13:377
                                               o@2:517
                                               e@2:326
                                               i@2:188
                                               <unknown>@12:32
                                               o@2:517
                                               e@2:256
                                               i@2:188
                                               global code@819:9

                                                   at com.facebook.react.modules.core.ExceptionsManagerModule.showOrThrowError(ExceptionsManagerModule.java:90)
                                                   at com.facebook.react.modules.core.ExceptionsManagerModule.reportFatalException(ExceptionsManagerModule.java:78)
                                                   at java.lang.reflect.Method.invoke(Native Method)
                                                   at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:319)
                                                   at com.facebook.react.bridge.NativeModuleRegistry$ModuleDefinition.call(NativeModuleRegistry.java:187)
                                                   at com.facebook.react.bridge.NativeModuleRegistry.call(NativeModuleRegistry.java:62)
                                                   at com.facebook.react.bridge.CatalystInstanceImpl$NativeModulesReactCallback.call(CatalystInstanceImpl.java:420)
                                                   at com.facebook.react.bridge.queue.NativeRunnableDeprecated.run(Native Method)
                                                   at android.os.Handler.handleCallback(Handler.java:739)
                                                   at android.os.Handler.dispatchMessage(Handler.java:95)
                                                   at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
                                                   at android.os.Looper.loop(Looper.java:148)
                                                   at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:197)
                                                   at java.lang.Thread.run(Thread.java:818)

I/WtEventController: Receive am_crash event for pid: 23260
W/ActivityManager:   Force finishing activity com.mypackage/.MainActivity
@rmevans9

This comment has been minimized.

Show comment
Hide comment
@rmevans9

rmevans9 Aug 16, 2016

Contributor

Looks like you are making a call to requestPermissions off an object (I am guessing that has a minified name unless you named the object 'a') that is undefined. In your code find where you call requestPermissions on anything and ensure that the object actually has a value.

Contributor

rmevans9 commented Aug 16, 2016

Looks like you are making a call to requestPermissions off an object (I am guessing that has a minified name unless you named the object 'a') that is undefined. In your code find where you call requestPermissions on anything and ensure that the object actually has a value.

@rmevans9

This comment has been minimized.

Show comment
Hide comment
@rmevans9

rmevans9 Aug 16, 2016

Contributor

@facebook-github-bot label android

Contributor

rmevans9 commented Aug 16, 2016

@facebook-github-bot label android

@ghost ghost added Android Ran Commands labels Aug 16, 2016

@karkb

This comment has been minimized.

Show comment
Hide comment
@karkb

karkb Aug 17, 2016

I got it work. I actually forgot some coding part about PushNotificationIOS which is not a cross platform, so the push notification response was coming undefined on android platform.

Thanks for your support!

karkb commented Aug 17, 2016

I got it work. I actually forgot some coding part about PushNotificationIOS which is not a cross platform, so the push notification response was coming undefined on android platform.

Thanks for your support!

@karkb karkb closed this Aug 17, 2016

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.