Commit Graph

60 Commits

Author SHA1 Message Date
Andrew
ce06f6e40b style(): move from jshint to eslint 2015-04-14 16:28:20 -06:00
Perry Govier
f766ff4396 Merge pull request #3301 from sloops77/master
feat(platform): recognize trigger.io as a webView platform
2015-03-27 11:07:39 -05:00
Shamsher Ansari
a64db4b590 Update exit() to exitApp()
Updated exit() to exitApp() for documentation as the name of the function is exitApp.
2015-03-26 12:55:43 +05:30
Andres Olave
4a4afb85ce correction to trigger.io merge 2015-03-12 17:12:37 +02:00
Andres Olave
89297d9cee Merge trigger.io 2015-03-12 16:29:43 +02:00
Tim Lancina
1c7b288357 fix(platform): revert b1f94da27e, fixes #3175 #3279 2015-03-11 17:24:48 -05:00
Talon
f3746c53b2 Document requirements for statusbar methods
`cordova plugin add org.apache.cordova.statusbar` is required to use the statusbar methods
2015-02-18 12:42:36 -07:00
Oliver Salzburg
faa961b5d3 chore(platform): remove duplicate event listener attachment 2015-02-13 13:44:16 +01:00
Adam Bradley
d24ac308c3 test(platform): iOS from iPod user agent 2015-01-09 08:54:22 -06:00
Adam Bradley
b8112aba2a style(): minify/style updates 2015-01-09 08:45:11 -06:00
vjanssens
7485cf2b00 Added usage information for Platform methods 2015-01-02 21:27:08 +01:00
Adam Bradley
9f1f86d18b Merge pull request #2608 from pauljandrew/patch-1
docs(platform): version is a number
2014-12-06 21:19:24 -06:00
Max Lynch
e44c2b5228 Fixed cheeky assignment 2014-12-04 14:14:22 -06:00
Max Lynch
f471f56f74 feat(platforms): allow overriding platform in querystring 2014-12-04 14:10:14 -06:00
Andres Olave
6665eac870 Add support for trigger.io 2014-12-04 10:04:31 +02:00
Adam Bradley
9513eb60ba style(jscs): code formatting 2014-12-03 01:04:40 -06:00
Paul Andrew
cdaa324b5f Update platform.js
This is returning a number rather than a string. Not sure if the doc or the code is incorrect. To return a String you'd need to return device().v instead of device().version.
2014-11-25 18:21:41 +00:00
chaffeqa
6b29d44ce3 Correctly handle window loaded states
Previously if this script was executed after the window was loaded, none of the callbacks would fire.

See https://developer.mozilla.org/en-US/docs/Web/API/document.readyState for definition of detecting the `load` event.

TODO: Potentially this is redundent, since maybe using `ionic.DomUtil.ready` would mean one less listener.  However I don't know if the listeners attached to `ionic.Platform.ready` require the `document.readyState` to be `complete` rather than only `interactive`.

Linked to #2229
2014-09-16 19:11:19 -04:00
Perry Govier
b1f94da27e fix(platform): fullscreen method will not offset footer by 20px 2014-09-09 17:05:03 -05:00
Raymond Camden
9c370fdd3a Update platform.js
I added a bit of detail to ready function to remind folks that - in the context of a web browser - even though ready has fired it is *NOT* going to allow for device specific features. It may be too obvious, but I really think a reminder here will help.
2014-09-08 11:19:04 -05:00
Adam Bradley
150f116e53 refactor(platform): do not console.error on device get
With user agent fallbacks, its unnecessary to print out errors if the
device plugin isn’t there.
2014-09-04 23:38:01 -05:00
Andrew
7e20424a87 test(platform): fix unit tests for setting platform to null 2014-07-21 08:22:07 -06:00
Andrew Joslin
05dd7b1864 feat(ionic.Platform): add ionic.Platform.setGrade() function
Closes #1104
2014-06-11 11:15:33 -06:00
Adam Bradley
4928b996d6 set WP8 as a grade-b device 2014-05-09 09:33:35 -05:00
Adam Bradley
08e4b3d95b feat(platform): added isWindowsPhone() method 2014-05-07 14:48:36 -05:00
Adam Bradley
5f8e9040bd fix(viewport): Auto update viewport tag 2014-05-02 10:12:48 -05:00
Adam Bradley
5c300dd3e0 refactor(platform): Rename isCordova() to isWebView()
BREAKING CHANGE: ionic.Platform.isCordova() has been renamed to
ionic.Platform.isWebView()
2014-04-07 11:56:11 -05:00
Adam Bradley
b1d9ab84f4 run not ran 2014-04-05 21:28:12 -05:00
Adam Bradley
ead30f2ed5 docs(platform): Explain ionic.Platform.ready() further 2014-04-05 20:46:17 -05:00
Adam Bradley
681a6a2ed7 feat(ready): Add 'platform-ready' css class to the body when the platform is ready 2014-03-20 16:38:59 -05:00
Adam Bradley
f852661979 check StatusBar obj exists before calling it 2014-03-19 13:59:36 -05:00
Adam Bradley
f602674a19 fix docs method names 2014-03-18 13:19:38 -05:00
Adam Bradley
6627aafe05 improve hiding status bar and reduce flickers 2014-03-18 11:56:24 -05:00
Adam Bradley
dc138b4fa3 do not remove cordovans deviceready event listener 2014-03-18 09:04:50 -05:00
Andy Joslin
bd66fc8b28 docs(): remove group tag 2014-03-17 10:24:28 -06:00
Andy Joslin
8619d5e8ec docs(): add groups by topic 2014-03-14 15:14:16 -06:00
Andy Joslin
e9625ded9d docs: add services, utilities 2014-03-11 13:02:36 -06:00
Adam Bradley
181269a2fe do not set a platform if unknown, closes #753 2014-03-09 22:01:38 -05:00
Adam Bradley
a6c47cd3bf fix(platform): Fix Platform.showStatusBar so it can be used multiple times, closes #702 2014-02-28 23:31:13 -06:00
Adam Bradley
631208f1d8 _checkPlatforms refactor 2014-02-24 22:05:00 -06:00
Adam Bradley
b051fa7c9f platform test fix 2014-02-24 14:44:59 -06:00
Adam Bradley
7a3930f6ae improve platform/version/grade fallbacks with user-agents 2014-02-24 13:42:33 -06:00
Adam Bradley
fcd0fa73c4 fix(platform): Update ionic.Platform.is() to check all platforms, closes #604 2014-02-23 21:58:17 -06:00
Adam Bradley
b69b40c826 feat(grade): Set grade in body class depending on platform performance
First draft of how devices play out:

.grade-a:
- iOS
- >= Android 4.4

.grade-b:
- Android >= 4 && < 4.4

.grade-c:
- Android < 4
2014-02-20 20:41:48 -06:00
Adam Bradley
e96a77e5ac wrap exitApp in cordova ready 2014-02-05 20:49:36 -06:00
Adam Bradley
7352be9010 set major and minor platform versions in body css 2014-01-31 20:57:26 -06:00
Adam Bradley
f37b196ff8 refactor ionic.Platform methods 2014-01-31 20:36:39 -06:00
Adam Bradley
25a9e527af ionic.Platform.exitApp(), always run onPlatformReady() 2014-01-31 11:55:31 -06:00
Adam Bradley
2add26afbb readyCallbacks array and platform() method to get name 2014-01-31 10:45:31 -06:00
Adam Bradley
19ac6188aa created Platform.fullScreen and Platform.showStatusBar 2014-01-16 13:52:12 -06:00