180
Views
4
Comments
Solved
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). 


Cordova Issue.JPG
2025-01-07 17-06-54
Paulo Cação
Champion
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

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

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.

UserImage.jpg
Prasanta Barik

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. 


2025-01-07 17-06-54
Paulo Cação
Champion
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

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

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.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.