RE: Can i configure firebase ios push in liferay for lifeay based mobile ap

thumbnail
Prakash Kumar Singh, modified 6 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts

Can i configure firebase ios push in liferay for lifeay based mobile app ?

 

Regards

 

Prakash Kumar Singh

thumbnail
Javier Gamarra, modified 6 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts

Yes, firebase is another target for receiving/sending messages like sms, android-gcm, notifications... and you can register whatever device to receive firebase push messages but you will have to register the phone manually calling this service (you won't be able to use liferay ios push client library).

thumbnail
Prakash Kumar Singh, modified 6 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts
Can you please give me some snippets/steps , how to proceed with it ? Where i have to configure firebase api key and  is there any need of apple push certificate for firebase ios configuration ? will liferay push portlet will work with it or not ?
thumbnail
Javier Gamarra, modified 6 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts

We want to create a tutorial to explain it but let's see if I can guide you a bit...

You don't need to configure the apple push certificate in liferay, you will only need to configure the firebase api key with the liferay push portlet. It comes preinstalled in 7.1. The configuration is in system settings, notifications (if you search for firebase it's easier).

The hardest part is to get the token and register the device in liferay/apple. To get the token you have to read apple documentation. I recommend you to generate a token and test it manually first (registering it in liferay, platform firebase) and adding the code to show the notification.

To register it programatically, basically you have to call this code but instead of using apple as the platform, use firebase. Specifically the registerDeviceTokenData function.

thumbnail
Prakash Kumar Singh, modified 6 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts

Hi  @Javier Gamarra

 

I have tried as you mentioned in post. But didn't get success. Can you please explain it in more detail with some illustration or video . So that i can check where i am missing .
 

Thanks 

Prakash Kumar singh

thumbnail
Javier Gamarra, modified 6 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts
Where is exactly the problem to try to detail it more? adding the firebase key, registering the device or receiving the push message?
thumbnail
Prakash Kumar Singh, modified 6 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts
Javier Gamarra:
Where is exactly the problem to try to detail it more? adding the firebase key, registering the device or receiving the push message?


I have added firebase key and device got registered but not getting pushes . and no error in liferay console and xcode console . 

 

Regards 

Prakash Kumar singh

thumbnail
Javier Gamarra, modified 6 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts
Ok, I'm going to review it and create a small tutorial, should take a couple of days though :(
thumbnail
Prakash Kumar Singh, modified 6 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts
Javier Gamarra:
Ok, I'm going to review it and create a small tutorial, should take a couple of days though :(



Ok, thanks. I am looking forward to this tutorial 

 

Regards 

Prakash Kumar singh

thumbnail
Prakash Kumar Singh, modified 6 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts
Javier Gamarra:
Ok, I'm going to review it and create a small tutorial, should take a couple of days though :(


Hi, 

      Any update on this. Have you done this successfully ? 

 

Regards

Praksh kumar singh

thumbnail
Prakash Kumar Singh, modified 6 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts

Any update or findings guys 

 

Regards

 

Prakash Kumar singh

thumbnail
Prakash Kumar Singh, modified 6 Years ago. Junior Member Posts: 85 Join Date: 1/30/15 Recent Posts
Can  we create custom module for handling  firebase push  from liferay server ?

Regards 

​​​​​​​Prakash kumar singh