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

Offline functionality #56

Open
ksinghal opened this issue Feb 17, 2020 · 2 comments
Open

Offline functionality #56

ksinghal opened this issue Feb 17, 2020 · 2 comments
Assignees
Labels
bug inactive Thread seems to be outdated or inactive for too long.

Comments

@ksinghal
Copy link

I am trying to implement the following use case on iOS:

  1. User opens app and we start observing proximity for certain zones
  2. User enters/exits zones
  3. User's phone goes offline and user quits app completely
  4. User opens app and observe proximity for the same zones??

I have encountered an issue with this process in which everything works until step 4. At that point, the iOS device says:

Fetching devices attached to provided tags failed!
List of attachments is empty or all requests failed due to: Optional(EstimoteProximitySDK.RequestError.connectionFailed)

I do not believe this is related to #36 since all my tags are setup properly and ii dont receive errors on steps 1-3.

Please advise if the above use case is possible, and if the EstimoteProximitySDK can cache tags and attachments from the cloud. I am especially interested in caching the data so that if there fresh launch of the app without internet, we can use the last cached data from when the app was previously online to start proximity monitoring.

@ksinghal ksinghal changed the title Offline funuctionality Offline functionality Feb 17, 2020
@chwastek
Copy link
Contributor

@ksinghal terribly sorry for the delay
I believe you had no attachments for these beacons (not tags, attachments). If so then next release (very soon) will fix this issue, where tags will be the only thing required for Proximity SDK to work 🖖

@chwastek chwastek added the bug label Apr 10, 2020
@chwastek chwastek self-assigned this Apr 10, 2020
@chwastek
Copy link
Contributor

chwastek commented Apr 29, 2020

@ksinghal is ☝️ still an issue with offline not working?
latest release 1.7.0 has few fixes and offline was proved to be working. Please ensure that Proximity SDK did store and cached your tags/attachments mappings during first online run - then (when running offline) you should see logs similar to these:

🚨Fetching devices attached to provided tags failed!
ℹ️Loaded locally stored tags mapping (total: 1).
⚠️ List of attachments is empty or all requests failed due to: Optional(EstimoteProximitySDK.RequestError.connectionFailed)
⚠️ Failed to load attachments from Cloud.
ℹ️Loaded locally stored attachments mapping (total: 0).

@chwastek chwastek added the inactive Thread seems to be outdated or inactive for too long. label May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug inactive Thread seems to be outdated or inactive for too long.
Projects
None yet
Development

No branches or pull requests

2 participants