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 *)webView
Call 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...