Could you please also change this line https://github.com/WeAreROLI/JUCE/blob/master/modules/juce_gui_extra/native/juce_android_PushNotifications.cpp#L1564
to this:
static void JNICALL tokenRefreshed (JNIEnv*, jobject, void* token)
To be honest, I have no idea what is happening here. But I got this fix from Lukasz here:
Without that change the app crashes at the first start after a fresh installation.