Giter Site home page Giter Site logo

Comments (5)

shaders avatar shaders commented on August 21, 2024

Hi,

Did you invoke init method in the onCreate method of PushFragment's parent activity?

The crash you receive is because activity in the fragment is not initialised.

from pushwoosh-android-sdk.

JulienPalard avatar JulienPalard commented on August 21, 2024

Yes I'm calling PushFragment.init(this); in my protected void onCreate(final Bundle savedInstanceState) from my LAUNCHER activity.

My launcher activity is a class inheriting from a class itself inheriting from ActionBarActivity.

To confirm this I tried to break on the call, and the break happen.

I even got the "doOnRegistered" call:

D/mdk/push( 6245): onRegistered(A***redacted***)
***redacted***
D/AndroidRuntime( 6245): Shutting down VM
E/AndroidRuntime( 6245): FATAL EXCEPTION: main
E/AndroidRuntime( 6245): Process: fr.mandark.www, PID: 6245
E/AndroidRuntime( 6245): java.lang.RuntimeException: Error receiving broadcast Intent { act=fr.mandark.www.com.arellomobile.android.push.REGISTER_BROAD_CAST_ACTION flg=0x10 pkg=fr.mandark.www (has extras) } in com.arellomobile.android.push.fragment.PushFragment$1@2a3f0a8c
[...]

Tell me if I can provide more information about this one.

from pushwoosh-android-sdk.

shaders avatar shaders commented on August 21, 2024

Do you have a simple sample code to reproduce the issue?

from pushwoosh-android-sdk.

JulienPalard avatar JulienPalard commented on August 21, 2024

No, sry :-( Yet I think you should check for this null reference, and log something verbose instead of crashing ? That may be the better that we can do about this as I don't have more information about it :(

from pushwoosh-android-sdk.

shaders avatar shaders commented on August 21, 2024

fixed in next update

from pushwoosh-android-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.