How does the javascript-H5 page interact with the APP (iOS, Android?

Source: Internet
Author: User
I asked a similar question, but all the respondents were android. Is there any iOS client? Perform an activity and embed an H5 page in the app. How does one allow users to click the button on the H5 page to jump to another page of the APP? For example, you can click the recharge button on the H5 page to jump to the recharge page (... I asked a similar question, but all the respondents are Android. Is there an iOS client?

Perform an activity and embed an H5 page in the app.

How does one allow users to click the button on the H5 page to jump to another page of the APP?

For example, click the recharge button on the H5 page to jump to the recharge page (this page is a native APP), click the Buy Now button to jump to the product page (this page is a native APP ).

How does H5 interact with the APP?

What should I do in the background?

Is there an example?

Please advise me.

Another similar question

Reply content:

I asked a similar question, but all the respondents were android. Is there any iOS client?

Perform an activity and embed an H5 page in the app.

How does one allow users to click the button on the H5 page to jump to another page of the APP?

For example, click the recharge button on the H5 page to jump to the recharge page (this page is a native APP), click the Buy Now button to jump to the product page (this page is a native APP ).

How does H5 interact with the APP?

What should I do in the background?

Is there an example?

Please advise me.

Another similar question

In the UIwebView control, request the Html5 page,
In- (void)webViewDidFinishLoad:(UIWebView *)webViewCall in this methodStringByEvaluatingJavaScriptFromString: @ "js code"Interact with js, retrieve the url address corresponding to the button on the Html5 page, and then create another page to transfer the value ..

Pseudocode:

Another page: Page2.h @ property (nonatomic, strong) NSString * url; current page: UIWebView * view = [UIwebView allco] init];-(void) webViewDidFinishLoad :( UIWebView *) webView {NSString * str = [view stringByEvaluatingJavaScriptFromString: @ "document. getElementById ('')"]; // Page2 * p = [Page2 alloc] init]; p. url = str; [self. navigationController pushViewController: p animated: YES ..

URL schemes in iOS?

IOSPlease use https://github.com/marcuswest...

AndroidPlease use https://github.com/lzyzsd/JsB...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.