katzer / cordova-plugin-badge

Access and modify badge numbers
Apache License 2.0
408 stars 253 forks source link

Problem building Sample App #89

Closed djtruco closed 7 years ago

djtruco commented 7 years ago

Hello everyone,

First of all, thanks @katzer for your great help with this plugins!

I'm trying to build the Sample App I cloned as suggested: git clone -b example https://github.com/katzer/cordova-plugin-badge.git

The first problem is the plugin is a symbolic link to a folder in Sebastian's file system: image

So I removed the symbolic link and installed the plugin as suggested: cordova plugin add https://github.com/katzer/cordova-plugin-badge.git

After that I found out other problems with symbolic links for this files:

cordova-plugin-badge/platforms/android/cordova-plugin-badge/example-badge.gradle
cordova-plugin-badge/platforms/android/src/de/appplant/cordova/plugin/badge/Badge.java
cordova-plugin-badge/platforms/android/src/de/appplant/cordova/plugin/badge/BadgeImpl.java

I resolved them and finally the build process worked. So, two things:

  1. I think the problems with symbolic links should be solved.
  2. I know this plugin rely in ShortcutBadger to work on Android. I tested the produced APK in my smartphone and the badge is not shown, but the test app for ShortcutBadger works very well.

image

I'm attaching the console output and the APK file. problem-building-sample-app.txt android-debug.zip

Thanks in advance for any reply!

katzer commented 7 years ago

@djtruco Sorry for the symbolic links. Can happen... The rest seems to be resolved with the latest updates from ShortcutBadger.