Giter VIP home page Giter VIP logo

Comments (5)

rphansen91 avatar rphansen91 commented on July 17, 2024

Here is the gist of the branch initialization code

var nativeAppTypeProvider = {}
nativeAppTypeProvider.AndroidDeviceReady = function () {        
    if (branch && typeof branch.init == "function") {
        branch.init(ENVIRONMENT.branchKey, function(err, data) {
            alert(JSON.stringify(data))
            alert(JSON.stringify(err))
            branch.first(function (firstErr, firstData) {
                alert(JSON.stringify(firstErr))
                alert(JSON.stringify(firstData))
                branch.close()
            })
        })
    } else {
        alert("Branch not initialized")
    }
}

document.addEventListener('deviceready', nativeAppTypeProvider.AndroidDeviceReady, false)

On the first open/load of the app branch initializes and the init and first callbacks fire successfully, however on subsequent attempts after a hard close of the app branch is typeof Object however branch.init is undefined within the scope of the nativeAppTypeProvider.AndroidDeviceReady function after the deviceready event

from cordova-ionic-phonegap-branch-deep-linking-attribution.

requested avatar requested commented on July 17, 2024

Any progress with this? I'm experiencing the same issue right now.

from cordova-ionic-phonegap-branch-deep-linking-attribution.

aaustin avatar aaustin commented on July 17, 2024

We're about to dig in and spend substantial time upgrading this repo. Give us a couple days.

from cordova-ionic-phonegap-branch-deep-linking-attribution.

jsaleigh avatar jsaleigh commented on July 17, 2024

Hi @rphansen91, we recently made a change which may help with the issue you're seeing, both on the master branch and tagged with v1.7.1

If you are still seeing the issue with this new build, please let me know.

from cordova-ionic-phonegap-branch-deep-linking-attribution.

aaustin avatar aaustin commented on July 17, 2024

Closing since it was addressed in earlier version

from cordova-ionic-phonegap-branch-deep-linking-attribution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.