forked from w3c/miniapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
comparison.html
2248 lines (1319 loc) · 66.8 KB
/
comparison.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Comparison of APIs in MiniApps, the W3C specs, and PWA.next</title>
<style>
body {
line-height: 1.5;
widows: 2;
orphans: 2;
color: black;
max-width: 50em;
margin: 0 auto;
}
.table-wrapper {
overflow-x: scroll;
border: 2px solid red;
}
table {
border-collapse: collapse;
}
tr {
border-bottom: 1px solid #ddd;
}
th, td {
min-width: 200px;
}
table, th, td {
padding: 0.25em;
border: 1px solid black;
}
</style>
</head>
<body>
<h2>Comparison of APIs in MiniApps, the W3C specs, and PWA.next</h2>
<p>Please slide to the left for more information.</p>
<div class="table-wrapper">
<table>
<col class="col0">
<col class="col1">
<col class="col2">
<col class="col3">
<col class="col4">
<col class="col5">
<col class="col6">
<col class="col7">
<col class="col8">
<tbody>
<tr class="row0">
<td class="column0 style1 s">Category</td>
<td class="column1 style9 s">Features/Standards</td>
<td class="column2 style9 s">W3C Spec</td>
<td class="column3 style9 s">Spec Status</td>
<td class="column4 style24 s">PWA (PWA.next)</td>
<td class="column5 style26 s"><a href="https://www.quickapp.cn/" title="">QuickApp(Xiaomi, Huawei)</a></td>
<td class="column7 style28 s"><a href="https://docs.alipay.com/mini/developer/" title="">AlipayMiniProgram(Alipay)</a></td>
<td class="column8 style30 s"><a href="https://smartprogram.baidu.com/developer/index.html" title="">Baidu SmartProgram</a></td>
</tr>
<tr class="row1">
<td class="column0 style2 s">OS</td>
<td class="column1 style10 s">Android</td>
<td class="column2 style17 s"> </td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style17 s">Yes</td>
<td class="column7 style17 s">Yes</td>
<td class="column8 style23 s">Yes</td>
</tr>
<tr class="row2">
<td class="column0 style3 s">OS</td>
<td class="column1 style10 s">iOS</td>
<td class="column2 style17 s"> </td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">Yes (Partial)</td>
<td class="column5 style17 s">No</td>
<td class="column7 style17 s">Yes</td>
<td class="column8 style23 s">Yes</td>
</tr>
<tr class="row3">
<td class="column0 style3 s">OS</td>
<td class="column1 style10 s">Chrome OS</td>
<td class="column2 style17 s"> </td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">Yes (Chrome 67+)</td>
<td class="column5 style17 s">No</td>
<td class="column7 style17 s">No</td>
<td class="column8 style23 s">No</td>
</tr>
<tr class="row4">
<td class="column0 style3 s">OS</td>
<td class="column1 style10 s">Windows</td>
<td class="column2 style17 s"> </td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">Yes (Chrome 70+)</td>
<td class="column5 style17 s">No</td>
<td class="column7 style17 s">No</td>
<td class="column8 style23 s">No</td>
</tr>
<tr class="row5">
<td class="column0 style3 s">OS</td>
<td class="column1 style10 s">Linux</td>
<td class="column2 style17 s"> </td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">Yes (Chrome 70+)</td>
<td class="column5 style17 s">No</td>
<td class="column7 style17 s">No</td>
<td class="column8 style23 s">No</td>
</tr>
<tr class="row6">
<td class="column0 style4 s">Engine</td>
<td class="column1 style10 s">Engine</td>
<td class="column2 style17 s"> </td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">Browser Engines</td>
<td class="column5 style23 s">No Chromium layout engine but with V8 engine, more lightweight.<br />
Providing pure WebAPIs to app developers,Web JS APIs are mapped from Android native APIs and part of standard WebAPIs.<br />
Template part(with HTML tags)in .ux file mapping to single android native views and combined view components, provided native performance experiences.<br />
CSS subset: Mapping to attributes of Android View(e.g. position, color)</td>
<td class="column7 style23 s">Native(rendering)<br />
+ WebView (rendering) + Worker (Data storage and business logic) + V8(use UC<br />
browsing engine)</td>
<td class="column8 style23 s">rendering:Native+WebView<br />
logic:V8/Javascript Core</td>
</tr>
<tr class="row7">
<td class="column0 style5 s">File format</td>
<td class="column1 style10 s">Page</td>
<td class="column2 style17 s"> </td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">.html, .js, .css</td>
<td class="column5 style23 s">.ux file (template),<br />
.js, .css</td>
<td class="column7 style17 s">.axml, .js, .acss</td>
<td class="column8 style23 s">.swan, .js, .css</td>
</tr>
<tr class="row8">
<td class="column0 style5 s">ES6</td>
<td class="column1 style10 s">ES6</td>
<td class="column2 style17 s"> </td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style17 s">Yes</td>
<td class="column7 style17 s">Yes</td>
<td class="column8 style23 s">Yes</td>
</tr>
<tr class="row9">
<td class="column0 style5 s">Release</td>
<td class="column1 style10 s">Audit</td>
<td class="column2 style17 s"> </td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">No</td>
<td class="column5 style17 s">Yes</td>
<td class="column7 style17 s">Yes</td>
<td class="column8 style23 s">Yes</td>
</tr>
<tr class="row10">
<td class="column0 style5 s">Release</td>
<td class="column1 style10 s">App store integration</td>
<td class="column2 style17 s"> </td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">No</td>
<td class="column5 style17 s">Yes</td>
<td class="column7 style23 s">Can be used within Alibaba's Native Apps including Alipay, Taobao, DingDing, Gaode, ELE.me</td>
<td class="column8 style23 s">Can be used within Baidu App, and Open Source Union apps, such as IQiyi , Bilibili, Wifi and so on</td>
</tr>
<tr class="row11">
<td class="column0 style5 s">Modular</td>
<td class="column1 style10 s">Customized Component</td>
<td class="column2 style18 s"><a href="https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements" title="">Custom Elements</a></td>
<td class="column3 style17 s">Rec</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style17 s">Yes</td>
<td class="column7 style17 s">Yes</td>
<td class="column8 style23 s">Yes</td>
</tr>
<tr class="row12">
<td class="column0 style6 s">Add to home<br />
screen</td>
<td class="column1 style10 s">Add to home screen</td>
<td class="column2 style17 s"> </td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style17 s">Yes</td>
<td class="column7 style23 s">Yes (via A2HS feature<br />
on Safari)</td>
<td class="column8 style23 s">Yes</td>
</tr>
<tr class="row13">
<td class="column0 style5 s">Discoverable</td>
<td class="column1 style10 s">Discoverable</td>
<td class="column2 style17 s"> </td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Yes (search within<br />
system search bar, management apps, app store, browsers, home page etc.)</td>
<td class="column7 style23 s">Yes (search within<br />
Alipay)</td>
<td class="column8 style23 s">Yes (search with Baidu search engine)</td>
</tr>
<tr class="row14">
<td class="column0 style6 s">Application<br />
Lifecycle</td>
<td class="column1 style10 s">Web Share</td>
<td class="column2 style18 s"><a href="https://wicg.github.io/web-share/" title="">Web Share API</a></td>
<td class="column3 style17 s">CGR</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Share(@system.share +<br />
@service.share)</td>
<td class="column7 style17 s">onShareAppMessage</td>
<td class="column8 style23 s">Yes</td>
</tr>
<tr class="row15">
<td class="column0 style6 s">Application<br />
Lifecycle</td>
<td class="column1 style10 s">Splash screen</td>
<td class="column2 style19 s"><a href="https://github.com/w3c/manifest/issues/589#issuecomment-323232119" title="">Splash Screen in<br />
Manifest(WIP)</a></td>
<td class="column3 style17 s">Proposal</td>
<td class="column4 style17 s">Yes (WIP)</td>
<td class="column5 style23 s">Yes (private<br />
implementation)</td>
<td class="column7 style17 s">No and no necessary</td>
<td class="column8 style17 s">No and no necessary</td>
</tr>
<tr class="row16">
<td class="column0 style6 s">Application<br />
Lifecycle</td>
<td class="column1 style10 s">Service Workers</td>
<td class="column2 style18 s"><a href="https://w3c.github.io/ServiceWorker/" title="">Service Workers Nightly</a></td>
<td class="column3 style17 s">WD</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style17 s">No</td>
<td class="column7 style17 s">No and no necessary</td>
<td class="column8 style17 s">No and no necessary</td>
</tr>
<tr class="row17">
<td class="column0 style6 s">Application<br />
Lifecycle</td>
<td class="column1 style10 s">Web App Manifest</td>
<td class="column2 style19 s"><a href="https://www.w3.org/TR/appmanifest/" title="">Web<br />
App Manifest</a></td>
<td class="column3 style17 s">WD</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Yes (private<br />
implementation)</td>
<td class="column7 style23 s">Yes (private<br />
implementation)</td>
<td class="column8 style23 s">Yes (private<br />
implementation)</td>
</tr>
<tr class="row18">
<td class="column0 style6 s">Application<br />
Lifecycle</td>
<td class="column1 style10 s">App Info</td>
<td class="column2 style17 s">No</td>
<td class="column3 style17 s"> </td>
<td class="column4 style25 s">No</td>
<td class="column5 style23 s">App Info<br />
(@system.app)</td>
<td class="column7 style17 s">No</td>
<td class="column8 style17 s">No</td>
</tr>
<tr class="row19">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style10 s">Fullscreen</td>
<td class="column2 style18 s"><a href="https://fullscreen.spec.whatwg.org/" title="">Fullscreen API</a></td>
<td class="column3 style17 s">WD</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style17 s">manifest.display.fullscreen</td>
<td class="column7 style23 s">Yes (private<br />
implementation)</td>
<td class="column8 style23 s">Yes (private<br />
implementation)</td>
</tr>
<tr class="row20">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style10 s">Badging</td>
<td class="column2 style18 s"><a href="https://wicg.github.io/badging/" title="">Badging API</a></td>
<td class="column3 style17 s">CGR</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style17 s">No</td>
<td class="column7 style23 s">Tab Bar (private<br />
implementation)</td>
<td class="column8 style23 s">Tab Bar (private<br />
implementation)</td>
</tr>
<tr class="row21">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style10 s">Prompt</td>
<td class="column2 style17 s">No</td>
<td class="column3 style17 s"> </td>
<td class="column4 style25 s">No</td>
<td class="column5 style23 s">Prompt<br />
(@system.prompt)</td>
<td class="column7 style17 s">Popup component</td>
<td class="column8 style17 s">Popup component</td>
</tr>
<tr class="row22">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style10 s">Vibration</td>
<td class="column2 style18 s"><a href="https://w3c.github.io/vibration/" title="">Vibration API</a></td>
<td class="column3 style17 s">Rec</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Vibration<br />
(@system.vibrator)</td>
<td class="column7 style17 s">my.vibrate*</td>
<td class="column8 style23 s">swan.vibrateLong<br />
swan.vibrateShort</td>
</tr>
<tr class="row23">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style10 s">Notification</td>
<td class="column2 style18 s"><a href="https://notifications.spec.whatwg.org/" title="">Notifications API</a></td>
<td class="column3 style23 s">Living<br />
Standard</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Notification<br />
(@system.notification)</td>
<td class="column7 style23 s">Notice (private<br />
implementation)</td>
<td class="column8 style23 s">Template Message<br />
Customer Service Message <br />
(private impletmention)</td>
</tr>
<tr class="row24">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style10 s">Screen Orientation</td>
<td class="column2 style18 s"><a href="https://w3c.github.io/screen-orientation/" title="">The Screen Orientation API</a></td>
<td class="column3 style17 s">WD</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">orientation in JSON<br />
(Partial)</td>
<td class="column7 style17 s">No</td>
<td class="column8 style17 s">swan.onDeviceMotionChange</td>
</tr>
<tr class="row25">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style10 s">User Idle Detection</td>
<td class="column2 style18 s"><a href="https://github.com/inexorabletash/idle-detection" title="">User Idle Detection</a></td>
<td class="column3 style17 s">Proposal</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style17 s">No</td>
<td class="column7 style17 s">No</td>
<td class="column8 style17 s">No</td>
</tr>
<tr class="row26">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style10 s">Wake Lock</td>
<td class="column2 style18 s"><a href="https://w3c.github.io/wake-lock/" title="">Wake Lock API</a></td>
<td class="column3 style17 s">CR</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style17 s">No</td>
<td class="column7 style23 s">only Screen WakeLock<br />
(my.setKeepScreenOn(OBJECT))</td>
<td class="column8 style23 s">only Screen WakeLock<br />
swan.setKeepScreenOn</td>
</tr>
<tr class="row27">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style10 s">Clipboard</td>
<td class="column2 style18 s"><a href="https://w3c.github.io/clipboard-apis/" title="">Clipboard API and events</a></td>
<td class="column3 style17 s">WD</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Clipboard<br />
(@system.clipboard)</td>
<td class="column7 style17 s">my.getClipboard/my.setClipboard</td>
<td class="column8 style23 s">swan.setClipboardData<br />
swan.getClipboardData</td>
</tr>
<tr class="row28">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style11 s">execCommand</td>
<td class="column2 style20 s"><a href="https://w3c.github.io/editing/execCommand" title="">execCommand</a></td>
<td class="column3 style23 s">Unofficial<br />
Draft</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Clipboard<br />
(@system.clipboard)</td>
<td class="column7 style17 s">my.getClipboard/my.setClipboard</td>
<td class="column8 style23 s">swan.setClipboardData<br />
swan.getClipboardData</td>
</tr>
<tr class="row29">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style12 s">History API</td>
<td class="column2 style18 s"><a href="https://html.spec.whatwg.org/multipage/history.html#the-history-interface" title="">The History Interface</a></td>
<td class="column3 style17 s">WD</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Page Router<br />
(@system.router)</td>
<td class="column7 style17 s">Navigator component</td>
<td class="column8 style23 s">Router (private<br />
implementation)</td>
</tr>
<tr class="row30">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style10 s">Barcode</td>
<td class="column2 style18 s"><a href="https://wicg.github.io/shape-detection-api/" title="">Accelerated Shape Detection in Images</a></td>
<td class="column3 style17 s">ED</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Barcode<br />
(@system.barcode)</td>
<td class="column7 style23 s">Barcode (private<br />
implementation)</td>
<td class="column8 style23 s">swan.scanCode<br />
swan.ai.faceDetect<br />
swan.ai.advancedGeneralIdentify</td>
</tr>
<tr class="row31">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style10 s">Shake</td>
<td class="column2 style17 s">No</td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">No</td>
<td class="column5 style17 s">No</td>
<td class="column7 style17 s">my.watchShake(OBJECT)</td>
<td class="column8 style23 s">No</td>
</tr>
<tr class="row32">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style13 s">User Capture Screen<br />
Event</td>
<td class="column2 style17 s">No</td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">No</td>
<td class="column5 style17 s">No</td>
<td class="column7 style17 s">my.onUserCaptureScreen(CALLBACK)</td>
<td class="column8 style23 s">swan.onUserCaptureScreen</td>
</tr>
<tr class="row33">
<td class="column0 style6 s">User<br />
Interaction</td>
<td class="column1 style14 s">Alarms</td>
<td class="column2 style21 s">No</td>
<td class="column3 style21 s"> </td>
<td class="column4 style21 s">No</td>
<td class="column5 style21 s">Yes (@system.alarm)</td>
<td class="column7 style21 s">No</td>
<td class="column8 style23 s">No</td>
</tr>
<tr class="row34">
<td class="column0 style6 s">Payment and<br />
Services</td>
<td class="column1 style10 s">Payment</td>
<td class="column2 style18 s"><a href="https://w3c.github.io/payment-method-basic-card/" title="">Payment Method: Basic Card</a></td>
<td class="column3 style17 s">WD</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Pay (@service.pay)<br />
(WeChat + Alipay)</td>
<td class="column7 style17 s">Alipay</td>
<td class="column8 style23 s">swan.requestPolymerPayment</td>
</tr>
<tr class="row35">
<td class="column0 style6 s">Payment and<br />
Services</td>
<td class="column1 style10 s">Payment</td>
<td class="column2 style18 s"><a href="https://w3c.github.io/payment-method-id/" title="">Payment Method Identifiers</a></td>
<td class="column3 style17 s">CR</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Pay (@service.pay)<br />
(WeChat + Alipay)</td>
<td class="column7 style17 s">Alipay</td>
<td class="column8 style23 s">swan.requestPolymerPayment</td>
</tr>
<tr class="row36">
<td class="column0 style6 s">Payment and<br />
Services</td>
<td class="column1 style10 s">Payment</td>
<td class="column2 style18 s"><a href="https://w3c.github.io/payment-handler/" title="">Payment Handler API</a></td>
<td class="column3 style17 s">WD</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Pay (@service.pay)<br />
(WeChat + Alipay)</td>
<td class="column7 style17 s">Alipay</td>
<td class="column8 style23 s">swan.requestPolymerPayment</td>
</tr>
<tr class="row37">
<td class="column0 style6 s">Payment and<br />
Services</td>
<td class="column1 style10 s">Payment</td>
<td class="column2 style18 s"><a href="https://w3c.github.io/payment-request/" title="">Payment Request API</a></td>
<td class="column3 style17 s">CR</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Pay (@service.pay)<br />
(WeChat + Alipay)</td>
<td class="column7 style17 s">Alipay</td>
<td class="column8 style23 s">swan.requestPolymerPayment</td>
</tr>
<tr class="row38">
<td class="column0 style6 s">Network and<br />
Communications</td>
<td class="column1 style10 s">Push</td>
<td class="column2 style19 s"><a href="https://www.w3.org/TR/push-api/" title="">Push<br />
API</a></td>
<td class="column3 style17 s">WD</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style17 s">Push (@service.push)</td>
<td class="column7 style17 s">alipay.open.app.mini.templatemessage.send</td>
<td class="column8 style23 s">Template Message<br />
Customer Service Message <br />
(private impletmention)</td>
</tr>
<tr class="row39">
<td class="column0 style6 s">Network and<br />
Communications</td>
<td class="column1 style10 s">Fetch</td>
<td class="column2 style18 s"><a href="https://fetch.spec.whatwg.org/" title="">Fetch</a></td>
<td class="column3 style17 s">WD</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style17 s">Fetch (@system fetch)</td>
<td class="column7 style17 s">No (use my.request)</td>
<td class="column8 style23 s">swan.request</td>
</tr>
<tr class="row40">
<td class="column0 style6 s">Network and<br />
Communications</td>
<td class="column1 style10 s">WebSocket</td>
<td class="column2 style18 s"><a href="https://html.spec.whatwg.org/multipage/web-sockets.html#network" title="">Web sockets</a></td>
<td class="column3 style17 s">CR</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">WebSocket<br />
(@system.websocketfactory)</td>
<td class="column7 style23 s">my.connectSocket<br />
(private implementation)</td>
<td class="column8 style23 s">swan WebSocket</td>
</tr>
<tr class="row41">
<td class="column0 style6 s">Network and<br />
Communications</td>
<td class="column1 style10 s">iBeacon</td>
<td class="column2 style17 s">No</td>
<td class="column3 style17 s"> </td>
<td class="column4 style17 s">No</td>
<td class="column5 style17 s">No</td>
<td class="column7 style23 s">iBeacon (private<br />
implementation)</td>
<td class="column8 style23 s">No</td>
</tr>
<tr class="row42">
<td class="column0 style6 s">DataStorage<br />
</td>
<td class="column1 style10 s">Web Storage</td>
<td class="column2 style18 s"><a href="https://html.spec.whatwg.org/multipage/webstorage.html" title="">Web Storage</a></td>
<td class="column3 style17 s">Rec</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">Storage<br />
(@system.storage)</td>
<td class="column7 style23 s">Cache (private<br />
implementation)</td>
<td class="column8 style23 s">Cache (private<br />
implementation)</td>
</tr>
<tr class="row43">
<td class="column0 style6 s">DataStorage<br />
</td>
<td class="column1 style10 s">File API</td>
<td class="column2 style18 s"><a href="https://www.w3.org/TR/FileAPI/" title="">File API</a></td>
<td class="column3 style17 s">WD</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">File (@system.file)<br />
and File Upload/Download (@system.request)</td>
<td class="column7 style23 s">File (private<br />
implementation)</td>
<td class="column8 style23 s">File (private<br />
implementation)</td>
</tr>
<tr class="row44">
<td class="column0 style6 s">DataStorage<br />
</td>
<td class="column1 style13 s">Native File System<br />
API</td>
<td class="column2 style18 s"><a href="https://wicg.github.io/native-file-system/" title="">Native File System API</a></td>
<td class="column3 style17 s">ED</td>
<td class="column4 style17 s">Yes</td>
<td class="column5 style23 s">File (@system.file)<br />
and File Upload/Download (@system.request)</td>
<td class="column7 style23 s">File (private<br />
implementation)</td>
<td class="column8 style23 s">File (private<br />
implementation)</td>