Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

207
Visualizações
iOS Advanced - Make a sound in background with iOS and app closed without notifications

The other day I bought a Tile Slim (Bluetooth Tracker) to be able to locate my wallet. What I didn't know is that I could also locate my phone with a button that the Tile had. As a developer I thought that the only way to do that, would be having the app opened, but my surprise was that even if I close the Tile App, it still worked.

This is happening with iPhone (iOS) I don't care about Android.

How is it possible that with the iPhone locked and the Tile App closed it's able to increase the volume to a 100% and make a sound that stops only when I press any volume side button (and even with notifications disabled)?

Here is a video showing it in real life: https://vimeo.com/679108480/6ac7919287

Thanks in advance for your help.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

An app that supports background audio can play audio even if the ring/silent switch is set to silent.

There is a summary table in this document

The Tile app will have background audio and background Bluetooth support.

The will have code something like:

func application(_ application: UIApplication,
                 didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    
    // Get the singleton instance.
    let audioSession = AVAudioSession.sharedInstance()
    do {
        // Set the audio session category, mode, and options.
        try audioSession.setCategory(.playback, mode: .default, options: [defaultToSpeaker])
    } catch {
        print("Failed to set audio session category.")
    }
    
    // Other post-launch configuration.
    return true
}

The app would also be waiting for connections and notifications from the Tile peripheral using Bluetooth background mode with state restoration.

When the app gets the Bluetooth event it will activate its audio session and begin playback.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda