Lee Blazek
Yeah right...
Cordova is a way that JS can access native device capabilities like push notifications, camera, contacts, etc.
It does this thru plugins - so one JS command is the same in all devices.
BUT
there has to be corresponding native code written per device platform in the native language per platform.
"The StatusBar object provides some functions to customize the iOS and Android StatusBar."
function loadData() { }
function test() {
try {
loadData()
}
catch (error) {
print(error)
}
}
#import "XYZPerson+XYZPersonNameDisplayAdditions.h"
@implementation SomeObject
- (void)someMethod {
XYZPerson *person = [[XYZPerson alloc] initWithFirstName:@"John"
lastName:@"Doe"];
XYZShoutingPerson *shoutingPerson =
[[XYZShoutingPerson alloc] initWithFirstName:@"Monica"
lastName:@"Robinson"];
NSLog(@"The two people are %@ and %@",
[person lastNameFirstNameString], [shoutingPerson lastNameFirstNameString]);
}
@end
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
int width = MeasureSpec.getSize(widthMeasureSpec);
int height = MeasureSpec.getSize(heightMeasureSpec);
if (0 == mRatioWidth || 0 == mRatioHeight) {
setMeasuredDimension(width, height);
} else {
if (width < height * mRatioWidth / mRatioHeight) {
setMeasuredDimension(width, width * mRatioHeight / mRatioWidth);
} else {
setMeasuredDimension(height * mRatioWidth / mRatioHeight, height);
}
}
}
func loadData() throws { }
func test() {
do {
try loadData()
} catch {
print(error)
}
}
if achievable at all due to:
platform versioning
performance
needing to write custom plugins
excessive platform specific coding
A UWP app can run on any Windows-based device, including phones, tablets, and PCs.
WinJS supports motion, touch, keyboard and screen reader input. With multiple sources for input, you can go wild with user interaction. It delivers fluid animations and smooth UI rendering. A polished delivery of content makes for a sophisticated interface.
angular-winjs
Project to smooth the AngularJS/WinJS interaction. This code is a shim layer which facilitates usage of WinJS UI controls in an Angular Windows application. It achieves this by creating directives for the various controls which allow them to show up in Angular markup like:
Cordova Apps, native Apps, mobile websites, responsive web sites, WTF? really?
| native apps |
mobile website | responsive website | desktop | |
|---|---|---|---|---|
| initial load | slow | fast | fast | fast |
| subsequent loads | fast | slow | slow | fast |
| gesture nav | yes | yes | no | no(well maybe windows now) |
| offline | yes | possible | no(maybe) | no |
| push notify | yes | no | no | safari only |
| UX | great | better | okay | good on desktop |
| User expectations | high | medium | medium | high |
SVG's
Icon fonts
BUT!!
Make sure you design it with flat design so you can do that. And you may have to explain that to clients if they want to influence or provide designs
Whats that?
| 8.0 | September 17, 2014; 13 months ago |
| 8.0.1 | September 24, 2014; 13 months ago |
| 8.0.2 | September 25, 2014; 13 months ago |
| 8.1 | October 20, 2014; 12 months ago |
| 8.1.1 | November 17, 2014; 11 months ago |
| 8.1.2 | December 9, 2014; 10 months ago |
| 8.1.3 | January 27, 2015; 9 months ago |
| 8.2 | March 9, 2015; 8 months ago |
| 8.3 | April 8, 2015; 7 months ago |
| 8.4 | June 30, 2015; 4 months ago |
| 8.4.1 | August 13, 2015; 3 months ago |
| 4.4.2 | December 9, 2013 |
| 4.4.3 | June 2, 2014 |
| 4.4.4 | June 19, 2014 |
| 4.4w | June 25, 2014 |
| 4.4w.1 | September 6, 2014 |
| 4.4w.2 | October 21, 2014 |
| 5 | November 12, 2014 |
| 5.1 | March 9, 2015 |
| 5.1.1 | April 21, 2015 |
| 6.0 | June 30, 2015; 4 months ago |
Text
Android verions
Less code to start with is best for performance = best for UX
The longer you go without testing on devices the longer you will have to spend at the end refactoring once you test on devices