Giter VIP home page Giter VIP logo

Comments (73)

renesansz avatar renesansz commented on July 17, 2024 2

@asafco4 ,
What I mean by global is just to put the function outside the Angular scope.
Or just try to create a script tag.

<script>
function DeepLinkHandler(data) {
     console.log(data);
}
</script>

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

madc0w avatar madc0w commented on July 17, 2024 1

I'm back with a bit more information.

Shortly after startup, I see:

< branch-config > tag is not set in the config.xml. Universal Links plugin is not going to work.

So... that can't be good.

Also, attempting to initSession in the "resume" handler results in the behavior described above. If I do the initSession in the "deviceready" handler only, then I (sometimes!) see a different error message:

Uncaught (in promise) ReferenceError: DeepLinkHandler is not defined

According to https://dev.branch.io/getting-started/deep-link-routing/advanced/cordova/ , I need to "add a function called DeepLinkHandler". I did, in various places, none of which resolved this error. Since no mention is made of where or to what precisely this function is to be added, I'm pretty sure the Branch object is not finding it.

I have yet to isolate the exact conditions which determine which error will be produced. As far as I can tell, it's completely random. Nonetheless, when this happens, then I am finally able to generate the link! The code given in the docs here https://dev.branch.io/getting-started/creating-links-in-apps/guide/cordova/ is, however, wrong. res.generatedUrl is undefined. The generated URL seems to be instead in res.url.

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

actechllc avatar actechllc commented on July 17, 2024 1

@madc0w , I get the same error, please update if you have a solution...
It appears even though that function exists!

// Init Branch
document.addEventListener('resume', onResume, false);
document.addEventListener('deviceready', onDeviceReady, false);

function onResume() {
console.log("Branch onResume()");
Branch.initSession();
console.log("Branch Resumed...");
}

function onDeviceReady() {
console.log("Branch onDeviceReady()");
Branch.initSession();
console.log("Branch onDeviceReady ended...");
}

function DeepLinkHandler(data) {
console.log("Branch DeepLinkHandler: Activated");
}

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

aaustin avatar aaustin commented on July 17, 2024 1

Hey guys - I'm really sorry about the lack of response. We should have re-opened this issue for it to get attention. I'm re-opening it now and forwarding it to the engineers.

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

aaustin avatar aaustin commented on July 17, 2024

@tkuben Thanks for the heads up - I'm poking a couple engineers who can take a look. Thanks!

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

tkuben avatar tkuben commented on July 17, 2024

I've updated the build.gradle from:

defaultConfig {
        versionCode cdvVersionCode ?: Integer.parseInt("" + privateHelpers.extractIntFromManifest("versionCode") + "0")
        if (cdvMinSdkVersion != null) {
            minSdkVersion cdvMinSdkVersion
        }
    }

    compileSdkVersion cdvCompileSdkVersion
    buildToolsVersion cdvBuildToolsVersion

To

    defaultConfig {
        if (cdvMinSdkVersion != null) {
            minSdkVersion cdvMinSdkVersion
        }
        minSdkVersion 19
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    compileSdkVersion 23
    buildToolsVersion '23.0.1'

With this I am getting the following errors:

:compileDebugJava
/Users/tkuben/Documents/webroot/riipe/mobile/platforms/android/src/io/branch/BranchSDK.java:776: error: cannot find symbol

                PluginResult result = new PluginResult(PluginResult.Status.OK);

                ^

  symbol:   class PluginResult

  location: class BranchSDK.ShowShareSheetListener

/Users/tkuben/Documents/webroot/riipe/mobile/platforms/android/src/io/branch/BranchSDK.java:776: error: cannot find symbol

                PluginResult result = new PluginResult(PluginResult.Status.OK);

                                          ^

  symbol:   class PluginResult

  location: class BranchSDK.ShowShareSheetListener

/Users/tkuben/Documents/webroot/riipe/mobile/platforms/android/src/io/branch/BranchSDK.java:776: error: package PluginResult does not exist

                PluginResult result = new PluginResult(PluginResult.Status.OK);

                                                                   ^

/Users/tkuben/Documents/webroot/riipe/mobile/platforms/android/src/io/branch/BranchSDK.java:790: error: cannot find symbol

                PluginResult result = new PluginResult(PluginResult.Status.OK);

                ^
... 

Ideally I do not want to set my target SDK Version to 6.0. I would like to keep it at 5.0. Your help would be much appreciated.

Cheers,
TJ

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

MathildeLemee avatar MathildeLemee commented on July 17, 2024

I've got the same error :( So can't use the new plugin on android.

 symbol:   class PluginResult
  location: class BranchSDK.ShowShareSheetListener
/Users/L/code/magic/platforms/android/src/io/branch/BranchSDK.java:861: error: package PluginResult does not exist
                PluginResult result = new PluginResult(PluginResult.Status.OK, response);

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

Elpetro avatar Elpetro commented on July 17, 2024

Same problem... Seems like "autoverify=true" added in manifest file makes it only compliant with Android M.
Trying to revert to 1.8.0 fails also, please fix reverting to 1.8.0 at least :

$ cordova plugin add [email protected]
Fetching plugin "[email protected]" via npm
Fetching plugin "[email protected]" via cordova plugins registry
Error: Failed to fetch plugin [email protected] via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: 404 Not Found: io.branch.sdk

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

olliebennett avatar olliebennett commented on July 17, 2024

Also have this problem. Seeing the exact same error around PluginResult, and likewise cannot downgrade to an older version.

Have tried with cordova versions 6.0.0 and 5.4.1.

$ cordova plugin list
cordova-plugin-android-support-v4 21.0.1 "Android Support v4"
cordova-plugin-app-version 0.1.8 "AppVersion"
cordova-plugin-camera 2.1.0 "Camera"
cordova-plugin-console 1.0.2 "Console"
cordova-plugin-device 1.1.1 "Device"
cordova-plugin-facebook4 1.0.0 "Facebook Connect"
cordova-plugin-file 4.1.1 "File"
cordova-plugin-file-transfer 1.5.0 "File Transfer"
cordova-plugin-globalization 1.0.2 "Globalization"
cordova-plugin-inappbrowser 1.2.1 "InAppBrowser"
cordova-plugin-splashscreen 3.1.0 "Splashscreen"
cordova-plugin-statusbar 2.1.1 "StatusBar"
cordova-plugin-whitelist 1.2.1 "Whitelist"
cordova-plugin-x-socialsharing 5.0.10 "SocialSharing"
io.branch.sdk 1.0.0 "branch-cordova-sdk"
ionic-plugin-keyboard 1.0.8 "Keyboard"
pushbots-cordova-plugin 1.3.5 "Pushbots"
$ cordova platform list
Installed platforms: android 5.1.1, ios 4.0.1

Installing cordova-plugin-crosswalk-webview also makes no difference.

Currently having to remove branch altogether in order to get a functioning build together!

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

olliebennett avatar olliebennett commented on July 17, 2024

Update: I've "downgraded" for now by explicitly defining the git commit hash (b89bb4a) for the commit prior to this branch being merged:

cordova plugin add https://github.com/BranchMetrics/Cordova-Ionic-PhoneGap-Deferred-Deep-Linking-SDK#b89bb4a9bf2e0eca7c9f9a51dae7c61a61c15e0f --variable BRANCH_LIVE_KEY="ABC" --variable URI_SCHEME="my-app" 

However, this just changes my error from the PluginResult one to the No resource identifier found for attribute 'autoVerify' in package 'android' one...

Reverting further back (I picked 0ff9e8fbdd6b11a6b97f4726477d9fd34e820e4b pretty much at random) and I don't get the autoVerify problem either.

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

aaustin avatar aaustin commented on July 17, 2024

Hey team - sorry about this. I've alerted the engineers to take a look but they didn't get a chance. Does it seem like the root cause is the auto verify stuff? I'll ask them to remove it.

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

tkuben avatar tkuben commented on July 17, 2024

Hi @aaustin

Unfortunately, the auto verify does not seem to be the issue regarding the errors with PluginResult. It is an issue that we have to use the latest SDK to compile, however we still have compile issues with the autoverify removed. I modified the android.json & AndroidManifest.xml to remove the autoVerify="true" and I am still getting...

:compileDebugJava
/Users/tkuben/Documents/webroot/riipe/mobile/platforms/android/src/io/branch/BranchSDK.java:776: error: cannot find symbol

                PluginResult result = new PluginResult(PluginResult.Status.OK);

                ^
  symbol:   class PluginResult
  location: class BranchSDK.ShowShareSheetListener

/Users/tkuben/Documents/webroot/riipe/mobile/platforms/android/src/io/branch/BranchSDK.java:776: error: cannot find symbol

                PluginResult result = new PluginResult(PluginResult.Status.OK);

                                          ^

  symbol:   class PluginResult

  location: class BranchSDK.ShowShareSheetListener

/Users/tkuben/Documents/webroot/riipe/mobile/platforms/android/src/io/branch/BranchSDK.java:776: error: package PluginResult does not exist

                PluginResult result = new PluginResult(PluginResult.Status.OK);
....

Your help in resolving this issue would be much appreciated.

Cheers,
TJ

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

tkuben avatar tkuben commented on July 17, 2024

Hi @aaustin

The issue is caused by the fact that in: ./src/android/io/branch/BranchSDK.java, PluginResult from cordovaLib is referenced, however is not imported. Please commit the following changeset to your codebase. I tried to create a new branch on your repo, however I got permission denied. If you grant me access I can create a branch and create a pull request for you.

diff --git a/src/android/io/branch/BranchSDK.java b/src/android/io/branch/BranchSDK.java
index a26bf31..5b6612d 100644
--- a/src/android/io/branch/BranchSDK.java
+++ b/src/android/io/branch/BranchSDK.java
@@ -6,6 +6,7 @@ import android.util.Log;

 import org.apache.cordova.CallbackContext;
 import org.apache.cordova.CordovaPlugin;
+import org.apache.cordova.PluginResult;

 import org.json.JSONArray;
 import org.json.JSONException;

We also do need to remove the autoVerify as this is causing issues with setting our targetSDK to 6.0 which is not good as a requirement.

Cheers,
TJ

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

ZackMattor avatar ZackMattor commented on July 17, 2024

I'm testing @tkuben's solutions and will create a PR if it works.

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

ZackMattor avatar ZackMattor commented on July 17, 2024

@tkuben, i'm still getting processDebugResources FAILED ... did you get past that with your build.gradle changes?

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

tkuben avatar tkuben commented on July 17, 2024

@ZackMattor What is the Failed message you are getting? Yes I did get past with my original build.gradle that was generated using phonegap:

defaultConfig {
        versionCode cdvVersionCode ?: Integer.parseInt("" + privateHelpers.extractIntFromManifest("versionCode") + "0")
        if (cdvMinSdkVersion != null) {
            minSdkVersion cdvMinSdkVersion
        }
    }

    compileSdkVersion cdvCompileSdkVersion
    buildToolsVersion cdvBuildToolsVersion

However, I did need to modify my AndroidManifest.xml & android.json to remove the android:autoVerify="true"

Can you post the entire Failed message please?

Cheers,
TJ

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

ZackMattor avatar ZackMattor commented on July 17, 2024

@tkuben Yup.. it's requiring an android SDK version 23+ ... this is quite a problem considering that's solely for android 6.0+ ;)

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

tkuben avatar tkuben commented on July 17, 2024

Exactly @ZackMattor @aaustin. We cannot tie our app just to 6.0+ so thats why I removed the autoverify. Were you able to build, run & test after removing the autoverify and applying my patch?

Cheers,
TJ

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

ZackMattor avatar ZackMattor commented on July 17, 2024

I didn't have to remove autoverify to build.. just bumped up the built sdk and applied your patch... it still runs on the android 5.x devices... I don't have a 4.x phone to test it on...

Let me make sure we still have branch functionality in 5.x, just because it builds and runs.. doesn't always mean it works.

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

ZackMattor avatar ZackMattor commented on July 17, 2024

@tkuben is there anyway to set the SDK version in config.xml that you know of?.... The only reference for that i see is for phonegap and doesn't seem to be working...

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

jestoniyap avatar jestoniyap commented on July 17, 2024

Hello @tkuben and @ZackMattor, I'm here to help you guys with the issue. Can you give me the summary of the details of the issue you are experiencing as well as the environment you have right now in your machine (npm version, cordova version, etc) so we can test it here on our end? Thank you for your patience.

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

gabaum10 avatar gabaum10 commented on July 17, 2024

So I'm having the same issue too. Here is my setup.

-building through phonegap build
-cli-6.0.0
-npm plugin version 2.0
-android target api:21
-android min api:14

I haven't had the time to set up a local environment yet, but the pgb servers areally getting the same error outlined here with this setup.

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

gabaum10 avatar gabaum10 commented on July 17, 2024

Also, interestingly, as mentioned in #51 if you build out of npm, you won't get this error, but iOS will fail. If you build out of master, iOS will build but android will fail.

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

ZackMattor avatar ZackMattor commented on July 17, 2024

On master...

npm -v
2.12.1

cordova -v
5.4.1
    <preference name="android-minSdkVersion" value="19" />
    <preference name="android-targetSdkVersion" value="23"/>
$ cordova build android --stacktrace --debug

:mergeDebugAssets UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources
/Users/zmattor/work/adored/adored-ember/cordova/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:72: error: No resource identifier found for attribute 'autoVerify' in package 'android'

:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
        /Users/zmattor/Library/Android/sdk/build-tools/23.0.2/aapt package -f --no-crunch -I /Users/zmattor/Library/Android/sdk/platforms/android-22/android.jar -M /Users/zmattor/work/adored/adored-ember/cordova/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /Users/zmattor/work/adored/adored-ember/cordova/platforms/android/build/intermediates/res/debug -A /Users/zmattor/work/adored/adored-ember/cordova/platforms/android/build/intermediates/assets/debug -m -J /Users/zmattor/work/adored/adored-ember/cordova/platforms/android/build/generated/source/r/debug -F /Users/zmattor/work/adored/adored-ember/cordova/platforms/android/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package com.getadored.adored -0 apk --output-text-symbols /Users/zmattor/work/adored/adored-ember/cordova/platforms/android/build/intermediates/symbols/debug
  Error Code:
        1
  Output:
        /Users/zmattor/work/adored/adored-ember/cordova/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:72: error: No resource identifier found for attribute 'autoVerify' in package 'android'



* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.958 secs

/Users/zmattor/work/adored/adored-ember/cordova/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
Error code 1 for command: /Users/zmattor/work/adored/adored-ember/cordova/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/zmattor/work/adored/adored-ember/cordova/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error: /Users/zmattor/work/adored/adored-ember/cordova/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: /Users/zmattor/work/adored/adored-ember/cordova/platforms/android/cordova/build: Command failed with exit code 1

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

renesansz avatar renesansz commented on July 17, 2024

@gabaum10
I've tried installing the plugin thru phonegap and I only get the PluginResult error, however I'm going to submit a fix later on for this..
However I can't replicate other issues aside from what you've specified.

Could you try building it out locally first?.
Make sure to just modify partially the missing import PluginResult in Java source code.

Also, could you comment your current config.xml? Thanks

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

gabaum10 avatar gabaum10 commented on July 17, 2024

@ReneSanz, you can specify to build out of the git master if you set the "value" property to the git url. If you do that the PluginResult issue is indeed fixed, and you'll see the issue I'm talking about.

I'll post my config when I get to a computer.

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

gabaum10 avatar gabaum10 commented on July 17, 2024

@renesansz it looks like the only error I'm still getting in master is the PluginResult error. Once that is merged in, it looks like everything should work. iOS is building correctly.

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

aaustin avatar aaustin commented on July 17, 2024

@gabaum10 I pushed the fix for this to NPM. Please confirm it's resolved?

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

ZackMattor avatar ZackMattor commented on July 17, 2024

@aaustin, we were playing with the PR before it got merged, and it seems to be working! Thank you! 👍

We will test the NPM package soon, but i'm sure it will work.

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

aaustin avatar aaustin commented on July 17, 2024

Thanks for your feedback guys :)

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

gabaum10 avatar gabaum10 commented on July 17, 2024

This is working for me.

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

madc0w avatar madc0w commented on July 17, 2024

It looks like the latest version of the Cordova plugin is still 2.0.2:

https://cordova.apache.org/plugins/?q=branch

Can you give some indication of when this fix will be pushed to the Cordova plugin repo?

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

aaustin avatar aaustin commented on July 17, 2024

@madc0w deployed 2.0.3 to NPM - please give it a try!

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

madc0w avatar madc0w commented on July 17, 2024

I am using Cordova via Meteor. Adding an NPM module to Meteor seems quite complicated... Adding a plugin from the standard Cordova repo is easy, though.

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

madc0w avatar madc0w commented on July 17, 2024

I've tried using the meteorhacks:npm package to add this NPM module. Unfortunately, this package only allows access to the NPM module on the server side, whereas it seems to make use of "window", requiring client-side execution. So... I tried using browserify (see https://react-in-meteor.readthedocs.org/en/latest/client-npm/ )... but that was no help, either:

W20160314-16:14:34.367(1)? (STDERR) ReferenceError: window is not defined
W20160314-16:14:34.368(1)? (STDERR) at node_modules/branch-sdk/dist/build.min.js:5:1
W20160314-16:14:34.368(1)? (STDERR) at Object. (node_modules/branch-sdk/dist/build.min.js:78:1)
W20160314-16:14:34.368(1)? (STDERR) at s (../../../../../.meteor/packages/cosmos_browserify/.0.10.0.zzcf9t++os+web.browser+web.cordova/plugin.CosmosBrowserify.os/npm/CosmosBrowserify/node_modules/browserify/node_modules/browser-pack/_prelude.js:1:1)
W20160314-16:14:34.368(1)? (STDERR) at ../../../../../.meteor/packages/cosmos_browserify/.0.10.0.zzcf9t++os+web.browser+web.cordova/plugin.CosmosBrowserify.os/npm/CosmosBrowserify/node_modules/browserify/node_modules/browser-pack/_prelude.js:1:1
W20160314-16:14:34.368(1)? (STDERR) at Object.branch-sdk (_stream_0.js:1:1)
W20160314-16:14:34.369(1)? (STDERR) at s (../../../../../.meteor/packages/cosmos_browserify/.0.10.0.zzcf9t++os+web.browser+web.cordova/plugin.CosmosBrowserify.os/npm/CosmosBrowserify/node_modules/browserify/node_modules/browser-pack/_prelude.js:1:1)
W20160314-16:14:34.369(1)? (STDERR) at e (../../../../../.meteor/packages/cosmos_browserify/.0.10.0.zzcf9t++os+web.browser+web.cordova/plugin.CosmosBrowserify.os/npm/CosmosBrowserify/node_modules/browserify/node_modules/browser-pack/_prelude.js:1:1)
W20160314-16:14:34.369(1)? (STDERR) at ../../../../../.meteor/packages/cosmos_browserify/.0.10.0.zzcf9t++os+web.browser+web.cordova/plugin.CosmosBrowserify.os/npm/CosmosBrowserify/node_modules/browserify/node_modules/browser-pack/_prelude.js:1:1
W20160314-16:14:34.369(1)? (STDERR) at node_modules/branch-sdk/dist/build.min.js:79:1
W20160314-16:14:34.369(1)? (STDERR) at /home/mad/spoticle/.meteor/local/build/programs/server/boot.js:242:10

I see that the version in the NPM repo 2.1.1. The version in the Cordova repo is currently 2.0.2. Can we please have an update in the Cordova repo?

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

madc0w avatar madc0w commented on July 17, 2024

It seems I spoke too soon. A Cordova plugin version 2.0.3 of branch-cordova-sdk is available from the Crodova repo. It requires many NPM modules, which must be added manually. After adding meteorhacks:npm, I added the following to packages.json:

{
"mkpath": "1.0.0",
"node-version-compare": "1.0.1",
"plist": "1.2.0",
"rimraf": "2.5.2",
"xml2js": "0.4.16"
}

And now, I get:

npm-container: updating npm dependencies -- mkdirp, mkpath, node-version-compare, plist, rimraf, xml2js...
Checking dependencies:plugins [===================== ] 76% 7.8s
Node module mkpath is found
Module mkpath is installed
Node module node-version-compare is found
Module node-version-compare is installed
Node module plist is found
Module plist is installed
Node module rimraf is found
Module rimraf is installed
Node module xml2js is found
Module xml2js is installed
% Error during processing of action! Attempting to revert...
% Failed to install 'io.branch.sdk':Error: Uh oh!
** "/home/mad/spoticle/.meteor/local/cordova-build/plugins/io.branch.sdk/src/ios/dependencies/Branch-SDK/BNCContentDiscoveryManager.m" not found! **
at Object.module.exports.common.copyFile (/home/mad/.meteor/packages/meteor-tool/.1.1.10.1aaar8u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/plugman/platforms/common.js:38:40)
at Object.module.exports.common.copyNewFile (/home/mad/.meteor/packages/meteor-tool/.1.1.10.1aaar8u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/plugman/platforms/common.js:69:16)
at installHelper (/home/mad/.meteor/packages/meteor-tool/.1.1.10.1aaar8u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/plugman/platforms/ios.js:54:16)
at Object.module.exports.source-file.install (/home/mad/.meteor/packages/meteor-tool/.1.1.10.1aaar8u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/plugman/platforms/ios.js:106:13)
at installWrapper (/home/mad/.meteor/packages/meteor-tool/.1.1.10.1aaar8u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/platforms/platforms.js:77:32)
at Object.ActionStack.process (/home/mad/.meteor/packages/meteor-tool/.1.1.10.1aaar8u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/plugman/util/action-stack.js:68:25)
at handleInstall (/home/mad/.meteor/packages/meteor-tool/.1.1.10.1aaar8u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/plugman/install.js:576:20)
at /home/mad/.meteor/packages/meteor-tool/.1.1.10.1aaar8u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/plugman/install.js:363:28
at _fulfilled (/home/mad/.meteor/packages/meteor-tool/.1.1.10.1aaar8u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/home/mad/.meteor/packages/meteor-tool/.1.1.10.1aaar8u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/home/mad/.meteor/packages/meteor-tool/.1.1.10.1aaar8u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/q/q.js:749:13)
at /home/mad/.meteor/packages/meteor-tool/.1.1.10.1aaar8u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/q/q.js:509:49
at flush (/home/mad/.meteor/packages/meteor-tool/.1.1.10.1aaar8u++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:448:13)

=> Errors executing Cordova commands:

While adding plugin [email protected] to Cordova project:
Error: Uh oh!

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

gabaum10 avatar gabaum10 commented on July 17, 2024

Known issue, see #71

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

madc0w avatar madc0w commented on July 17, 2024

Now with 2.0.5, I am able to get a little bit farther.

As per the docs here https://dev.branch.io/getting-started/sdk-integration-guide/guide/cordova/#start-a-branch-session , I attempt to init the session. Branch.initSession() returns without error, but then I see:

I20160315-17:04:10.717(1) (android:http://meteor.local/plugins/io.branch.sdk/www/branch.js:27) Uncaught (in promise) Attempt to invoke virtual method 'android.content.Context android.app.Activity.getApplicationContext()' on a null object reference

Later, when I attempt to generate a link using code from the docs here https://dev.branch.io/getting-started/creating-links-in-apps/guide/cordova/ :

        var branchUniversalObj = null;
        Branch.createBranchUniversalObject({
            canonicalIdentifier : comment._id,
            title : comment.headline,
            contentDescription : comment.text,
            contentImageUrl : image,
            contentMetadata : {
                userId : Meteor.user() ? Meteor.user()._id : null,
                userName : Meteor.user() ? Meteor.user().username : null
            }
        }).then(function(newBranchUniversalObj) {
            branchUniversalObj = newBranchUniversalObj;
        });

I see:

I20160315-17:08:46.560(1) (android:http://meteor.local/:0) Uncaught (in promise) Invalid action

The "then" function is never called, so branchUniversalObj == null.

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

madc0w avatar madc0w commented on July 17, 2024

Having received no reply to this thread, we finally gave up on Branch (after a solid week of hair-tearing) and just wrote the deep linking functionality ourselves. I can only suggest you do the same.

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

actechllc avatar actechllc commented on July 17, 2024

@madc0w , thanks for your reply.
Isn't writing it yourself very complicated? I know that Android has a built-in way to track referred installations but how did you do it on IOS?

Thanks!

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

actechllc avatar actechllc commented on July 17, 2024

@aaustin , thanks for your attention.
Please make sure that the re-open refer to the 2 issues both madc0w and I have:

  1. Warning message: < branch-config > tag is not set in the config.xml. Universal Links plugin is not going to work.
  2. Error message about missing function even though it's there!
    Uncaught (in promise) ReferenceError: DeepLinkHandler is not defined
    Cheers!

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

jestoniyap avatar jestoniyap commented on July 17, 2024

Hello @asafco4, we'll be taking a look at the second issue.
The first is just a warning message if you didn't set the branch-config tag in your config.xml. It is up to you if you want to support Universal Links for your app.

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

renesansz avatar renesansz commented on July 17, 2024

@madc0w @asafco4 ,

We haven't tested the plugin yet in Meteor JS, however in regards to the <branch-config> it was specified in the docs to put manually your config in your config.xml file.

See instruction

Also, can you provide us the details of your setup? (eg: version #, platform, etc.).
And also a step-by-step procedure in producing the bug.

Cheers,
Rene

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

actechllc avatar actechllc commented on July 17, 2024

@renesansz , thanks for the quick reply.

I have an app on Ionic/Cordova platform, the instructions I used are from:
https://dev.branch.io/getting-started/sdk-integration-guide/guide/cordova/#start-a-branch-session

I get this warning during the build process:
tag is not set in the config.xml. Universal Links plugin is not going to work.

My code is exactly like in the instructions example:
// Init Branch
document.addEventListener('resume', onResume, false);
document.addEventListener('deviceready', onDeviceReady, false);

function onResume() {
console.log("Branch onResume()");
Branch.initSession();
console.log("Branch Resumed...");
}

function onDeviceReady() {
console.log("Branch onDeviceReady()");
Branch.initSession();
console.log("Branch onDeviceReady ended...");
}

function DeepLinkHandler(data) {
console.log("Branch DeepLinkHandler: Activated");
}

I run the app, my app.js file code is loading, branch init session is called when the login page is ready, and I can see that error in the console using chrome inspect
The annoying thing is that function exists (as you can see).
Also, that worked for me couple days ago, didn't change code, just added IOS support for another plugin, not sure why would it affect it.
I use ionic run android, my plugged in device is Galaxy Edge 6 plus

Output of console:
Uncaught ReferenceError: DeepLinkHandler is not defined

Cheers!

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

renesansz avatar renesansz commented on July 17, 2024

@asafco4, no worries! 👍

However, I'm trying to replicate the issue and used your code but I was not able to reproduce the error: Uncaught (in promise) ReferenceError: DeepLinkHandler is not defined

I'm currently working on with the unhandled promise error (though it won't affect any functionalities of the app, I'm just making sure that all errors are handled correctly)

Would like to confirm if you're using the latest version of Branch Cordova?

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

actechllc avatar actechllc commented on July 17, 2024

Sure, please instruct me how to verify it.
On Apr 4, 2016 02:12, "Renemari Padillo" [email protected] wrote:

@asafco4 https://github.com/asafco4, no worries! [image: 👍]

However, I'm trying to replicate the issue and I was not able to reproduce
the error: Uncaught (in promise) ReferenceError: DeepLinkHandler is not
defined

https://camo.githubusercontent.com/3ab819f22d05e2e8f228440acc74fa84b2739c7c/687474703a2f2f692e696d6775722e636f6d2f626a643462636c2e706e67

I'm currently working on with the unhandled promise error (though it won't
affect any functionalities of the app, I'm just making sure that all errors
are handled correctly)

Would like to confirm if you're using the latest version of Branch Cordova?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#50 (comment)

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

renesansz avatar renesansz commented on July 17, 2024

cool, first let's verify if we're using the same versions of the plugin.

Can you post here the details?

Do the following:

cordova plugin -l
npm -v
cordova -v

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

actechllc avatar actechllc commented on July 17, 2024

cordova plugin -l:

cordova-plugin-console 1.0.2 "Console"
cordova-plugin-customurlscheme 4.1.5 "Custom URL scheme"
cordova-plugin-device 1.1.1 "Device"
cordova-plugin-email-composer 0.8.3 "EmailComposer"
cordova-plugin-file 4.1.1 "File"
cordova-plugin-geolocation 2.1.0 "Geolocation"
cordova-plugin-google-analytics 0.8.1 "Google Universal Analytics Plugin"
cordova-plugin-inappbrowser 1.3.0 "InAppBrowser"
cordova-plugin-media 2.2.0 "Media"
cordova-plugin-network-information 1.2.0 "Network Information"
cordova-plugin-splashscreen 3.2.1 "Splashscreen"
cordova-plugin-statusbar 2.1.2 "StatusBar"
cordova-plugin-whitelist 1.2.1 "Whitelist"
cordova-plugin-x-socialsharing 5.0.12-dev "SocialSharing"
es6-promise-plugin 3.0.2 "Promise"
io.branch.sdk 2.0.8 "branch-cordova-sdk"
ionic-plugin-keyboard 2.0.1 "Keyboard"
org.loicknuchel.cordova.deviceaccounts 0.0.1 "Device Accounts"
phonegap-plugin-push 1.6.1 "PushPlugin"

┌──────────────────────────────────────────┐
│ Update available: 6.1.1 (current: 5.4.0) │
│ Run npm install -g cordova to update. │
└──────────────────────────────────────────┘

npm -v:

3.3.6

cordova -v:

5.4.0

I see I need to update cordova...

On Mon, Apr 4, 2016 at 2:19 AM, Renemari Padillo [email protected]
wrote:

cool, first let's verify if we're using the same versions of the plugin.

Can you post here the details?

Do the following:

cordova plugin -l
npm -v
cordova -v

And post here the details.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#50 (comment)

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

renesansz avatar renesansz commented on July 17, 2024

Please do.

If the problem still persist could you do the following:

  1. Remove the platforms, cordova platform rm <ios/android>
  2. Remove the plugin cordova plugin rm io.branch.sdk
  3. Re-install the platform, cordova platform add <ios/android>
  4. Re-install the plugin, refer to the instructions

Let me know if still doesn't work.

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

actechllc avatar actechllc commented on July 17, 2024

still not working :(
Maybe we can get on Skype or something to share my code with you?

On Mon, Apr 4, 2016 at 2:28 AM, Renemari Padillo [email protected]
wrote:

Please do.

If the problem still persist could you do the following:

  1. Remove the platforms, cordova platform rm <ios/android>
  2. Remove the plugin cordova plugin rm io.branch.sdk
  3. Re-install the platform, cordova platform add <ios/android>
  4. Re-install the plugin, refer to the instructions
    https://github.com/BranchMetrics/Cordova-Ionic-PhoneGap-Deferred-Deep-Linking-SDK#command-line-install

Let me know if still doesn't work.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#50 (comment)

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

actechllc avatar actechllc commented on July 17, 2024

I get the following debug message:
Branch onDeviceReady()
Branch onDeviceReady ended...

but still has that damn error later:
"Uncaught ReferenceError: DeepLinkHandler is not defined"

Maybe it expects to have that function in a different scope? maybe the
function should be global or something?
Why is it even called? there's no branch data sent or used currently.

Please assist, I'm getting closer to just give up :(

On Mon, Apr 4, 2016 at 11:53 AM, Asaf Cohen [email protected] wrote:

still not working :(
Maybe we can get on Skype or something to share my code with you?

On Mon, Apr 4, 2016 at 2:28 AM, Renemari Padillo <[email protected]

wrote:

Please do.

If the problem still persist could you do the following:

  1. Remove the platforms, cordova platform rm <ios/android>
  2. Remove the plugin cordova plugin rm io.branch.sdk
  3. Re-install the platform, cordova platform add <ios/android>
  4. Re-install the plugin, refer to the instructions
    https://github.com/BranchMetrics/Cordova-Ionic-PhoneGap-Deferred-Deep-Linking-SDK#command-line-install

Let me know if still doesn't work.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#50 (comment)

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

renesansz avatar renesansz commented on July 17, 2024

@asafco4 ,
I don't know if I'm allowed to do that since I'm just a contractor for this project, I apologize for the inconvenience.
At the moment I can only assist you through replying to this issue.
An alternative would be recording a video or create screenshots in producing the bug (make sure to show and explain the project structure, the command line path, the codes, basically everything) so that I may able to get the full picture of your setup.

The reason why DeepLinkHandler is being called is due to initSession. See this code, line 802 & 814 .

I know this could be silly, but sometimes I do commit this kind of mistake...
First is try to modify your Javascript file and try to put any code that would indicate that it was being called, let's say just an alert method (make sure it is being executed before the uncaught error). See if the changes reflects upon re-building the app.

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

tkuben avatar tkuben commented on July 17, 2024

Hi @asafco4

It probably is a scope issue. You should inspect all the JS files the app is trying to load. Particularly look to see if a file called branch.js is being loaded from the root of your application. If so, can you try touching (a blank file) a file at the root of your application called branch.js and try loading the app again?

Hope it helps.
Cheers,
TJ

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

actechllc avatar actechllc commented on July 17, 2024

Sorry, I don't understand what you want me to try, please elaborate

On Mon, Apr 4, 2016 at 4:38 PM, Thusjanthan Kubendranathan <
[email protected]> wrote:

Hi @asafco4 https://github.com/asafco4

It probably is a scope issue. You should inspect all the JS files the app
is trying to load. Particularly look to see if a file called branch.js is
being loaded from the root of your application. If so, can you try touching
(a blank file) a file at the root of your application called branch.js and
try loading the app again?

Hope it helps.
Cheers,
TJ


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#50 (comment)

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

renesansz avatar renesansz commented on July 17, 2024

@asafco4 , what we basically mean, is that could you verify that the app.js file you are modifying is the right one being used by your app?

Just try to put anything to indicate that the changes from your js file was being updated in the app.
I know this could be silly, but sometimes I do commit this kind of mistake, wherein I was very frustrated on how I keep on debugging the app and I've realized I was modifying the old copy of the app and I was debugging the new one, so I always keep wondering why I still receive the same error even though I keep on changing my code.

Because currently, there's no problem with how you've implemented your initSession..
Maybe it's just that your js file wasn't included in the app upon build.

If still, you're sure that the app is using your branch.js implementation, then might be better if you could provide screenshots (eg: structure, versions, command-line, and so on).

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

actechllc avatar actechllc commented on July 17, 2024

@renesansz - I tried it: I added new debug messages for the onDeviceReady(), and I can see them, meaning file is indeed being used.

@tkuben - wanna eleborate on it? I didn't understand.
I tried to touch an empty file to root directory of the app, it didn't effect anything.

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

tkuben avatar tkuben commented on July 17, 2024

Hi @asafco4

Are you familiar with debugging an android app using chrome? Please follow these steps:

https://developer.chrome.com/devtools/docs/remote-debugging

Once you have the chrome developer tools loaded. Go into the Network Tab. Click on JS and reload the app. Do you see any "red" files? or a file called branch.js that is being loaded from the root of your application? please take a screen shot of the js libs that are being loaded and paste in here.

Cheers,
TJ

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

actechllc avatar actechllc commented on July 17, 2024

Yes, that's the tool I work with.
The error I see is in red:

app.js:95 Branch NEW onDeviceReady()
app.js:97 Branch NEW onDeviceReady ended...
ping:1 Given URL is not allowed by the Application configuration: One or
more of the given URLs is not allowed by the App's settings. It must match
the Website URL or Canvas URL, or the domain must be a subdomain of one of
the App's domains.
flash_login.js:42 getAppName: Object
flash_login.js:45 getSupportEmail: Object
login.js:104 LoginController: User ID: undefined
index.html#/login:1 Uncaught ReferenceError: DeepLinkHandler is not defined
app.js:89 Branch onResume()
app.js:91 Branch Resumed...
undefined:1 Uncaught (in promise) ReferenceError: DeepLinkHandler is not
defined(…)

On Tue, Apr 5, 2016 at 12:43 PM, Thusjanthan Kubendranathan <
[email protected]> wrote:

Hi @asafco4 https://github.com/asafco4

Are you familiar with debugging an android app using chrome? Please follow
these steps:

https://developer.chrome.com/devtools/docs/remote-debugging

Once you have the chrome developer tools loaded. Go into the Network Tab.
Click on JS and reload the app. Do you see any "red" files? or a file
called branch.js that is being loaded from the root of your application?
please take a screen shot of the js libs that are being loaded and paste in
here.

Cheers,
TJ


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#50 (comment)

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

renesansz avatar renesansz commented on July 17, 2024

@asafco4 ,
can you post your source code of your app js?

Thanks

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

actechllc avatar actechllc commented on July 17, 2024

@renesansz - I sent it to your support email.
Anything you can do - please do!

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

renesansz avatar renesansz commented on July 17, 2024

Hey @asafco4 ,
Just have received your email. In your source code, DeepLinkHandler should be defined as a global function not inside your Angular app.

Could you try to refactor your code and see if it works?
Let me know if this resolves your problem.

Cheers,
Rene

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

actechllc avatar actechllc commented on July 17, 2024

Do you know where should I put it so it will be global? I tried to search
the Web, also posted a question in stackoverflow.com but no luck yet.
On Apr 5, 2016 22:42, "Renemari Padillo" [email protected] wrote:

Hey @asafco4 https://github.com/asafco4 ,
Just have received your email. In your source code, DeepLinkHandler
should be defined as a global function not inside your Angular app.

Could you try to refactor your code and see if it works?
Let me know if this resolves your problem.

Cheers,
Rene


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#50 (comment)

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

actechllc avatar actechllc commented on July 17, 2024

I did this:

<script type="text/javascript" src="js/app/branch.js"></script>

and in branch.js I inserted the function and it's working!

You're the best, thanks a lot for all the help and patience!!!

Edit the instructions for Ionic/Cordova and add the requirement that this
function must be global + how to do it.

On Tue, Apr 5, 2016 at 11:28 PM, Renemari Padillo [email protected]
wrote:

@asafco4 https://github.com/asafco4 ,
What I mean by global is just to put the function outside the Angular
scope.
Or just try to create a script tag.

<script> function DeepLinkHandler(data) { console.log(data); } </script>


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#50 (comment)

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

renesansz avatar renesansz commented on July 17, 2024

cool! 👍 ,
No problem, I'm glad that it works now.
Actually we have it defined in our README.
We'll revise a bit the instruction to make it clear for others, thank you for the suggestion.

Closing the issue now.

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

barocsi avatar barocsi commented on July 17, 2024

Defining a global deeplink handler is ok. But should EXPLICITLY define in the docs as well.

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

barocsi avatar barocsi commented on July 17, 2024

Still not working while compiling...

  <preference name="android-minSdkVersion" value="16"/>
  <preference name="android-targetSdkVersion" value="23"/>
No resource identifier found for attribute 'autoVerify' in package 'android'

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

barocsi avatar barocsi commented on July 17, 2024

I had to change
/platforms/android/project.properties
from target=22 to target=23
however this is supposed to be a generated file, what generates it and based on that what, what should I change to make this change persistent?

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

aeromusek avatar aeromusek commented on July 17, 2024

@aaustin @renesansz could one of you clarify the correct process here for @barocsi?

(Reopening issue)

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

renesansz avatar renesansz commented on July 17, 2024

@aeromusek ,
sure, will check on it 👌

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

renesansz avatar renesansz commented on July 17, 2024

@barocsi ,
What version of the plugin are you using? Please also provide the Cordova version & list of plugins that you are using.
Currently, I can't replicate the issue, I've tried using the testbed app and it seems it defines the target value to android-23.

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

barocsi avatar barocsi commented on July 17, 2024

I have cloned the newest Branch SDK from this repo as per doc,
using Cordova 6.0.0, Cordova Android platform version 4.1.1.
I was using the previous version for Branch.io, removed the plugin and re-added it, and it did not change the target value, I had to do it manually, however since then, consequent rebuilds did not affect it. I am not sure what should trigger or lock the version update in the project.properties file.

Here is the list of my plugins,

com.raananw.imageResizer 0.1.2 "ImageResizer"
com.sarriaroman.PhotoViewer 1.1.1 "PhotoViewer"
com.verso.cordova.clipboard 0.1.0 "Clipboard"
cordova-plugin-camera 2.1.1 "Camera"
cordova-plugin-console 1.0.2 "Console"
cordova-plugin-crosswalk-webview 1.5.0 "Crosswalk WebView Engine"
cordova-plugin-device 1.1.1 "Device"
cordova-plugin-facebook4 1.7.0 "Facebook Connect"
cordova-plugin-file 3.0.0 "File"
cordova-plugin-google-analytics 0.8.1 "Google Universal Analytics Plugin"
cordova-plugin-inappbrowser 1.2.1 "InAppBrowser"
cordova-plugin-network-information 1.2.0 "Network Information"
cordova-plugin-sim 1.2.0 "SIM"
cordova-plugin-splashscreen 3.2.0 "Splashscreen"
cordova-plugin-whitelist 1.2.1 "Whitelist"
cordova-plugin-x-socialsharing 5.0.9 "SocialSharing"
es6-promise-plugin 3.0.2 "Promise"
io.branch.sdk 2.0.11 "branch-cordova-sdk"
ionic-plugin-keyboard 2.0.1 "Keyboard"
phonegap-plugin-push 1.5.3 "PushPlugin"

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

aaustin avatar aaustin commented on July 17, 2024

If your build target is not 23, you'll get this error. This silently removes the autoVerify tag if the build target is < 23. #135

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

ouihamdaoui avatar ouihamdaoui commented on July 17, 2024

Log For : app.apk

Log Type : Recompiling

Log Recorded At : 12 2018-01- 2:22:58,11

Log Recorded By : Advanced ApkTool v4.2.0 By BDFreak


W: C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\AndroidManifest.xml:16: error: No resource identifier found for attribute 'roundIcon' in package 'android'
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\pc\AppData\Local\Temp\brut_util_Jar_1479779000625798190.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 26, --version-code, 10, --version-name, 10.0, --no-version-vectors, -F, C:\Users\pc\AppData\Local\Temp\APKTOOL5360200212280990529.tmp, -0, arsc, -0, arsc, -I, C:\Users\pc\Desktop\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\res, -M, C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:492)
at brut.androlib.Androlib.buildResources(Androlib.java:426)
at brut.androlib.Androlib.build(Androlib.java:305)
at brut.androlib.Androlib.build(Androlib.java:270)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:75)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\pc\AppData\Local\Temp\brut_util_Jar_1479779000625798190.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 26, --version-code, 10, --version-name, 10.0, --no-version-vectors, -F, C:\Users\pc\AppData\Local\Temp\APKTOOL5360200212280990529.tmp, -0, arsc, -0, arsc, -I, C:\Users\pc\Desktop\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\res, -M, C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:456)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\pc\AppData\Local\Temp\brut_util_Jar_1479779000625798190.tmp, p, --forced-package-id, 127, --min-sdk-version, 15, --target-sdk-version, 26, --version-code, 10, --version-name, 10.0, --no-version-vectors, -F, C:\Users\pc\AppData\Local\Temp\APKTOOL5360200212280990529.tmp, -0, arsc, -0, arsc, -I, C:\Users\pc\Desktop\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\res, -M, C:\Users\pc\Desktop\AdvancedApkTool\3-Out\app.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:450)
... 6 more

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.