[aerogear-dev] Android Push: Firebase Cloud Messaging

Matthias Wessendorf matzew at apache.org
Thu Jun 9 03:47:35 EDT 2016


On Thu, Jun 9, 2016 at 9:39 AM, Erik Jan de Wit <edewit at redhat.com> wrote:

>
>>> Don't know what the content is of this file seems the
>>> https://github.com/jboss-mobile/unified-push-helloworld/pull/31 demo
>>> doesn't have this google-services.json
>>>
>>
>> yes, that's correct. It's up to the developer to actually put the file
>> into that "/app" folder.
>>
>> Would this work on Cordova too ?
>>
>>
> So the content would be app specific? Could you give an example?
>

yes, that's right. You download that form the Firebase console, specific
for your Firebase project. It contains severval things, including the
project number and also the server-side key (the one that we also enter in
UPS)


> We can put some dynamic stuff into the plugin, but it's kinda limited.
>

Could we do some 'magic' to make the plugin check that if the target is
Android, it requires the JSON file 'somewhere'?
If present, the plugin would put the file into the app folder, if possible
:)



> I hope we can do without having cordova devs worry about the platform
> folder.
>

I can see that fear, I am not really sure, all I know is that for native
this needs to go into the app folder. I am not sure if there is a chance to
launche FCM w/o that file and the google plugin.


>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20160609/ffc5b88e/attachment.html 


More information about the aerogear-dev mailing list