The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
409B

  1. package com.juce;
  2. import com.google.firebase.iid.*;
  3. public final class JuceFirebaseInstanceIdService extends FirebaseInstanceIdService
  4. {
  5. private native void firebaseInstanceIdTokenRefreshed (String token);
  6. @Override
  7. public void onTokenRefresh()
  8. {
  9. String token = FirebaseInstanceId.getInstance().getToken();
  10. firebaseInstanceIdTokenRefreshed (token);
  11. }
  12. }