[Firebase Cloud Message Plugin] Help with cordova plugin

[Firebase Cloud Message Plugin] Help with cordova plugin

  
Forge Component
(4)
Published on 20 Aug by Experts
4 votes
Published on 20 Aug by Experts

Good Day Experts Team,

I was wondering if you all could help me. Loved the plugin you made but right now the plugin has not supported Outsystems 11 yet. So i decided to use the original phonegap push plugin while waiting for the plugin to support OS 11.


Right now the plugin can be referenced sucessfully but as you know, the phonegap plugin requires the availablity of the google-services.json from the firebase console to work. 

The problem i'm having right now is the plugin not being able to find the google-services.json in the resource folder. Is there any way for me to deploy the resource to the required folder for the plugin to work? I have also attached the android-build log as it might help the team to get a better grasp of my situation.

Thanks so much and hope to hear from the team soon!

Cheers,

Kennedy

I managed made it work on OS11 you need to follow the instruction on the documentation on how to get the google-services.json and how to deploy it

https://www.outsystems.com/forums/discussion/31931/firebase-cloud-message-plugin-documentation/

BTW I am not a team member just another outsystem user
Also check out my unofficial fixes of this plugin for Android 8.0 and above and extra feature for android 8.0 and aboves not just the fix,as android 8.0 has channel for notification.
Feedback show that that plugin won't work on android Oreo hence I made this fix

Link below

https://www.outsystems.com/forums/discussion/41514/firebase-oreo-plugin-unofficial-update-and-other-bug-fixes/

Oliver Ong Chor Yew wrote:

I managed made it work on OS11 you need to follow the instruction on the documentation on how to get the google-services.json and how to deploy it

https://www.outsystems.com/forums/discussion/31931/firebase-cloud-message-plugin-documentation/

BTW I am not a team member just another outsystem user
Also check out my unofficial fixes of this plugin for Android 8.0 and above and extra feature for android 8.0 and aboves not just the fix,as android 8.0 has channel for notification.
Feedback show that that plugin won't work on android Oreo hence I made this fix

Link below

https://www.outsystems.com/forums/discussion/41514/firebase-oreo-plugin-unofficial-update-and-other-bug-fixes/

Good Day Oliver,

You were right. I somehow got it working on OS 11. Don't know what happened last time. Could just be a connection issue. Thanks for the help!


Cheers,

Kennedy


Kennedy Lie wrote:

Oliver Ong Chor Yew wrote:

I managed made it work on OS11 you need to follow the instruction on the documentation on how to get the google-services.json and how to deploy it

https://www.outsystems.com/forums/discussion/31931/firebase-cloud-message-plugin-documentation/

BTW I am not a team member just another outsystem user
Also check out my unofficial fixes of this plugin for Android 8.0 and above and extra feature for android 8.0 and aboves not just the fix,as android 8.0 has channel for notification.
Feedback show that that plugin won't work on android Oreo hence I made this fix

Link below

https://www.outsystems.com/forums/discussion/41514/firebase-oreo-plugin-unofficial-update-and-other-bug-fixes/

Good Day Oliver,

You were right. I somehow got it working on OS 11. Don't know what happened last time. Could just be a connection issue. Thanks for the help!


Cheers,

Kennedy


Welcome!
Please check out my fix,if you use android 8.0 to test


Oliver Ong Chor Yew wrote:

Kennedy Lie wrote:

Oliver Ong Chor Yew wrote:

I managed made it work on OS11 you need to follow the instruction on the documentation on how to get the google-services.json and how to deploy it

https://www.outsystems.com/forums/discussion/31931/firebase-cloud-message-plugin-documentation/

BTW I am not a team member just another outsystem user
Also check out my unofficial fixes of this plugin for Android 8.0 and above and extra feature for android 8.0 and aboves not just the fix,as android 8.0 has channel for notification.
Feedback show that that plugin won't work on android Oreo hence I made this fix

Link below

https://www.outsystems.com/forums/discussion/41514/firebase-oreo-plugin-unofficial-update-and-other-bug-fixes/

Good Day Oliver,

You were right. I somehow got it working on OS 11. Don't know what happened last time. Could just be a connection issue. Thanks for the help!


Cheers,

Kennedy


Welcome!
Please check out my fix,if you use android 8.0 to test


Hey Oliver its me again.

Quick question. Do you know how to get the reply value from the notification sent? i can get the inline reply to work but having trouble extracting the said reply value from the notification. 

Cheers,

Kennedy


Kennedy Lie wrote:

Oliver Ong Chor Yew wrote:

Kennedy Lie wrote:

Oliver Ong Chor Yew wrote:

I managed made it work on OS11 you need to follow the instruction on the documentation on how to get the google-services.json and how to deploy it

https://www.outsystems.com/forums/discussion/31931/firebase-cloud-message-plugin-documentation/

BTW I am not a team member just another outsystem user
Also check out my unofficial fixes of this plugin for Android 8.0 and above and extra feature for android 8.0 and aboves not just the fix,as android 8.0 has channel for notification.
Feedback show that that plugin won't work on android Oreo hence I made this fix

Link below

https://www.outsystems.com/forums/discussion/41514/firebase-oreo-plugin-unofficial-update-and-other-bug-fixes/

Good Day Oliver,

You were right. I somehow got it working on OS 11. Don't know what happened last time. Could just be a connection issue. Thanks for the help!


Cheers,

Kennedy


Welcome!
Please check out my fix,if you use android 8.0 to test


Hey Oliver its me again.

Quick question. Do you know how to get the reply value from the notification sent? i can get the inline reply to work but having trouble extracting the said reply value from the notification. 

Cheers,

Kennedy


How Did you managed to get it for that


Oliver Ong Chor Yew wrote:

Kennedy Lie wrote:

Oliver Ong Chor Yew wrote:

Kennedy Lie wrote:

Oliver Ong Chor Yew wrote:

I managed made it work on OS11 you need to follow the instruction on the documentation on how to get the google-services.json and how to deploy it

https://www.outsystems.com/forums/discussion/31931/firebase-cloud-message-plugin-documentation/

BTW I am not a team member just another outsystem user
Also check out my unofficial fixes of this plugin for Android 8.0 and above and extra feature for android 8.0 and aboves not just the fix,as android 8.0 has channel for notification.
Feedback show that that plugin won't work on android Oreo hence I made this fix

Link below

https://www.outsystems.com/forums/discussion/41514/firebase-oreo-plugin-unofficial-update-and-other-bug-fixes/

Good Day Oliver,

You were right. I somehow got it working on OS 11. Don't know what happened last time. Could just be a connection issue. Thanks for the help!


Cheers,

Kennedy


Welcome!
Please check out my fix,if you use android 8.0 to test


Hey Oliver its me again.

Quick question. Do you know how to get the reply value from the notification sent? i can get the inline reply to work but having trouble extracting the said reply value from the notification. 

Cheers,

Kennedy


How Did you managed to get it for that


I used an API Post call


https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#in-line-replies
Read this
I guess you need the NotificationListener to intercept the additional reply

To do so add the FCMCentralDispatcher block to the layout block as the loading page there
Then try to intercept additonal reply and send the API to force it on background

Edit:It seemed tough for me to find out how to actually intercept it

Kennedy Lie wrote:

Oliver Ong Chor Yew wrote:

Kennedy Lie wrote:

Oliver Ong Chor Yew wrote:

I managed made it work on OS11 you need to follow the instruction on the documentation on how to get the google-services.json and how to deploy it

https://www.outsystems.com/forums/discussion/31931/firebase-cloud-message-plugin-documentation/

BTW I am not a team member just another outsystem user
Also check out my unofficial fixes of this plugin for Android 8.0 and above and extra feature for android 8.0 and aboves not just the fix,as android 8.0 has channel for notification.
Feedback show that that plugin won't work on android Oreo hence I made this fix

Link below

https://www.outsystems.com/forums/discussion/41514/firebase-oreo-plugin-unofficial-update-and-other-bug-fixes/

Good Day Oliver,

You were right. I somehow got it working on OS 11. Don't know what happened last time. Could just be a connection issue. Thanks for the help!


Cheers,

Kennedy


Welcome!
Please check out my fix,if you use android 8.0 to test


Hey Oliver its me again.

Quick question. Do you know how to get the reply value from the notification sent? i can get the inline reply to work but having trouble extracting the said reply value from the notification. 

Cheers,

Kennedy


After some work to find the cause of the problem you faced,found out the notification handler in the Javascript code is not triggered when inline notification is added,let me think of fix the problem so I can upload it in the next version of my unofficial version which includes fixes for android 8.0

Edit:
The root cause of it is the actionCallBack handler in the plugin js which resulted in not calling the onNotification handler,it called Javascript non-existent functions as a result.
My planned fix is also to expose the action callback name of the plugin so based on the value you can also trigger actions on the onNotification handler and retrieve the inline reply value 

Also I remove the actionCallBack Handler on javascript code
Sorry for taking a long time to figure out


https://www.outsystems.com/forums/discussion/41514/firebase-oreo-plugin-unofficial-update-and-other-bug-fixes/#Post153078

This is my latest fix with new features for Android 8.0 and above,with inline reply and actionCallback for notification buttons and reply
Please delete old version of the plugin and install this unofficial v1.9 version I made then refresh dependencies to see all the new features of this modified plugin

EDIT:Link to my latest version v1.9