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.
Hi Anusha Reddy,
We have to generate a new build when we add a new plugin to the project.
Note: Any of the forge cordova plugin doesn't support on the browser.
assif_tiger wrote:
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.
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".
Hi Anusha,
Make sure that the target in the OPEN client action set to "Entities.Target.System"
Irfan wrote:
Hi Irfan,
The target is set to "Entities.Target.System".
Can you please debug it, whether it is showing the Plugin.available is TRUE or FALSE
Getting false after doing debug.
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.
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
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.
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.
Anusha Reddy wrote:
Good, Happy to know.
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
Rui Barradas wrote:
Hi Rui, Thank you...
Thank you ,