On Thu, Oct 25, 2012 at 7:50 AM, Kevin Dangoor <[email protected]> wrote: > r2d2b2g is being rebranded "Firefox OS Simulator" and Myk and others are > working on making it easy for web developers to install apps that they're > working on. > > In order to have an idea of what kinds of apps developers can test, I'm > interested in knowing which APIs should work on B2G Desktop. The table here > gives me an idea: > > https://wiki.mozilla.org/WebAPI#Planned_for_initial_release_of_B2G_.28aka_Basecamp.29 > > Here is my guess as to what the support would be, but I'd like confirmation > from people who know! I am most interested to specifically know if any of the > APIs I list under "should work" below actually don't. > > Should work: > > * Idle API > * TCP Socket API > * Geolocation API > * Device Storage API > * Contacts API > * Open Web Apps > * Alarm API > * Browser API > * Time/Clock API > * Web Activities > * Permissions API > * Web Payment > * IndexedDB > * Archive API
This sounds great. This should cover almost all of the APIs that people will want to use. > Not available (requires hardware or at least needs to be mocked out to be > useful in simulation): > > * Web Telephony > * Vibration API > * WebSMS > * Screen orientation > * Power management API > * Mobile connection API > * Wifi Information API > * Web Bluetooth > * Battery Status API > * WebFM API > * Ambient Light Sensor > * Proximity Sensor It *should* be possible to get the battery status API working on most desktop platforms. IIRC we're just lacking OSX support. But it doesn't seem worth spending time on this API as it's relatively unlikely to be critical for apps. The orientation API is more unfortunate I think. Could we emulate this by rotating the emulated on-screen device? I would imagine that this is something that developers would want to try out. Likewise vibration API is probably something that game developers would want to try out. Would it be possible to write a shim implementation which blinks the screen or otherwise creates a visual indicator for when vibration is turned on? I don't think any of the above are critical, so we can definitely live with the above list for an initial release. / Jonas _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
