Android crash if JUCE_PUSH_NOTIFICATIONS_ACTIVITY not defined

Hi Juce devs,

There is a bug in the Android implementation you might want to fix.

When this is called in the Android lifecycle:

    protected void onNewIntent (Intent intent)

The code calls

appNewIntent (intent);

Which is declared as

    private native void appNewIntent (Intent intent);

However, that native method is implemented only if JUCE_PUSH_NOTIFICATIONS_ACTIVITY is defined.

If you don’t have JUCE_PUSH_NOTIFICATIONS_ACTIVITY defined, then the app will crash.

Thanks in advance,


The JuceActivity will only be used if push notifications are enabled, otherwise we just used the default -

What does your project setup look like? Have you re-saved it with a version of the Projucer containing this change?

Hi Ed,

Thanks for that. The thing is, I’ve got JuceActivity in my project, but no other references to it.
However, the crash reporting code I’m using (AppCenter, as it happens) shows that onNewIntent in JuceActivity is called periodically, causing the crash.


My work-around is just to replace appNewIntent(intent) with a call to finish()

I’ve not been able to figure-out what provokes this code to be called in the first place. All rather puzzling! But thank goodness for crash reporting software.

Best wishes,

Pete, line -2
java.lang.UnsatisfiedLinkError: No implementation found for void com.rmsl.juce.JuceActivity.appNewIntent(android.content.Intent) (tried Java_com_rmsl_juce_JuceActivity_appNewIntent and Java_com_rmsl_juce_JuceActivity_appNewIntent__Landroid_content_Intent_2)


What does the activity element of your project’s AndroidManifest.xml file look like? For a default JUCE Android project without push notifications enabled the android:name attribute should be “”.

1 Like

Hi Ed,

That must explain it - for some reason, I had this set as follows:


I’ll change it as you describe - I’m sure it’ll now work as intended!

Thanks very much for taking the trouble to respond, and with best wishes,


Re-saving the project with a recent Projucer should also fix this.

Thanks Ed!

Seems to work as suggested - thanks again, Ed! Pete

1 Like