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 · 87 comments · Fixed by #393
Open

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

Mahdi7s opened this issue Mar 28, 2016 · 87 comments · Fixed by #393

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 ?

@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!!!

@YBTopaz8
Copy link
Member

YBTopaz8 commented Dec 2, 2024

I did an Initial Port of Live Queries from JonMcPherson in .NET that works on .net 9 and MAUI.
I tested in in Windows and Android but don't think other platforms will be an issue..

https://github.com/YBTopaz8/parse-live-query-dotnet

I even did a video on how to use, if that can help!
https://youtu.be/V-cUjq7Js84

@patkozlowski
Copy link

patkozlowski commented Dec 2, 2024

Thanks @YBTopaz8, great work. Will be testing this soon. I have a need for iOS devices (for Maui), but seeing this, I think it should work with that as well. This should eventually be merged into this project (or at least the modified fork using the base dotnet parse sdk). We've had a need for this for years.

@YBTopaz8
Copy link
Member

YBTopaz8 commented Dec 3, 2024

Hi @patkozlowski appreciate reply!
I can AND will test on MacOS likely by end of weekend but I can't test on an iPhone sadly since I don't have a dev account there.
I can always explain my whole workflow when updating/upgrading the SDK/live queries any time needed.

Despite being confident that it works well (after bunch of testing online, security verifications for mutex/atomicity in the new implementation of .NET 9), anyone is free to reach out in any way.

As expected, I did a sort of "soft rework" of the original parse SDK too, just by switching previous ways (UnWrapp(),OnSuccess etc) to the new-streamlined tasks way (always hated them lol!).
I also fixed some Issues, merged some pending PRs from this project when porting to .NET 9 just to uniformize it all.
I equally tried to add feature parity between the official repo and .NET's (mainly by training to fixed opened issues).
I'll add a section in my fork explain what I did and why - that way, anyone can pickup (I write a lot at times, so forgive my lengthy docs - they will be long!)

Been doing this port for months on end and am happy to share now finally (especially since I got it running for clients for a while and no complaints!)
I forgot to add my contact in previous reply if someone wants to reach out - sorry! it's 8brunel@gmail.com

Glad to help @patkozlowski @mtrezza !

(tagging some of others for them to see as well since they were waiting for such a long time lol! @hamednasery @zhaosizheng )

@YBTopaz8
Copy link
Member

YBTopaz8 commented Dec 5, 2024

Hi everyone,
I’ve submitted a PR that addresses this issue by upgrading the SDK to .NET 9 and introducing Live Queries support for .NET platforms, including .NET MAUI.
I look forward to your feedback and collaboration!

@parseplatformorg parseplatformorg added the state:released Released as stable version label Dec 19, 2024
@mtrezza mtrezza reopened this Dec 20, 2024
@mtrezza
Copy link
Member

mtrezza commented Dec 20, 2024

Reopening; this feature is still not implemented; #393 was a preparation for LiveQuery implementation.

@mtrezza mtrezza removed the state:released Released as stable version label Dec 20, 2024
@YBTopaz8
Copy link
Member

YBTopaz8 commented Dec 20, 2024

All things going well, .NET should be beginning 2025 with Parse LQ support with RX.Net built-in.

We just needed to do a major update.

Sharing more soon!

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

Successfully merging a pull request may close this issue.