FCMPush.smali
.class public Lio/rong/push/platform/google/FCMPush;
.super Ljava/lang/Object;
.source "FCMPush.java"
# interfaces
.implements Lio/rong/push/platform/IPush;
# direct methods
.method public constructor <init>()V
.registers 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public register(Landroid/content/Context;Lio/rong/push/pushconfig/PushConfig;)V
.registers 10
.line 1
invoke-static {}, Lcom/google/firebase/messaging/FirebaseMessaging;->getInstance()Lcom/google/firebase/messaging/FirebaseMessaging;
move-result-object p2
const/4 v0, 0x1
invoke-virtual {p2, v0}, Lcom/google/firebase/messaging/FirebaseMessaging;->setAutoInitEnabled(Z)V
.line 2
invoke-static {p1}, Lio/rong/push/core/PushUtils;->checkPlayServices(Landroid/content/Context;)J
move-result-wide v5
const-wide/16 v0, 0x0
cmp-long p2, v5, v0
if-eqz p2, :cond_1e
.line 3
invoke-static {}, Lio/rong/push/PushManager;->getInstance()Lio/rong/push/PushManager;
move-result-object v1
sget-object v3, Lio/rong/push/PushType;->GOOGLE_FCM:Lio/rong/push/PushType;
const-string v4, "checkPlayServices"
move-object v2, p1
invoke-virtual/range {v1 .. v6}, Lio/rong/push/PushManager;->onErrorResponse(Landroid/content/Context;Lio/rong/push/PushType;Ljava/lang/String;J)V
:cond_1e
return-void
.end method