Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep trying add to whatsapp #10

Open
elihaidv opened this issue Aug 24, 2020 · 0 comments
Open

Keep trying add to whatsapp #10

elihaidv opened this issue Aug 24, 2020 · 0 comments

Comments

@elihaidv
Copy link
Contributor

Hi. Thanks about this library. It helps a lot.
Version 0.0.4 is much better. But still one bug:

Steps:

  1. Add package to WA
  2. Exit form WA. Doesn't matter if package added or not.
  3. Back to my app
  4. My app trying to add the package again and again
  5. Sometimes after that, WA crashing, or error message: "operation couldn't be completed(com.third-party-sticker 1000)"

My code:

  var stickerPack = WhatsappStickers(
        identifier: category.identifier,
        name: category.title,
        publisher: pack.publisher,
        trayImageFileName: WhatsappStickerImage.fromFile(
            '${category.directoryPath}/${category.trayImageFile}'),
        publisherWebsite: pack.publisherWebsite,
        privacyPolicyWebsite: pack.privacyPolicyWebsite,
        licenseAgreementWebsite: pack.licenseAgreementWebsite,
      );

      category.stickers.forEach((sticker) {
        stickerPack.addSticker(
            WhatsappStickerImage.fromFile(
                '${category.directoryPath}/${sticker.imageFile}'),
            sticker.emojis);
      });

      stickerPack
          .sendToWhatsApp()
          .then((value) => analytics.logEvent(name: 'SuccessfullyAddedPackage'))
          .catchError((err) {
        print(err);
        analytics.logEvent(name: 'FailedAddedPackage');
      });

Link for video of the problem:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant