apache / apache/cordova-plugin-inappbrowser
InAppBrowser Is Undefined During App Runtime
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
# Bug Report
InAppBrowser Is Undefined During App Runtime
## Problem
Attempting to call the InAppBrowser.open() method results in a TypeError: Cannot read property 'open' of undefined. No recent code changes to this code segment have occurred (it worked as expected on earlier builds), and the call is wrapped inside a platform.ready() call.
### What is expected to happen?
The InAppBrowser.open() call should open an in app browser, prompting the user to log in.
### What does actually happen?
The InAppBrowser is undefined during execution, resulting in a TypeError that causes an indefinite spinner wheel on the start page of the application.
## Information
This was encountered upon switching from Nevercode to Codemagic and attempting to run a new build in Codemagic. The underlying code segment that is now throwing a TypeError has not changed.
### Command or Code
window.cordova.InAppBrowser.open( ... )
### Environment, Platform, Device
We are experiencing this issue on Android platform version 8.0.0, using an Android device.
### Version information
Cordova version 9.0.0, Android platform version 8.0.0, and Node version 10.0.0.
## Checklist
- [ x ] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [ x ] I included all the necessary information above
Contributor guide
Research direction
The reported entry point is window.cordova.InAppBrowser.open(...); start by checking the Codemagic Android build and whether the InAppBrowser plugin is installed and available at runtime. No source file or test is named. Done means the call is defined on Android 8.0.0 and opens the login browser without the spinner.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, javascript, node.js
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100