Skip to content
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

android and ios can last as much as the OS allows it #924

Closed
2 tasks
beastoin opened this issue Sep 25, 2024 · 8 comments
Closed
2 tasks

android and ios can last as much as the OS allows it #924

beastoin opened this issue Sep 25, 2024 · 8 comments
Assignees

Comments

@beastoin
Copy link
Collaborator

beastoin commented Sep 25, 2024

Actions:

  • Ensure that users receive a notification when the app is terminated.
  • Reproduce the case - the app is terminated by OS, then decide on the next steps.

Notifications

  • app closed, user should be notified w a notification
  • device disconnects, user should be notified w a notification
  • transcript service disconnects, user should be notified w a notification
@beastoin beastoin converted this from a draft issue Sep 25, 2024
@beastoin
Copy link
Collaborator Author

Image

@beastoin
Copy link
Collaborator Author

beastoin commented Sep 25, 2024

jonnycombs — Yesterday at 11:11 PM
So I got up this morning and confirmed that it was still running (around 6:30am). I just opened it (12:05pm) and it looks like it hasn't recorded anything since 7:03am. I haven't used a lot of the other features yet as I've been waiting for it to be more reliable, but the things it does record have been great. I'm going to try restarting the app and see if it fixes the problem.
So I just restarted it and it said "Listening" for about 30 seconds before it started responding with a transcript which seems slower than normal, but it is transcribing again now. So crossing my fingers.

jonnycombs — Today at 1:20 AM
@thinh I was reviewing transcripts from a meeting I just had. It was an hour long and I was speaking most of the time so it likely wasn't an audio issue, but it appears that it stopped recording after about 20 minutes, but then right after that meeting I said something else and it caught that. So even though it hasn't required a restart it appears that it only recorded a small amount of the audio. Is it possible that on IOS that it's shutting it down if I haven't used my phone for a certain amount of time and then when I open it again (even if I'm not in the app) it resumes or something?

@beastoin
Copy link
Collaborator Author

@trmquangbiz hey man, it's been such a long time.

I want to build a simple iOS app that can stream the audio from a bluetooth device to the backend service via websocket.

BLE Device <--bluetooh--> App <--websocket--> Backend

I need the application can last as much as possible.

What advice do you have? or any challenges you foresee base on your expertise knowledge in iOS dev, feel free to lmk.

Thank you!

@trmquangbiz
Copy link

@beastoin thank you, please checking for these

  • Enable "Background modes" capability and allow "Uses Bluetooth as LE accessories"
  • Don't think the background mode can keep you alive so long, it still can be terminated. Reason why your app terminate:
  • Using live activities is a way to keep your app "live" for up to 8 hours
  • Handle when your network offline. It is better to chunk off your audio data as small as possible to send, don't send a medium or large one, and handle the error if network has been lost (cached the data)
  • Handle if any other audio session interruption (resume when the interruption end). Keep in mind any phone call and VoiP call have ultimate priority to interrupt your session)

@beastoin
Copy link
Collaborator Author

Thanks you, I'll send you an updated ver soon!

In the meantime please try the current Omi AI app from appstore or dm me your icloud email so i can send you the latest experimental ver via Testflight as soon as possible.

Feel free to share your feedbacks.

Good day.

@josancamon19
Copy link
Contributor

@beastoin @mdmohsin7 made it, been testing it.
iOS stays fucking connected for 12 hours, it's impressive, I will test android tonight by putting a playlist of a few podcasts while sleeping, will report tmrw, if there's smth wrong with android.

@josancamon19
Copy link
Contributor

app stayed connected for 12 hours on android too, and still goes.

@github-project-automation github-project-automation bot moved this from In review to Done in omi TODO Oct 2, 2024
@beastoin
Copy link
Collaborator Author

beastoin commented Oct 3, 2024

so there's no chance to test the notification when the app was terminated 🌚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

4 participants