Moves out-of-place Firebase InstanceId call to the google build flavor. Closes #274
This commit is contained in:
parent
31fff630f3
commit
8787cf6beb
3 changed files with 11 additions and 1 deletions
|
@ -204,7 +204,7 @@ public class BaseActivity extends AppCompatActivity {
|
|||
|
||||
protected void enablePushNotifications() {
|
||||
if (BuildConfig.USES_PUSH_NOTIFICATIONS) {
|
||||
String token = com.google.firebase.iid.FirebaseInstanceId.getInstance().getToken();
|
||||
String token = MessagingService.getInstanceToken();
|
||||
tuskyAPI.register(getBaseUrl(), getAccessToken(), token).enqueue(new Callback<ResponseBody>() {
|
||||
@Override
|
||||
public void onResponse(Call<ResponseBody> call, retrofit2.Response<ResponseBody> response) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue