-
Notifications
You must be signed in to change notification settings - Fork 22
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
Not allowed to start service in background #83
Comments
Duplicate of #53. We will be releasing an SDK update shortly to address. |
Please try the latest SDK release https://github.com/zelloptt/zello-android-client-sdk/releases/tag/v5.22.0. |
Thank you! |
Hello @zello-eugene We have rolled out a new version with latest Zello SDK release. Previously, we had crash
These are changes from Zello last pull request with the fix: Could you please reopen the issue and assist with it? |
@uladzislau-melikhau-aionys please check out restrictions on background service starts. Zello has to rely on a foreground service to be able to stay running and connected in the background. When a partner app uses Zello SDK to sign in, the SDK asks the Zello app to sign in, which attempts to start a foreground service. But it’s the third-party app itself that needs to comply with the restrictions in order to make the flow work as expected. |
@zello-eugene I finally found a way to reproduce this crash in our app (Rythmos). Crash only happens when user is not authorized - no need to Login neither to Zello, nor to our app. //--- Steps to reproduce: 3/ After some time, Android OS kills Rythmos app: 4/ After some time, Android OS restarts Rythmos app: *Android OS might restart an app after a crash, so sometimes step 4/ repeats several times in a row. //--- The only Zello related operation we do in Application class is SDK config: public class CareGiverApp extends Application {
@Override
public void onCreate() {
super.onCreate();
Zello.getInstance().configure(this);
//...
}
} I tried to comment out that one line, and the crash was gone. I suspect, calling Could you please check this issue? |
Re-opening the ticket based on the new information. |
My app uses Zello SDK and is often crashing in background with the following exception:
On Android versions >=12 i see exact this exception, on earlier versions I see IllegalStateException instead, but the rest of the stacktrace is exactly the same.
Have you come across this before?
Would really appreciate any help in solving this issue.
The text was updated successfully, but these errors were encountered: