You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**This is now a dart package. The Flutter package was moved [here](https://pub.dev/packages/parse_server_sdk_flutter).**
5
9
6
-
## Parse For Dart!
10
+
**THIS README IS WORK IN PROGRESS!**
11
+
Help out to improve this README on [GitHub](https://github.com/parse-community/Parse-SDK-Flutter/edit/master/packages/dart/README.md).
12
+
13
+
## Parse For Dart!
7
14
This is a Dart package that allows communication with a Parse Server, (https://parseplatform.org) either hosted on your own server or another, like (http://Back4App.com).
8
15
9
16
This is a work in progress and we are consistently updating it. Please let us know if you think anything needs changing/adding, and more than ever, please do join in on this project. (Even if it is just to improve our documentation)
If you would like to stop receiving events from a QueryBuilder, you can just unsubscribe the subscription.
522
-
After that, you won’t get any events from the subscription object and will close the WebSocket connection to the
528
+
If you would like to stop receiving events from a QueryBuilder, you can just unsubscribe the subscription.
529
+
After that, you won’t get any events from the subscription object and will close the WebSocket connection to the
523
530
LiveQuery server.
524
531
525
532
```dart
@@ -594,13 +601,13 @@ Other user features are:-
594
601
* Get all users
595
602
* Save
596
603
* Destroy user
597
-
* Queries
598
-
604
+
* Queries
605
+
599
606
## Facebook, OAuth and 3rd Party Login/User
600
-
607
+
601
608
Usually, each provider will provide their own library for logins, but the loginWith method on ParseUser accepts a name of provider, then a Map<String, dynamic> with the authentication details required.
602
609
For Facebook and the example below, we used the library provided at https://pub.dev/packages/flutter_facebook_login
603
-
610
+
604
611
```
605
612
Future<void> goToFacebookLogin() async {
606
613
final FacebookLogin facebookLogin = FacebookLogin();
@@ -651,9 +658,9 @@ For any object, you can specify which users are allowed to read the object, and
651
658
To support this type of security, each object has an access control list, implemented by the __ParseACL__ class.
652
659
653
660
If ParseACL is not specified (with the exception of the ParseUser class) all objects are set to Public for read and write.
654
-
The simplest way to use a ParseACL is to specify that an object may only be read or written by a single user.
661
+
The simplest way to use a ParseACL is to specify that an object may only be read or written by a single user.
655
662
To create such an object, there must first be a logged in ParseUser. Then, new ParseACL(user) generates a ParseACL that
656
-
limits access to that user. An object’s ACL is updated when the object is saved, like any other property.
663
+
limits access to that user. An object’s ACL is updated when the object is saved, like any other property.
657
664
658
665
```dart
659
666
ParseUser user = await ParseUser.currentUser() as ParseUser;
Hi, this is a Flutter plugin that allows communication with a Parse Server, (https://parseplatform.org) either hosted on your own server or another, like (http://Back4App.com).
@@ -49,12 +53,12 @@ It's possible to add other parameters to work with your instance of Parse Server
49
53
```
50
54
51
55
52
-
#### Early Web support
53
-
Currently this requires adding `X-Parse-Installation-Id` as an allowed header to parse-server.
56
+
#### Web support
57
+
Due to Cross-origin resource sharing (CORS) restrictions, this requires adding `X-Parse-Installation-Id` as an allowed header to parse-server.
54
58
When running directly via docker, set the env var `PARSE_SERVER_ALLOW_HEADERS=X-Parse-Installation-Id`.
55
59
When running via express, set [ParseServerOptions](https://parseplatform.org/parse-server/api/master/ParseServerOptions.html)`allowHeaders: ['X-Parse-Installation-Id']`.
56
60
57
-
Be aware that for web ParseInstallation does include app name, version or package identifier.
61
+
Be aware that for web ParseInstallation does include app name, version or package identifier automatically. You should manually provide this data as described [here](https://github.com/parse-community/Parse-SDK-Flutter/blob/master/docs/migrate-1-0-28.md#optional-provide-app-information-on-web);
0 commit comments