6

Is there a way to avoid Google App Invites showing a Snackbar when invitation is sent? Or can I change the position where it's showing?

Sergio Viudes
  • 2,714
  • 5
  • 26
  • 44
  • In the [google-services](https://github.com/googlesamples/google-services) demo implementation, you can just disable it by not explicitly call `showMessage()` which has snackbar viewgroup invocation. – emen Apr 08 '16 at 09:50
  • In the google-services demo there is no call to showMessage() when invitations are sent: https://github.com/googlesamples/google-services/blob/master/android/appinvites/app/src/main/java/com/google/android/gms/samples/appinvite/MainActivity.java – Sergio Viudes Apr 08 '16 at 10:18
  • See [carefully](https://github.com/googlesamples/google-services/blob/master/android/appinvites/app/src/main/java/com/google/android/gms/samples/appinvite/MainActivity.java#L155) :) – emen Apr 08 '16 at 11:34
  • I see that a SnackBar is shown in `showMessage()` method. So the SnackBar is shown when such method is called. As you can see, such method is only called when there is a failure sending invitations. When invitations are sent, there is no call to such method: [see](https://github.com/googlesamples/google-services/blob/master/android/appinvites/app/src/main/java/com/google/android/gms/samples/appinvite/MainActivity.java#L138) – Sergio Viudes Apr 08 '16 at 11:41
  • Heh, you are right. I can't find such implementation in the library itself. Please update here if you find any. Maybe it's still in beta it doesn't have the ability to customize it, I dunno. – emen Apr 10 '16 at 18:01
  • Nop. I'm still waiting for a fix – Sergio Viudes Apr 30 '16 at 18:43

0 Answers0