Skip to content

Commit eedc500

Browse files
authored
Create recaptcha.html
1 parent 4603fef commit eedc500

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

recaptcha.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>reCAPTCHA v3 Triggered by Native</title>
5+
<script src="https://www.google.com/recaptcha/api.js?render=6Lf0Vh8rAAAAAHe2eKBCN1RtGXTIJn3SEuPdleGJ"></script>
6+
<script>
7+
function runRecaptcha() {
8+
grecaptcha.ready(function () {
9+
grecaptcha.execute('6Lf0Vh8rAAAAAHe2eKBCN1RtGXTIJn3SEuPdleGJ', { action: 'from_native_button' }).then(function (token) {
10+
Android.onTokenReceived(token); // Send token to Android
11+
});
12+
});
13+
}
14+
</script>
15+
</head>
16+
<body>
17+
<p>Waiting for native trigger...</p>
18+
</body>
19+
</html>
20+

0 commit comments

Comments
 (0)