Bitcoin Forum
December 14, 2017, 01:17:53 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 [3] 4 »  All
  Print  
Author Topic: How to build a Hive app (introducing the Hive app API)  (Read 28349 times)
hivewallet
Sr. Member
****
Offline Offline

Activity: 378


hivewallet.com


View Profile WWW
November 16, 2013, 06:53:50 AM
 #41

Adding idea of passing the system language to app platform:
https://github.com/hivewallet/hive-osx/issues/111

Hive, a beautiful, secure wallet with an app platform for Mac OS X, Android and Mobile Web. Translators wanted! iOS and OS X devs see BitcoinKit.
Tweets @hivewallet. Skype us here. Donations appreciated at 1HLRg9C1GsfEVH555hgcjzDeas14jen2Cn
1513257473
Hero Member
*
Offline Offline

Posts: 1513257473

View Profile Personal Message (Offline)

Ignore
1513257473
Reply with quote  #2

1513257473
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513257473
Hero Member
*
Offline Offline

Posts: 1513257473

View Profile Personal Message (Offline)

Ignore
1513257473
Reply with quote  #2

1513257473
Report to moderator
1513257473
Hero Member
*
Offline Offline

Posts: 1513257473

View Profile Personal Message (Offline)

Ignore
1513257473
Reply with quote  #2

1513257473
Report to moderator
1513257473
Hero Member
*
Offline Offline

Posts: 1513257473

View Profile Personal Message (Offline)

Ignore
1513257473
Reply with quote  #2

1513257473
Report to moderator
knowitnothing
Sr. Member
****
Offline Offline

Activity: 294


View Profile
November 16, 2013, 03:18:01 PM
 #42

Adding idea of passing the system language to app platform:
https://github.com/hivewallet/hive-osx/issues/111

The comment linked in that issue seems to suggest more than just passing the current language.

The apps can already be localized, it is a matter of having a menu inside the app where the user can pick some other language, and obviously the app needs to provide such translations. Passing the current language is unneeded, as it is already available through navigator.language in javascript. If navigator.language doesn't reflect the current language, then that should be an issue by itself.

It looks like that comment is after some method for sharing the translations already available for Hive, so the apps can reuse them as much as possible. No amount of translations will ever be enough for all the possible apps, but some of the common translated strings could be reused and at least reduce some trivial effort on the translations there. I'm not sure if this actually helps, as it might induce to apps half-translated which doesn't improve the user experience.

moderate
Member
**
Offline Offline

Activity: 70

nearly dead


View Profile
November 16, 2013, 04:44:08 PM
 #43

Adding idea of passing the system language to app platform:
https://github.com/hivewallet/hive-osx/issues/111

It looks like that comment is after some method for sharing the translations already available for Hive, so the apps can reuse them as much as possible.

Yes.
jsuder
Full Member
***
Offline Offline

Activity: 145


┗(°0°)┛


View Profile
November 19, 2013, 09:13:06 AM
 #44

The apps can already be localized, it is a matter of having a menu inside the app where the user can pick some other language, and obviously the app needs to provide such translations. Passing the current language is unneeded, as it is already available through navigator.language in javascript. If navigator.language doesn't reflect the current language, then that should be an issue by itself.

It looks like that comment is after some method for sharing the translations already available for Hive, so the apps can reuse them as much as possible. No amount of translations will ever be enough for all the possible apps, but some of the common translated strings could be reused and at least reduce some trivial effort on the translations there. I'm not sure if this actually helps, as it might induce to apps half-translated which doesn't improve the user experience.
No, it wasn't about passing any actual translated strings from Hive to apps, that wouldn't make much sense as you say. This is specifically about passing info about the locale currently used in the app. I haven't thought about navigator.language, that can probably be useful for now, but I'm guessing it doesn't always reflect the Hive locale exactly - especially if Hive doesn't currently have a translation for the language you've chosen in the system preferences.

Former main developer of Hive Mac | @kuba_suder at Twitter
moderate
Member
**
Offline Offline

Activity: 70

nearly dead


View Profile
November 19, 2013, 12:40:46 PM
 #45

The apps can already be localized, it is a matter of having a menu inside the app where the user can pick some other language, and obviously the app needs to provide such translations. Passing the current language is unneeded, as it is already available through navigator.language in javascript. If navigator.language doesn't reflect the current language, then that should be an issue by itself.

It looks like that comment is after some method for sharing the translations already available for Hive, so the apps can reuse them as much as possible. No amount of translations will ever be enough for all the possible apps, but some of the common translated strings could be reused and at least reduce some trivial effort on the translations there. I'm not sure if this actually helps, as it might induce to apps half-translated which doesn't improve the user experience.
No, it wasn't about passing any actual translated strings from Hive to apps, that wouldn't make much sense as you say.


Uhm I just said it was, right in the last comment. You need an API for letting the apps access the locales, obviously you won't pass the entire files on every application start.
jsuder
Full Member
***
Offline Offline

Activity: 145


┗(°0°)┛


View Profile
November 19, 2013, 02:43:26 PM
 #46

Uhm I just said it was, right in the last comment. You need an API for letting the apps access the locales, obviously you won't pass the entire files on every application start.
Ok, now I'm confused, but anyway here's what we're planning:

- there will be locale information in the JS API, so the app will be able to check if the whole UI is displayed e.g. in French or in German, and if it includes its own translations for its labels inside the app bundle, it can use some kind of JS i18n library to change the language of the labels

- there (probably) won't be any API that passes any specific translated strings from Hive to the app through the API, because I think there's no way we can prepare any generic set of labels that would be reusable in any significant amount of apps and would cover all copy needed in those apps, and that would probably be more work than it's worth anyway

Former main developer of Hive Mac | @kuba_suder at Twitter
Ecurb123
Full Member
***
Offline Offline

Activity: 182


View Profile
November 19, 2013, 07:03:27 PM
 #47

Hi, I'm just trying to get my head around what this is, and I'm sorry I haven't read too much yet. As I understand it, the hive app is an app which is or will be a bitcoin wallet, but also offers an API for people to create their own bitcoin related games which can be played with the bitcoins in the users wallet. Is that right or am I way off?
moderate
Member
**
Offline Offline

Activity: 70

nearly dead


View Profile
November 19, 2013, 07:12:11 PM
 #48

Hi, I'm just trying to get my head around what this is, and I'm sorry I haven't read too much yet. As I understand it, the hive app is an app which is or will be a bitcoin wallet, but also offers an API for people to create their own bitcoin related games which can be played with the bitcoins in the users wallet. Is that right or am I way off?

Any kind of app, as long as you can do it using javascript, html, and css. It is just a webkit browser embedded there.
tgerring
Full Member
***
Offline Offline

Activity: 142


Hive/Ethereum


View Profile WWW
November 27, 2013, 03:59:02 PM
 #49

Hi, I'm just trying to get my head around what this is, and I'm sorry I haven't read too much yet. As I understand it, the hive app is an app which is or will be a bitcoin wallet, but also offers an API for people to create their own bitcoin related games which can be played with the bitcoins in the users wallet. Is that right or am I way off?

Hive is a Bitcoin wallet for Mac OS X Smiley

Hive wallet also has a API, allowing developers to build apps that live inside the wallet itself, making it easy for Hive users to interact with Bitcoin services directly. Since it's HTML/CSS/JS-based, anything that can run in the browser can be an app.

Hive, a beautiful wallet for Mac OS X, now available for testing. Follow the story here.
BitcoinKit.framework and Tor.framework, now available to iOS and Mac OS X developers
Tweeting at @hivewallet. Donations appreciated at 142m1MpXHhymF4aASiWwYohe1Y55v5BQwc
BTC_GHD
Member
**
Offline Offline

Activity: 98


View Profile
December 01, 2013, 06:46:17 AM
 #50

I'm working on an app for Dabs' charity based on Seans Outpost

BITCOIN CASINO BTC  30% DEPOSIT BONUS @ Bit777.com BTC Freebie Forum Thread! BTC
BITCOIN GAMBLING @ Peerbet.org ZERO HOUSE EDGE RAFFLES BTC 5 WHEELS OF FORTUNE! Forum Thread
jsuder
Full Member
***
Offline Offline

Activity: 145


┗(°0°)┛


View Profile
December 04, 2013, 12:19:32 PM
 #51

A few updates for Hive app developers:

  • apps now run on http://app_name.hiveapp/ instead of http://localhost/app_name - this was changed to prevent apps from reading each other's cookies (but if possible, please don't hardcode the address, just take it from location.href, as we may need to change it again in the future)
  • you can now safely use cookies to persist data between sessions (just remember to set a persistent cookie, not a session cookie, i.e. with an expiration date set)
  • localStorage does NOT work properly right now and you should not rely on it
  • there are bitcoin.VERSION and bitcoin.BUILD_NUMBER properties if you need to check the Hive version
  • if you are relying on the fact that Hive disables origin policy check for XHR requests, please don't do that - we'll be removing this in the future (and there will be an API method added instead that will proxy the request for you)
 

Also, a few things you might not be aware of:

  • Hive has a Webkit inspector enabled, so in any app you can right-click and choose "Inspect" to get access to the JS console
  • for easier development, you can replace an archived app bundle in ~/Library/Application Support/Hive/Applications with an unpacked directory with the same name, and the app will work exactly the same

Former main developer of Hive Mac | @kuba_suder at Twitter
greenek
Newbie
*
Offline Offline

Activity: 3


View Profile
December 08, 2013, 09:13:00 PM
 #52

Hello!

My name is Paweł and I'm working on few stuff for Hive Wallet.

http://cl.ly/image/0Y3N3G1y3S3l/Zrzut%20ekranu%202013-12-08%20o%2021.51.06.png

Basic functionality has been implemented. What else would you like to see here?

Greetings from Kraków, Poland!
daybyter
Legendary
*
Offline Offline

Activity: 965


View Profile
December 08, 2013, 09:38:59 PM
 #53

Maybe some trading methods?

I did something similar with phonegap here:

https://bitcointalk.org/index.php?topic=135392.0

hivewallet
Sr. Member
****
Offline Offline

Activity: 378


hivewallet.com


View Profile WWW
December 08, 2013, 10:38:40 PM
 #54

Maybe some trading methods?

I did something similar with phonegap here:

https://bitcointalk.org/index.php?topic=135392.0

Neat! Would you be interested in porting that to a Hive app? We'd love to get some BTC-E action in there!

Hive, a beautiful, secure wallet with an app platform for Mac OS X, Android and Mobile Web. Translators wanted! iOS and OS X devs see BitcoinKit.
Tweets @hivewallet. Skype us here. Donations appreciated at 1HLRg9C1GsfEVH555hgcjzDeas14jen2Cn
daybyter
Legendary
*
Offline Offline

Activity: 965


View Profile
December 08, 2013, 11:11:50 PM
 #55

To be honest: I have no clue, how hive works...  Grin

But the btc-e stuff is dirt simple. It's just 4 or 5 lines of js with some jsquery mobile and some rough html to display the tables.

The most interesting part would be a nice graph with candles etc. But I never managed to get there. I code java most of the time
and can't even read those candle graphs, so I wrote me my own UI:

http://i.imgur.com/MqHfF.jpg

So I guess, I won't be much help for you...  Sad

Desensitizer
Jr. Member
*
Offline Offline

Activity: 42


View Profile
December 09, 2013, 03:53:59 AM
 #56

Any plans to develope a Windows version of hive? I am interested in trying it out and I would be willing to do some beta testing if you needed it.

jsuder
Full Member
***
Offline Offline

Activity: 145


┗(°0°)┛


View Profile
December 09, 2013, 04:09:13 PM
 #57

Three more updates about the API:

  • getSystemInfo - it now includes locale and preferred currency info; the version and build number properties I mentioned before were also moved there (sorry...)
  • updateExchangeRate - you can now get currency exchange rates (e.g. USD/BTC) inside apps
  • makeRequest - this should be used to bypass origin policy if a web API doesn't support JSONP or CORS (again, please don't rely on the fact that Hive is currently disabling the origin policy check)

These changes will be available in the next build.

Former main developer of Hive Mac | @kuba_suder at Twitter
icedicedavid
Full Member
***
Offline Offline

Activity: 154


Ice-Dice.com | Massive Referral Bonus!


View Profile WWW
December 10, 2013, 09:17:21 AM
 #58

what is the user base for hive now?

hivewallet
Sr. Member
****
Offline Offline

Activity: 378


hivewallet.com


View Profile WWW
December 10, 2013, 11:42:09 AM
 #59

what is the user base for hive now?

Since we are warning people at every turn to be careful with our wallet until it leaves "alpha" stage, there are probably not a lot. However, we will be peeling off those labels very soon and making a wider push.

Still, we do get emails every day asking for support, and we see in those that a lot of people are totally ignoring our warnings and sending thousands of dollars worth of Bitcoin using Hive. We don't have any kind of "calling home" feature to tally data, so we cannot be too specific just yet.

Hive, a beautiful, secure wallet with an app platform for Mac OS X, Android and Mobile Web. Translators wanted! iOS and OS X devs see BitcoinKit.
Tweets @hivewallet. Skype us here. Donations appreciated at 1HLRg9C1GsfEVH555hgcjzDeas14jen2Cn
hivewallet
Sr. Member
****
Offline Offline

Activity: 378


hivewallet.com


View Profile WWW
December 10, 2013, 11:42:55 AM
 #60

Any plans to develope a Windows version of hive? I am interested in trying it out and I would be willing to do some beta testing if you needed it.

Hi Desensitizer! Only if an exceptional Windows developer steps up to help us. It's not something we really know anything about, unfortunately.

Hive, a beautiful, secure wallet with an app platform for Mac OS X, Android and Mobile Web. Translators wanted! iOS and OS X devs see BitcoinKit.
Tweets @hivewallet. Skype us here. Donations appreciated at 1HLRg9C1GsfEVH555hgcjzDeas14jen2Cn
Pages: « 1 2 [3] 4 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!