117
Views
13
Comments
Getting plugin not available error

I m trying to use the client action IsCordovaDefined from common plugin forge component for ApplePay , On CheckPlugin client action of ApplePay module ,  I m checking for Cordova defined but I m getting plugin not available error , 

2.PNG
2021-01-04 08-13-48
Toto
 
MVP

Hi,

Did you test this on the browser desktop or on the mobile device ?

On browser, plugin will always not available because browser cannot run cordova.

2025-05-14 08-11-29
Aakash Baskar

Yes I tested in browser with device as mobile and tab .Also can you explain me in brief about cordova . I did get proper documentation for that 

2021-01-04 08-13-48
Toto
 
MVP

Cordova plugin is native capability that cannot be emulated via browser, so if you want to test this, create native mobile apps, then test it there.

Also information : https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/Mobile_Plugins/Using_Cordova_Plugins


2025-05-14 08-11-29
Aakash Baskar
2025-05-14 08-11-29
Aakash Baskar

Hi @Toto  

     I even tested with mobile still getting same error. And the below attached image is the Js code written in common plugin module which i used to check the plugin availability.


cordova.PNG
2021-01-04 08-13-48
Toto
 
MVP

Hi,

Can you provide screenshot of the error on mobile ?

2025-05-14 08-11-29
Aakash Baskar
Screenshot_2022-08-24-10-59-50-828_com.outsystemscloud.personalb9luh9qm.MobileApplePayDemo.jpg
2021-01-04 08-13-48
Toto
 
MVP

Is this android ? Can you provide logcat log for this app ? or can I get the apk to check ?

2025-05-14 08-11-29
Aakash Baskar
2021-01-04 08-13-48
Toto
 
MVP

Hi,

This is using applepay with applepay plugin. This cannot run on android.

"window.ApplePay" will result false in android device.

2025-05-14 08-11-29
Aakash Baskar
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.