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

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

Open
pavel-kuznetsov-hypertrack opened this issue Feb 28, 2023 · 0 comments
Open

Comments

@pavel-kuznetsov-hypertrack

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.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant