Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

No response from Promise on HyperTrack.initialize() #5

@pavel-kuznetsov-hypertrack

Description

When calling HyperTrack.initialize() on transitional-api branch (#4) the native code is called, but there is no response.

node_modules/@awesome-cordova-plugins/hyper-track/index.js

HyperTrack.initialize = function (publishableKey) {
        return new Promise(function (resolve, reject) {
            console.log("1")
            new HyperTrackPluginOriginal()
                .initialize(publishableKey)
                .then(function (cordovaInstance) {
                    console.log("2")
                resolve(new HyperTrack(cordovaInstance));
            })
                .catch(function (err) { return reject(err); });
        });
    };

"1" is printed, "2" isn't. No error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions