firebase-admin-java icon indicating copy to clipboard operation
firebase-admin-java copied to clipboard

Add support for GraalVM native image

Open ygyg70 opened this issue 1 year ago • 6 comments

Is your feature request related to a problem? Please describe. Notifications are not sent when run as a native image. I was able to use the library after adding reflection configuration for these classes: Message.class, Notification.class, AndroidConfig.class, AndroidNotification.class, AndroidFcmOptions.class, WebpushConfig.class, WebpushFcmOptions.class, WebpushNotification.class, ApnsConfig.class, ApnsFcmOptions.class, ApsAlert.class, FcmOptions.class, MessagingServiceResponse.class, MessagingServiceErrorResponse.class

Describe the solution you'd like Add reflect-config.json file to the project

Describe alternatives you've considered Document how to achieve native image compatibility

ygyg70 avatar Apr 21 '23 07:04 ygyg70

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Apr 21 '23 07:04 google-oss-bot

Is there any update on this? I am struggling with a native image build since adding the firebase-admin dependency.

CriPstian avatar Oct 20 '23 11:10 CriPstian

Is there any update on this?

hmzgtl16 avatar Oct 26 '23 16:10 hmzgtl16

Is there any update on this?

This is error i am getting: [INFO] [creator] Jan 07, 2024 9:07:06 PM com.google.api.gax.nativeimage.NativeImageUtils registerClassForReflection [INFO] [creator] WARNING: Failed to find io.grpc.netty.shaded.io.netty.channel.ProtocolNegotiators on the classpath for reflection.

VjekoslavKrainovic avatar Jan 07 '24 21:01 VjekoslavKrainovic