Skip to content

Subscribing/Unsubscribing to topics doesn't work on Android[Bug] #409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AOEGame opened this issue Jul 19, 2022 · 1 comment
Closed

Subscribing/Unsubscribing to topics doesn't work on Android[Bug] #409

AOEGame opened this issue Jul 19, 2022 · 1 comment
Labels

Comments

@AOEGame
Copy link

AOEGame commented Jul 19, 2022

[REQUIRED] Please fill in the following fields:
Unity editor version: _2020.3.17f
Firebase Unity SDK version: 9.1.0, 9.2.0
Source you installed the SDK: __unitypackage
Problematic Firebase Component: Messaging
Other Firebase Components in use: Analytics
Additional SDKs you are using: Analytics,Crashlytics
Platform you are using the Unity editor on: Windows
Platform you are targeting:Android
Scripting Runtime: IL2CPP
[REQUIRED] Please describe the issue here:
Firebase.Messaging.FirebaseMessaging.UnsubscribeAsync(topic).ContinueWith(task =>
{
Debug.Log("FirebaseMessaging.UnsubscribeAsync:" + topic + " status:" + task.Status);

    });

I can not get the debug.log.
also test: awit Firebase.Messaging.FirebaseMessaging.UnsubscribeAsync

android version: 9

Relevant Code:
Firebase.FirebaseApp.LogLevel = Firebase.LogLevel.Verbose;
Firebase.Messaging.FirebaseMessaging.TokenRegistrationOnInitEnabled = true;
Firebase.Analytics.FirebaseAnalytics.SetAnalyticsCollectionEnabled(true);

        Firebase.Messaging.FirebaseMessaging.TokenReceived += OnTokenReceived;
        Firebase.Messaging.FirebaseMessaging.MessageReceived += OnMessageReceived;
        string topic = "Lan_en";

    Firebase.Messaging.FirebaseMessaging.UnsubscribeAsync(topic).ContinueWith(task =>
    {
        Debug.Log("FirebaseMessaging.UnsubscribeAsync:" + topic + " status:" + task.Status);
       
    });

=============
After a lot of testing, I found out that the first launch then subscribe topic is successful. After restart our game then subscribe topic, the subscribeAsync task can not finish.

no error message.

the subscribeAsync task does not have any completion information.

Had set LogLevel:
Firebase.FirebaseApp.LogLevel = Firebase.LogLevel.Debug;

but no error message in android studio logcat!

@paulinon
Copy link
Contributor

Hi @AOEGame,

I noticed that the content of this thread is similar to this one. I'll be closing this one so that all discussions can be streamlined in one thread.

@paulinon paulinon closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2022
@firebase firebase locked and limited conversation to collaborators Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants