0
Task shortLinkTask = FirebaseDynamicLinks.getInstance().createDynamicLink()
                .setLink(Uri.parse("My link"))
                .setDynamicLinkDomain("sadfe.app.goo.gl")
                .buildShortDynamicLink()
                .addOnCompleteListener(this, new OnCompleteListener() {
                    @Override
                    public void onComplete(@NonNull Task task) {
                        if (task.isSuccessful()) {
                            // Short link created
                            Uri shortLink = (Uri) task.getResult();
                            Uri flowchartLink = (Uri) task.getResult();
                        } else {
                            // Error
                            System.out.println("Error");
                        }
                    }
                });

I've added internet permissions to the Android manifest, any idea what is going wrong and the onCompleted method is never fired?

KENdi
  • 7,576
  • 2
  • 16
  • 31
user481610
  • 3,230
  • 4
  • 54
  • 101

1 Answers1

3

For anyone who does come across this issue, what fixed the problem was updating to the latest emulators and Google Play services.

user481610
  • 3,230
  • 4
  • 54
  • 101