react-native-beacons-manager icon indicating copy to clipboard operation
react-native-beacons-manager copied to clipboard

App startup times eating into background activity window when app is killed / suspended

Open eurobob opened this issue 6 years ago • 0 comments

Version

1.0.8

Platform

iOS

OS version

iOS 11

Phone model

iPhone 5S

Steps to reproduce

  1. Kill application
  2. Ensure app is full suspended by allocating memory elsewhere (open a bunch of apps)
  3. Attempt to trigger beacon interaction

Expected behavior

Beacons should monitor and range

Actual behavior

I have profiled the timeline of my application and it is taking 9 seconds to start running the JS application. This is eating into the allotted 10 second window so much that the JS does not have time to fully detect nearby beacons. In my case I am making a HTTP request to trigger time-sensitive events, and the app is shutting down before I have a chance to notify the user that they have unlocked a reward.

eurobob avatar Feb 03 '18 10:02 eurobob