java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.IntentReceiver: java.lang.RuntimeException: Application context not provided

Appcelerator JIRA | Andreas Hyden | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    App sometimes crash during startup when launched from the Android notification area. How to reproduce - Make sure app is not running - Receive push notifications for app - Click on push notification in the Android notification area to launch the app. - (If another notification is received at the moment the app is launching, it seems to greatly increase the chance of a crash.) - App sometimes crashes Crash log: E/AndroidRuntime(10783): FATAL EXCEPTION: main E/AndroidRuntime(10783): Process: hk.com.beamstyle.snakehead, PID: 10783 E/AndroidRuntime(10783): java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.IntentReceiver: java.lang.RuntimeException: Application context not provided E/AndroidRuntime(10783): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2856) E/AndroidRuntime(10783): at android.app.ActivityThread.access$1700(ActivityThread.java:156) E/AndroidRuntime(10783): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1440) E/AndroidRuntime(10783): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime(10783): at android.os.Looper.loop(Looper.java:157) E/AndroidRuntime(10783): at android.app.ActivityThread.main(ActivityThread.java:5872) E/AndroidRuntime(10783): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(10783): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime(10783): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) E/AndroidRuntime(10783): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674) E/AndroidRuntime(10783): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(10783): Caused by: java.lang.RuntimeException: Application context not provided E/AndroidRuntime(10783): at com.appcelerator.aps.Settings.props(Settings.java:58) E/AndroidRuntime(10783): at com.appcelerator.aps.Settings.useSingleCallback(Settings.java:83) E/AndroidRuntime(10783): at com.appcelerator.aps.APSCloudPush.processCallbackIfInstantiated(APSCloudPush.java:651) E/AndroidRuntime(10783): at com.appcelerator.aps.IntentReceiver.onReceive(IntentReceiver.java:72) E/AndroidRuntime(10783): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2845) E/AndroidRuntime(10783): ... 10 more E/ActivityManager( 719): App crashed! Process: hk.com.beamstyle.snakehead

    Appcelerator JIRA | 2 years ago | Andreas Hyden
    java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.IntentReceiver: java.lang.RuntimeException: Application context not provided
  2. 0

    App sometimes crash during startup when launched from the Android notification area. How to reproduce - Make sure app is not running - Receive push notifications for app - Click on push notification in the Android notification area to launch the app. - (If another notification is received at the moment the app is launching, it seems to greatly increase the chance of a crash.) - App sometimes crashes Crash log: E/AndroidRuntime(10783): FATAL EXCEPTION: main E/AndroidRuntime(10783): Process: hk.com.beamstyle.snakehead, PID: 10783 E/AndroidRuntime(10783): java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.IntentReceiver: java.lang.RuntimeException: Application context not provided E/AndroidRuntime(10783): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2856) E/AndroidRuntime(10783): at android.app.ActivityThread.access$1700(ActivityThread.java:156) E/AndroidRuntime(10783): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1440) E/AndroidRuntime(10783): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime(10783): at android.os.Looper.loop(Looper.java:157) E/AndroidRuntime(10783): at android.app.ActivityThread.main(ActivityThread.java:5872) E/AndroidRuntime(10783): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(10783): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime(10783): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858) E/AndroidRuntime(10783): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674) E/AndroidRuntime(10783): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(10783): Caused by: java.lang.RuntimeException: Application context not provided E/AndroidRuntime(10783): at com.appcelerator.aps.Settings.props(Settings.java:58) E/AndroidRuntime(10783): at com.appcelerator.aps.Settings.useSingleCallback(Settings.java:83) E/AndroidRuntime(10783): at com.appcelerator.aps.APSCloudPush.processCallbackIfInstantiated(APSCloudPush.java:651) E/AndroidRuntime(10783): at com.appcelerator.aps.IntentReceiver.onReceive(IntentReceiver.java:72) E/AndroidRuntime(10783): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2845) E/AndroidRuntime(10783): ... 10 more E/ActivityManager( 719): App crashed! Process: hk.com.beamstyle.snakehead

    Appcelerator JIRA | 2 years ago | Andreas Hyden
    java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.IntentReceiver: java.lang.RuntimeException: Application context not provided

    Root Cause Analysis

    1. java.lang.RuntimeException

      Application context not provided

      at com.appcelerator.aps.Settings.props()
    2. com.appcelerator.aps
      IntentReceiver.onReceive
      1. com.appcelerator.aps.Settings.props(Settings.java:58)
      2. com.appcelerator.aps.Settings.useSingleCallback(Settings.java:83)
      3. com.appcelerator.aps.APSCloudPush.processCallbackIfInstantiated(APSCloudPush.java:651)
      4. com.appcelerator.aps.IntentReceiver.onReceive(IntentReceiver.java:72)
      4 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.ActivityThread.handleReceiver(ActivityThread.java:2845)
      2. android.app.ActivityThread.access$1700(ActivityThread.java:156)
      3. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1440)
      4. android.os.Handler.dispatchMessage(Handler.java:102)
      5. android.os.Looper.loop(Looper.java:157)
      6. android.app.ActivityThread.main(ActivityThread.java:5872)
      6 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame