434
Views
17
Comments
[InAppBrowser Plugin] Getting "InAppBrowser is not defined" while checking the application through mobile
Question
inappbrowser-plugin
Mobile icon
Forge asset by OutSystems

Hi,

I am using InAppBrowser plugin in the application to have a redirection to the specific website or an application which is available in my mobile but getting "InAppBrowser is not define" error.

2021-04-09 11-42-43
assif_tiger
 
MVP

Hi Anusha Reddy,

We have to generate a new build when we add a new plugin to the project.

  • Generate a new build
  • Install it on device & test


Note: Any of the forge cordova plugin doesn't support on the browser.

UserImage.jpg
Anusha Reddy

assif_tiger wrote:

Hi Anusha Reddy,

We have to generate a new build when we add a new plugin to the project.

  • Generate a new build
  • Install it on device & test


Note: Any of the forge cordova plugin doesn't support on the browser.


Hi Assif, I have tried the same but still it is not working, getting the same error. Is there any other way to resolve the issue.

2021-04-09 11-42-43
assif_tiger
 
MVP

Hi,

Check the result of the below action :

UserImage.jpg
Anusha Reddy

assif_tiger wrote:

Hi,

Check the result of the below action :


Hi Assif, if I am keeping the same thing then nothing is happening but when I am trying to print a message after the plugin I am getting  "InAppBrowser is not defined".

2019-11-25 08-52-26
Irfan

Hi Anusha,

Make sure that the target in the OPEN client action set to "Entities.Target.System"

UserImage.jpg
Anusha Reddy

Irfan wrote:

Hi Anusha,

Make sure that the target in the OPEN client action set to "Entities.Target.System"

Hi Irfan,

The target is set to "Entities.Target.System".


2019-11-25 08-52-26
Irfan

Can you please debug it, whether it is showing the Plugin.available is TRUE or FALSE 

UserImage.jpg
Anusha Reddy

Irfan wrote:

Can you please debug it, whether it is showing the Plugin.available is TRUE or FALSE 

Hi Irfan, 

Getting false after doing debug.


2019-11-25 08-52-26
Irfan

Hi Anusha,

In this case you need to uninstall and install the plugin again.

After this generate the app in the native platform and check it in your mobile device. 

2021-04-09 11-42-43
assif_tiger
 
MVP

Are you debugging via Browser i.e Simulator?

Make.sure to generate n install new build n then debug via device.

UserImage.jpg
Anusha Reddy

assif_tiger wrote:

Are you debugging via Browser i.e Simulator?

Make.sure to generate n install new build n then debug via device.


I have done via browser

2021-04-09 11-42-43
assif_tiger
 
MVP

Guess the build  she is using is the old one i.e generated before adding plugin.

That's what I advise her initially to better have a new build n then install it on device freshly.

And never test plugins on Simulator as they don't support on it.

UserImage.jpg
Anusha Reddy

Hi Irfan and Assif_tiger,

It is working now the redirection is happening through mobile. Thank you so much for helping me to solve the issue.

2021-04-09 11-42-43
assif_tiger
 
MVP

Anusha Reddy wrote:

Hi Irfan and Assif_tiger,

It is working now the redirection is happening through mobile. Thank you so much for helping me to solve the issue.


Good, Happy to know.

2020-05-07 18-53-00
Rui Barradas
 
MVP

Hello Anusha,


Just some quick notes for the future (some of them Assif and Irfan already told you):

1) Everytime you add a new plugin to your application, you need to generate new builds again (APK file for Android and IPA file for iOS). If you don't generate new builds, even though you have the code for the plugin, the plugin won't work. It needs to be added to the APK / IPA files.

2) Make sure that you are always testing the last version. Everytime you generate new builds, you should test these new builds. In order to do this, you should uninstall the old application from your testing device(s) and install the newer version.

3) A plugin is a module that acts as a wrapper for an Apache Cordova plugin and enables you to use native mobile features. So, they run only on mobile devices and they don't run on browsers. That's why you will never be able to test a plugin using a browser. Every single Check<Plugin>Plugin action will return False if it's running via browser.

4) These same rules apply when you change the name, the icon or the extensibility configurations of your application. In these scenarios, you need to generate new builds again in order to see the changes.


Kind regards,

Rui Barradas

UserImage.jpg
Anusha Reddy

Rui Barradas wrote:

Hello Anusha,


Just some quick notes for the future (some of them Assif and Irfan already told you):

1) Everytime you add a new plugin to your application, you need to generate new builds again (APK file for Android and IPA file for iOS). If you don't generate new builds, even though you have the code for the plugin, the plugin won't work. It needs to be added to the APK / IPA files.

2) Make sure that you are always testing the last version. Everytime you generate new builds, you should test these new builds. In order to do this, you should uninstall the old application from your testing device(s) and install the newer version.

3) A plugin is a module that acts as a wrapper for an Apache Cordova plugin and enables you to use native mobile features. So, they run only on mobile devices and they don't run on browsers. That's why you will never be able to test a plugin using a browser. Every single Check<Plugin>Plugin action will return False if it's running via browser.

4) These same rules apply when you change the name, the icon or the extensibility configurations of your application. In these scenarios, you need to generate new builds again in order to see the changes.


Kind regards,

Rui Barradas


Hi Rui, Thank you...

UserImage.jpg
Tejas Mendse

Thank you , 

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