Is it possible to initialize HMS without a agconnect-services.json
and provide the keys at runtime?
Using a similar service (Fcm) we can initialize an app:
val builder = FirebaseOptions.Builder()
.setApiKey(apiKey)
.setGcmSenderId(senderId)
.setProjectId(project)
.setApplicationId(appId)
FirebaseApp.initializeApp(context, builder.build())
Therefore, you can use it without need of a json
file to be parsed.
Is there a similar solution for this using HMS
and AppGallery
?
BTW, I'm trying to implement PushKit