Hybrid Mobile Apps Installation

Heap should work with Cordova on iOS out-of-the-box, and on Android with some slight modifications. For Android, add this line within /android/CordovaLib/src/org/apache/cordova/engine/SystemCookieManager.java:

CookieManager.setAcceptFileSchemeCookies(true);

To work, setAcceptFileSchemeCookies(true) has to be run before CookieManager is instantiated. For example:

public SystemCookieManager(WebView webview) {
            webView = webview;
            CookieManager.setAcceptFileSchemeCookies(true);
            cookieManager = CookieManager.getInstance();

            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
                cookieManager.setAcceptThirdPartyCookies(webView, true);
            }
        }

If you use Crosswalk, Cordova and Ionic will work on Android if you add this line within platforms/android/src/org/crosswalk/engine/XWalkCordovaCookieManager.java:

public XWalkCordovaCookieManager() {
            cookieManager = new XWalkCookieManager();      ///forces file cookies
            cookieManager.setAcceptFileSchemeCookies(true);
            }

Updated 2 months ago

Hybrid Mobile Apps Installation


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.