apache / apache/cordova-plugin-inappbrowser

documenting the custom schemes handling

Open
#356 4 comments 2 reactions 0 assignees View on GitHub
enhancement platform: android platform: ios topic: custom-url-schemes
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

I am not native english so I cant create a pr for this, but we need to documente the lastest changes in custom schemes handling (https://github.com/apache/cordova-plugin-inappbrowser/pull/263 and https://github.com/apache/cordova-plugin-inappbrowser/pull/274)

the things to document:
for example to allow whatsapp custom scheme and twitter
+ add new config.xml preference with the custom schemes you want to support:
```
`
```
+ add event listeners customscheme:
```
inAppBrowserRef.addEventListener('customscheme', function (event) {
//do whatever you want here like:
window.open(event.url, "_system");
});
```

Contributor guide

Open the contributing guide

Research direction

Review pull requests 263 and 274 first to understand the latest custom-scheme behavior, then find the plugin's current configuration and InAppBrowser event documentation. Done means documenting the AllowedSchemes preference with the whatsapp and twitter example and showing how to listen for the customscheme event.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, mobile-dev
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.