[Firebase Cloud Message Plugin] When there is an in app update we get Script error for "FirebaseCloudMessagePluginCon

[Firebase Cloud Message Plugin] When there is an in app update we get Script error for "FirebaseCloudMessagePluginCon

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

When we publish a simple change in the mobile app, we get an upgrade failed error when using this plugin

This is the first error that is logged

Upgrade failed - rolling back to previous application version.
Script error for "FirebaseCloudMessagePluginContext"
http://requirejs.org/docs/errors.html#scripterror

then we get the following error

Script error for "FirebaseCloudMessagePluginContext"
http://requirejs.org/docs/errors.html#scripterror

And an error screen in the app, with a reload button, but that will fail always.

Only hard closing the app and then starting it wil update the app without errors

We call the initpushnotifications in on application ready and in on application resume

and the we have a webblock with the fcmcentraldispather  on the homescreen


Tried everying with initialising at other events on the Oninitialize of the page.

But nothing helps.


We need the in app update to happen without errors.

Can someone please look into this

Thanks in advance

Stefan Besteman





Stefan Besteman wrote:

When we publish a simple change in the mobile app, we get an upgrade failed error when using this plugin

This is the first error that is logged

Upgrade failed - rolling back to previous application version.
Script error for "FirebaseCloudMessagePluginContext"
http://requirejs.org/docs/errors.html#scripterror

then we get the following error

Script error for "FirebaseCloudMessagePluginContext"
http://requirejs.org/docs/errors.html#scripterror

And an error screen in the app, with a reload button, but that will fail always.

Only hard closing the app and then starting it wil update the app without errors

We call the initpushnotifications in on application ready and in on application resume

and the we have a webblock with the fcmcentraldispather  on the homescreen


Tried everying with initialising at other events on the Oninitialize of the page.

But nothing helps.


We need the in app update to happen without errors.

Can someone please look into this

Thanks in advance

Stefan Besteman






Try to regenerate the APK for android or IPA for iOS