|
|
@ -25,6 +25,7 @@ import android.content.SharedPreferences; |
|
|
|
import android.preference.PreferenceManager; |
|
|
|
import android.preference.PreferenceManager; |
|
|
|
import android.text.Spanned; |
|
|
|
import android.text.Spanned; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.google.firebase.iid.FirebaseInstanceId; |
|
|
|
import com.google.firebase.messaging.FirebaseMessagingService; |
|
|
|
import com.google.firebase.messaging.FirebaseMessagingService; |
|
|
|
import com.google.firebase.messaging.RemoteMessage; |
|
|
|
import com.google.firebase.messaging.RemoteMessage; |
|
|
|
import com.google.gson.Gson; |
|
|
|
import com.google.gson.Gson; |
|
|
@ -125,4 +126,8 @@ public class MessagingService extends FirebaseMessagingService { |
|
|
|
|
|
|
|
|
|
|
|
mastodonAPI = retrofit.create(MastodonAPI.class); |
|
|
|
mastodonAPI = retrofit.create(MastodonAPI.class); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static String getInstanceToken() { |
|
|
|
|
|
|
|
return FirebaseInstanceId.getInstance().getToken(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|