EddyVerbruggen / Custom-URL-scheme

:link: Launch your Cordova/PhoneGap app by a Custom URL scheme like mycoolapp://
1.03k stars 367 forks source link

shceme doesn't working. help #308

Open Macfa opened 4 years ago

Macfa commented 4 years ago

hello

My problem is When the button is pressed, Attempt to execute Pay DemoActivity file using URL SCHEME called paysample but failed.

The app runs in the MainActivity, PayDemoActivity and URL SCHEME are defined to display the payment window when the button is pressed.

But samplepay: // didn't work in the browser.

The URL SCHEME does not seem to be set properly Please check the code

cordova --version 9.0.0 (cordova-lib@9.0.1)

I installed the plugin using https://github.com/EddyVerbruggen/Custom-URL-scheme and followed the guide. ( Automatically (CLI / Plugman) ) // cordova plugin add https://github.com/EddyVerbruggen/Custom-URL-scheme.git --variable URL_SCHEME=paysample

here is my code

AndroidManifest.xml `

`

Config.xml `

<plugin name="LaunchMyApp" value="nl.xservices.plugins.LaunchMyApp" />
<feature name="Custom URL scheme">
    <param name="id" value="cordova-plugin-customurlscheme" />
    <param name="url" value="https://github.com/EddyVerbruggen/Custom-URL-scheme.git" />
    <variable name="URL_SCHEME" value="paysample" /><!-- change as appropriate -->
</feature>

`

pay.php ... <a href="paysample://" class="button_orange_white payment">결제하기</a> ...

PayDemoActivity ... private final String SCHEME = "paysample://"; ...