Mobile notification using OneSignal , Error Message : Cordova is not defined

Mobile notification using OneSignal , Error Message : Cordova is not defined

  

Hi, 

We are using OneSignal plugin to send notification in one of our mobile app. While testing the functionality in desktop browser or in outsystem now(after scanning the QR code), we are getting the attached error(while debugging). 


Hi Prasanta,

This is expected. You can't test mobile plugins in the browser, since the browser is not an actual mobile device. In OutSystems now, there's only a limited amount of devices available, and OneSignal is not one of them.

Kilian Hekhuis wrote:

Hi Prasanta,

This is expected. You can't test mobile plugins in the browser, since the browser is not an actual mobile device. In OutSystems now, there's only a limited amount of devices available, and OneSignal is not one of them.

Thanks for your reply, please could you let us know the solution for this error. 


Solution

Prasanta Barik wrote:

Kilian Hekhuis wrote:

Hi Prasanta,

This is expected. You can't test mobile plugins in the browser, since the browser is not an actual mobile device. In OutSystems now, there's only a limited amount of devices available, and OneSignal is not one of them.

Thanks for your reply, please could you let us know the solution for this error. 


You need to generate App mobile, and test there. In my case, I've only been able to test OneSignal like this.

How Kilian said, you cant test OneSignal in browser and OutSystems App.

Note: You first have to ensure that notifications are sent to the OneSignal platform.


Regards

Solution

Hi Prasanta,

The only way to test is, like Paulo says, to generate a native app and test on an actual device. See here for more information.