Post Closed
47
Views
6
Comments
Solved
[CM HybridMessaging Plugin] Cannot read property 'configureService' of undefined
Question
cm-hybridmessaging-plugin
Mobile icon
Forge asset by Providit Labs

Hi,


I am trying to use the application CMMobileApp that exists as an example in the plugin CM HybridMessaging Plugin, but it gives me the error of the capture that I attached. Can anybody help me? 

Thank you very much,

Jordi

error CM.PNG
2022-07-07 18-45-50
Niels Favreau
Solution

Hi Jordi,

Can you please share which Outsystems version you're using?
By 'through the application of outsystems', do you mean Outsystems Now? if so, this wont work. Outsystems Now only support plugins supported by Outsystems. See the list of the official supported plugins by Outsystems Now:

https://success.outsystems.com/Documentation/10/Extensibility_and_Integration/Mobile_Plugins

You can test custom/community made plugins by generating an .apk file and download/install it on your mobile phone.


Greetings,
Niels Favreau

2023-03-30 10-13-40
Miguel Antunes

Hi Jordi,

Normally, mobile plugins require that you test them in a real device/emulator, most of them will not work in the browser since they access native device only features.

Try to generate the mobile app, install it on your phone and test it from there.

Cheers,
Miguel

UserImage.jpg
Jordi Gisbert Ponsoda

Miguel 'Kelter' Antunes wrote:

Hi Jordi,

Normally, mobile plugins require that you test them in a real device/emulator, most of them will not work in the browser since they access native device only features.

Try to generate the mobile app, install it on your phone and test it from there.

Cheers,
Miguel

Hi Miguel,

I'm testing the app in my mobile phone through the application of outsystems and it does not work either. I'm looking at the error log and it always appears in the same, in this line "window.hybridmessaging.configureService(config);", it invokes the object "config", which I have -> 

var config = {
    appKey : "f25aaa7f-f9dd-43f0-8c68-cbb4e7de0194",
    appSecret : "2ff97784-d579-408c-bb8f-037d59bb0655",
    senderId : "829637568489",
    notificationCallback : "1",
    deviceCarrierUpdateCallback : "1"
};

Regards,

Jordi.


UserImage.jpg
Jordi Gisbert Ponsoda

Miguel 'Kelter' Antunes wrote:

Hi Jordi,

Normally, mobile plugins require that you test them in a real device/emulator, most of them will not work in the browser since they access native device only features.

Try to generate the mobile app, install it on your phone and test it from there.

Cheers,
Miguel

Hi Miguel,

Nothing, everything is the same, keep giving me the same error.

Regards,

Jordi.
2022-07-07 18-45-50
Niels Favreau

Hi Jordi,

Can you please share your oml file?


Greetings,

Niels

UserImage.jpg
Jordi Gisbert Ponsoda

Niels Favreau wrote:

Hi Jordi,

Can you please share your oml file?


Greetings,

Niels

Hi Niels,

I'm really testing on the example that is in the plugin (https://www.outsystems.com/forge/component/1950/cm-hybridmessaging-plugin/), but if you want to pass you only the .OML, basically it is to try the app that brings example.

Regards,

Jordi.


CMMobileApp.oml
2022-07-07 18-45-50
Niels Favreau
Solution

Hi Jordi,

Can you please share which Outsystems version you're using?
By 'through the application of outsystems', do you mean Outsystems Now? if so, this wont work. Outsystems Now only support plugins supported by Outsystems. See the list of the official supported plugins by Outsystems Now:

https://success.outsystems.com/Documentation/10/Extensibility_and_Integration/Mobile_Plugins

You can test custom/community made plugins by generating an .apk file and download/install it on your mobile phone.


Greetings,
Niels Favreau