Background Mode Documentation
See original GitHub issueUnder the instructions for iOS background mode there is:
Pass
restoreStateIdentifier
andrestoreStateFunction
toBleManager
constructor.
I think this can be elaborated. Can restoreStateIdentifier
be any string? What’s the motivation for restoreStateFunction
and how should it be used?
I think even a init template in the readme
would provide a lot of context to help future users out.
const bleManager = new BleManager({
restoreStateIdentifier: 'mystring',
restoreStateFunction: (bleRestoredState: BleRestoredState) => {
// ??
},
});
Issue Analytics
- State:
- Created 3 years ago
- Reactions:11
- Comments:5
Top Results From Across the Web
Configuring background execution modes - Apple Developer
Specify the background modes your app requires · Select your project in Xcode's Project navigator. · Select the app's target in the Targets...
Read more >Cordova-Plugin-Background-Mode - Ionic Framework
Learn about Cordova-plugin-background-mode usage. This Cordova plugin, for Ionic Native Apps, prevents the app from going to sleep while in background.
Read more >Background Mode Parameters - Conga Product Documentation
Background Mode parameters let you bypass the classic Conga Composer dialog box. For more information on background mode, see Automating Solutions using ...
Read more >Background Modes Tutorial: Getting Started - Kodeco
In this tutorial, you'll create an app that uses audio playback, location updates, critical tasks, and background fetch to learn about the most ......
Read more >Background Work Overview | Android Developers
Processing data in the background is an important part of creating an Android application that is both responsive for your users as well...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can someone give an example ? I’m currently struggling with BleManager making my connection in a state I can’t programatically recover from. It looks like setting BleManageroptions could resolve this, but I don’t relly get how it works. (my issue : #969 )
@ortonomy Apple will kill your app after a few minutes (maybe a couple of hours) if the iphone peformance starts to leeking. The restore feature will restore your app and it’s previous bluetooth status.