Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are you planning to implement LiveQuery in dotnet sdk? #199

Open
Mahdi7s opened this issue Mar 28, 2016 · 81 comments
Open

Are you planning to implement LiveQuery in dotnet sdk? #199

Mahdi7s opened this issue Mar 28, 2016 · 81 comments

Comments

@Mahdi7s
Copy link

Mahdi7s commented Mar 28, 2016

we are developing a real-time game using unity3d . please let us know that if you are going to implement the LiveQuery feature in your sdk, so we start using it to develop our game.

@richardjrossiii
Copy link
Contributor

Eventually, yes. We do have plans to support LiveQuery on all of our targets that we currently support, including .NET.

The situation is a bit more complicated than other platforms, as we have such a diversity in versions of .NET and APIs supported by our .NET platforms compared to everywhere else, and as such we do not currently have an ETA.

I'll keep this issue open until we have a formal release for it, or when we might have an ETA.

To others reading this issue: To help us gauge interest and priority amongst other issues, if you're interested in this, please comment on this issue.

@IkeTheDestroyer
Copy link
Contributor

Definitely interested in this for Unity iOS/Android.

@thewizster
Copy link

👍 👍

@arturogutierrez
Copy link

💯

@hl4hck
Copy link

hl4hck commented Apr 19, 2016

+1

@Apoll0
Copy link

Apoll0 commented May 17, 2016

+1 for Unity

@hl4hck
Copy link

hl4hck commented May 27, 2016

I am developing a mobile game using Unity3D.
Is it possible to use LiveQuery with REST API (HTTP.Request)?

@richardjrossiii
Copy link
Contributor

@hl4hck Absolutely! The protocol specification for LiveQuery can be found here: https://github.com/ParsePlatform/parse-server/wiki/Parse-LiveQuery-Protocol-Specification.

You can also, of course, take a look at the open source JS and iOS clients and use those as a basis for any other clients you might make.

@hl4hck
Copy link

hl4hck commented May 27, 2016

@richardjrossiii Thank you!

@couchworx
Copy link

+1

1 similar comment
@kenglou
Copy link

kenglou commented Jul 15, 2016

+1

@chris3000
Copy link

+1, although the API seems pretty simple. I'll try to implement in Unity using BestHTTP until it's stable in the Parse SDK.

@abagshaw
Copy link

abagshaw commented Aug 5, 2016

+1

@johnnydimas
Copy link

yes please!

@FlorianSchuler
Copy link

+1

@tofutim
Copy link

tofutim commented Oct 17, 2016

Has anyone successfully gotten LiveQuery to work from .NET? @richardjrossiii is this still active?

@farzadi
Copy link

farzadi commented Nov 13, 2016

+1

@miracle7
Copy link

@chris3000 Did you have any luck getting this working with Unity?

Looking into trying it myself but if there is anything interesting you have to share could save some tears haha

@chris3000
Copy link

No, I haven't tried yet. We're using a polling strategy for now.

@plyoung
Copy link

plyoung commented Apr 12, 2017

+1 Unity.

@vladrad
Copy link

vladrad commented Apr 14, 2017

I would be so down to work on this! Im just not sure where to start.

@Apoll0
Copy link

Apoll0 commented Apr 18, 2017

+1 for unity

@ndastur
Copy link

ndastur commented May 20, 2017

+1 Would love to see this for xamarin forms apps

@eclipse1985
Copy link

+1

1 similar comment
@muhammad-naderi
Copy link

+1

@ra7bi
Copy link

ra7bi commented Sep 21, 2017

+1 any updates ?

@TheFanatr
Copy link
Contributor

TheFanatr commented May 19, 2018

It also occurred to me that if you are referring to LiveQuery specifically, I was working on it at some point, but did not have enough time to finish it. I may at some point, but it should be noted that pretty much anyone can do it because the .NET/CLI Parse API is almost analogous to the "Java Platform"/JVM Parse API, so it shouldn't require too much work considering that LiveQuery is already implemented in Java, something I failed to notice when I was trying to do it myself.

@JonMcPherson
Copy link

JonMcPherson commented Jul 16, 2018

Is this being worked on at all? any plans to release it into this library? I'm thinking about implementing live query support for .NET myself if it doesn't yet exist as open source. I'll probably base it off of the Android/Java implementation.

@flovilmart
Copy link

@JonMcPherson feel free to get started, I believe the architecture of the SDK is settled now and @montymxb could get you started!

@JonMcPherson
Copy link

JonMcPherson commented Jul 29, 2018

@flovilmart Just to update, I have ported the ParseLiveQuery-Android project to .NET Standard 2.0 built against Parse 2.0.0 from master. It uses the websocket-sharp library and is complete with unit tests which were also ported and improved from the Android implementation.
I am currently working on integrating this with a Unity 2018.2 project, and will update here once I get that working.
https://github.com/JonMcPherson/parse-live-query-dotnet

@flovilmart
Copy link

That’s awesome! Wonderful!

@block0xhash
Copy link

Hi All, is LiveQuery now available on the .NET SDK by anychance ?

@joechihe
Copy link

joechihe commented Aug 20, 2020

I think this topic is not complicated to implement. I'm using Back4app as Parse cloud provider.
In Back4app enabling LiveQuery is extremely easy.
Then using websocket-sharp library, in less than 1 hour, you can connect to LiveQuery and receive real time notifications. It is very simple. I already was able to do it and I will share an example soon.

@JonMcPherson I checked your code: https://github.com/JonMcPherson/parse-live-query-dotnet. Seems to be very promising, however I think the implementation is little bit over complicated for most scenarios. Still it is good to check your code to understand the connection against Parse Server service.

So, instead of wait for this Parse SDK library to include the change, I will say developers here, go ahead and implement your own version of this feature. I think these days, developers want to have everything on a silver platter and I get it, but sometimes we can do a little of extra effort and search different solutions

@TheFanatr
Copy link
Contributor

@joechihe This needs to be done; if you believe you can, please make a pull request adding this feature. Otherwise, I will eventually get to it, but it will take a while.

@joechihe
Copy link

joechihe commented Aug 20, 2020

@joechihe This needs to be done; if you believe you can, please make a pull request adding this feature. Otherwise, I will eventually get to it, but it will take a while.

@TheFanatr Oh, I didn't mean to wait until you can implement it. Actually I wanted to share that everyone can implement this, and not to wait for you guys to add the feature. You're doing great job! And Parse Server is still a great solution for a backend system

@TheFanatr
Copy link
Contributor

We'll of course still try our best to add it. 😃

@JonMcPherson
Copy link

@joechihe Yea I mean porting the Java implementation was easy enough, and it works great for me. That's also the reason the implementation seems a bit verbose and over-complicated. Had I implemented a client myself, I probably would have trimmed it down a bit.

@joechihe
Copy link

@joechihe Yea I mean porting the Java implementation was easy enough, and it works great for me. That's also the reason the implementation seems a bit verbose and over-complicated. Had I implemented a client myself, I probably would have trimmed it down a bit.

Cool, I will try to create a simplified implementation with the most common scenarios. Still I don't know if it is easier create it as separated library, or create it as functional feature inside Parse SDK library. I have limited time, so I need to go for easiest option for me.
@TheFanatr If I can include it as part of this library, under what namespace or folder is better to add it?

@TobiasPott
Copy link
Member

@joechihe I would be interested in your simplified implementation too. I haven't looked into LiveQuery that much and it would help me better understand its purpose. (No pressure! But honest interest =))

@stephenhauck
Copy link

I love the idea of the overall system and wanted to use it for several solutions but I have moved so much to Azure at this point ... not sure when Back4App or the like will be a better deal for me ?

@JanusMirith
Copy link

I have LiveQuiry working in unity 2020.1 on the new 2.0.0 code base.
I just grabbed Jon's code and fixed all the breaking changes.
I plan to move forward with cleaning things up and moving things more to events rather then callbacks.

If this is interesting to anyone I am happy to share, just not quite sure the best way to do so.

@Evilc06
Copy link

Evilc06 commented Sep 26, 2020

I have LiveQuiry working in unity 2020.1 on the new 2.0.0 code base.
I just grabbed Jon's code and fixed all the breaking changes.
I plan to move forward with cleaning things up and moving things more to events rather then callbacks.

If this is interesting to anyone I am happy to share, just not quite sure the best way to do so.

If you do manage to make it work please do let me know, I would like to test this for Unity and develop something with it :)

@JanusMirith
Copy link

If you do manage to make it work please do let me know, I would like to test this for Unity and develop something with it :)

It is working now, I am just writing up some quality of life improvements for unity (automatically calling on main thread)
I am also doing some automatic local caching and whatnot to make it kinda run like firebase, probably not to everyone's tastes.
If no-one is in a huge rush I'll take a week to test and comment everything then share

@Evilc06
Copy link

Evilc06 commented Sep 28, 2020

If you do manage to make it work please do let me know, I would like to test this for Unity and develop something with it :)

It is working now, I am just writing up some quality of life improvements for unity (automatically calling on main thread)
I am also doing some automatic local caching and whatnot to make it kinda run like firebase, probably not to everyone's tastes.
If no-one is in a huge rush I'll take a week to test and comment everything then share

Not a problem, take your time to test and possibly comment that would be truly appreciated. Also, would you be able to provide a test on how to make it work?

@JanusMirith
Copy link

Ok I have it all running with a test scene and a example script (just fill in your own keys and URLs)
It is currently designed to sit in the asset folder as a submodule, perhaps in future it might be a package.

Effectively it is just a tweak of what @JonMcPherson did with some quality of life stuff for unity, I would love to maybe work out a way to properly contribute to that or to this. But at the moment just pull this down and let me know what you think.
https://github.com/JanusMirith/ParseRealtimeQuery

I have it working on Windows Standalone, iOS, Android (including Quest (woooo))
It is NOT working on UWP (hololens, boooooo) due to a possible Parse bug (can not access C:// on initialize (something to do with the Cache Controller))

If all that you want is a Parse 2.0.0 compatible liveQuery implementation you can ignore the stuff around RealTimeQuery, that whole thing is a way i wanted to simplify the process of a liveQuery by combining the initial query and the live query into one Real Time entity that you can just make subscribe to. I think it is fabulous but it might be hot garbage for all I know.

@Evilc06
Copy link

Evilc06 commented Sep 30, 2020

Awesome thanks, will test it out when I can and let you know how it goes!

@jeansebastienZ
Copy link

Ok I have it all running with a test scene and a example script (just fill in your own keys and URLs)
It is currently designed to sit in the asset folder as a submodule, perhaps in future it might be a package.

Effectively it is just a tweak of what @JonMcPherson did with some quality of life stuff for unity, I would love to maybe work out a way to properly contribute to that or to this. But at the moment just pull this down and let me know what you think.
https://github.com/JanusMirith/ParseRealtimeQuery

I have it working on Windows Standalone, iOS, Android (including Quest (woooo))
It is NOT working on UWP (hololens, boooooo) due to a possible Parse bug (can not access C:// on initialize (something to do with the Cache Controller))

If all that you want is a Parse 2.0.0 compatible liveQuery implementation you can ignore the stuff around RealTimeQuery, that whole thing is a way i wanted to simplify the process of a liveQuery by combining the initial query and the live query into one Real Time entity that you can just make subscribe to. I think it is fabulous but it might be hot garbage for all I know.

Ok I have it all running with a test scene and a example script (just fill in your own keys and URLs)
It is currently designed to sit in the asset folder as a submodule, perhaps in future it might be a package.

Effectively it is just a tweak of what @JonMcPherson did with some quality of life stuff for unity, I would love to maybe work out a way to properly contribute to that or to this. But at the moment just pull this down and let me know what you think.
https://github.com/JanusMirith/ParseRealtimeQuery

I have it working on Windows Standalone, iOS, Android (including Quest (woooo))
It is NOT working on UWP (hololens, boooooo) due to a possible Parse bug (can not access C:// on initialize (something to do with the Cache Controller))

If all that you want is a Parse 2.0.0 compatible liveQuery implementation you can ignore the stuff around RealTimeQuery, that whole thing is a way i wanted to simplify the process of a liveQuery by combining the initial query and the live query into one Real Time entity that you can just make subscribe to. I think it is fabulous but it might be hot garbage for all I know.

Hello, i can't open the scene with unity ( i'm using mac , don't know if it imply something ) . By the way , could you explain , how to import it on an existing project ?

Thanks you ,

@jeansebastienZ
Copy link

Did someone made JanusMirith job work ? If yes , could you explain how you did import the project , where to put the files ?

@zhaosizheng
Copy link

I tried to build JonMcPherson's code on https://github.com/JonMcPherson/parse-live-query-dotnet with visual studio 2019,
but failed because cannot find Parse.Common.Internal and Parse.Core.Internal, anyone have any idea what's going wrong?

@zhaosizheng
Copy link

zhaosizheng commented Jul 16, 2022

I try to use parse livequery dotnet on my winform project so my winform can get real time data from mongo database, but I just cannot solve the issues on https://github.com/JonMcPherson/parse-live-query-dotnet which failed to build, anybody can help me out will be very appreciated, my email is [redacted].

@jorgeluis11
Copy link

+1 Unity - C#

@hamednasery
Copy link

hamednasery commented Apr 25, 2024

8 yrs and not resolved!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests