Skip to content

Commit ef30d97

Browse files
committed
[BREAKING] iOS: For "stopInBackground" feature consider "inactive" state as "active" rather than "background"
1 parent 93ec4c2 commit ef30d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ class StaticServer {
410410
}
411411

412412
async _handleAppStateChange(appState: AppStateStatus) {
413-
const starting = appState === 'active';
413+
const starting = appState === 'active' || appState === 'inactive';
414414
try {
415415
if (starting) await this.start('App entered foreground');
416416
else await this._stop('App entered background');

0 commit comments

Comments
 (0)