R
R
referakk2022-01-10 21:58:14
JavaScript
referakk, 2022-01-10 21:58:14

Is it possible to link a website to an Android app?

Hello.

The WP site has an Android application (just a "naked" WebView, without a native menu or screens) Plz tell me

if it's possible to somehow integrate payment via Google in-app purchase in the application into the site (now there is payment by card on the site)

And enable notifications so that site users can customize what notifications and when they want to receive them?

I created a task on a couple of freelance exchanges, but there are no responses ... maybe it's just impossible?

UPD: It's not that, by any chance?
https://android-tools.ru/coding/vzaimodejstvie-web...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg, 2022-01-11
@referakk

https://developer.android.com/guide/webapps/webview
read about Binding JavaScript code to Android code
WebViewClient shouldOverrideUrlLoading() this catches clicks on links
https://habr.com/ru/post/584780/ and other google how making purchases
you will also find it useful how to validate a purchase on your license server.
Unfortunately, the api for the server side is very limited. Almost everything is reduced to the fact whether such a purchase is paid for or not by its unique identifier. There is no email search via api.
Well, your WordPress site will also have to file.

A
AlexVWill, 2022-01-10
@AlexVWill

you can ... if you write sensibly what and where to do

N
Nikolay Savelyev, 2022-01-10
@AgentSmith

Can. But in Google Play, such applications cannot be placed according to the rules of the store.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question