Blockstack on Mobile


#1

We discussed a few different options for getting Blockstack to work in mobile. Making a comprehensive list here so we can get the conversation moving forward:

  1. Have users host their own storage API in the cloud.

  2. Allow users to trust a remote Core node and forego the ability for apps to store data with the user on mobile, until they click the sync button which takes them to the Blockstack mobile app.

  3. Create a lambda for the storage API and have the Blockstack app trust mobile apps with dropbox/gdrive API credentials.

  4. Require users to get an S3 or Azure master key and then hand out child API keys to apps, which will each get their own buckets.

  5. Figure out a way to run a server on the Blockstack mobile app so that other mobile apps can call it in the background. Apple may or may not let you do this but even if it does, the apps will sleep after 10 minutes. More investigation is needed.


Blockstack Mobile Plans
2017-08-04 Blockstack on iOS Meeting
#2

Let me know if I missed any.

One thing I’ll point out is that the application can encrypt and sign the data on behalf of the user, so cloud providers don’t need to be trusted with anything other than availability.


#3

An additional option building on option 5:

Option 6

Ship the Blockstack mobile app with a built-in web browser such as SFSafariViewController. Web-based Blockstack apps would be loaded in the built-in browser. Since the Blockstack mobile app is in the foreground when Blockstack Apps are used, we could guarantee that the Blockstack API is always running and available for it.

This works well if we define a Blockstack App (capital A) as a decentralized, serverless, JavaScript SPA served from (and signed by) a Blockstack name. All Blockstack Apps would work on mobile in the same way the work on desktop.

Native apps would still be able to use Blockstack for authentication and (probably, as @ryan said in 5…we need to investigate more) have access to the storage API for a short period of time after the Blockstack mobile app moves to the background, but it wouldn’t be guaranteed.

Offline storage strategy

Mobile devices are frequently offline: NYC subway, London tube, elevators, airplanes, etc. It would be great if Blockstack storage could work offline as well. If we can solve the offline problem, this would go part of the way towards solving the challenge in option 5 & 6 where the Blockstack API that is only periodically available when the operating system puts it to sleep after a period of time in the background.


#4

I feel that this option is not a viable option. Apple will continue to knock off any running apps after 10 minutes as this is a security concern for them. The only way around this is to partner with Apple and have them integrate Blockstack in some way shape or form.

I feel that we will need to provide 2 solutions on mobile for developers

  1. user accesses their blockstack data via a native iOS application (including the blockstack iOS app)
  2. User accesses their blockstack data via Safari

This will provide developers with the choice of experience they want to give to their users

How would we be able to boot up the node again though? I believe @itsProf was saying that the problem is booting back up the node.


#5

A post was split to a new topic: Blockstack on iOS Constraints


#6

The importance of mobile:


#7

This is why we need to make a push to open a direct line with Apple and get their attention and support.


#8

We’d have just the same issue. App gets killed, no way to reboot the node and it will fail because of that + it would violate Apple’s terms that state that no app should depend on another app to work. They’re sandboxes and I don’t see them changing that to be honest.

We need someone powerful enough to open up a line to talk to Apple, maybe our VCs?


#9

Why not attempt to start with Android. Their OS allows to download from External sources, and seems much more flexible. The mothod to get Apples attention might start with a solid functioning Android use case? I am sure you have considered these issues but i was curious to know the thought process?