S_S
S_S

Reputation: 1412

Apache Cordova show HTML source from web service

I have a web service which returns the HTML code (source) as response. How can I render the response in the Cordova App on Android platform? The response is from a payment gateway transaction web service request.

Upvotes: 0

Views: 38

Answers (1)

Amir
Amir

Reputation: 1683

You can either save the results as HTML or use the URL and then the "Webview" object to show your results. See the tutorials here:

Cordova Webview

Put your response here: cwv.loadUrl(Config.getStartUrl());

An example is here: https://github.com/apache/cordova-android/blob/master/framework/src/org/apache/cordova/CordovaWebView.java

Upvotes: 1

Related Questions