parse-community / Parse-SDK-dotNET

Parse SDK for .NET, Xamarin, Unity.
http://parseplatform.org
Apache License 2.0
323 stars 261 forks source link

Starter Projects need Updating #260

Closed PunkStarStudios closed 7 years ago

PunkStarStudios commented 7 years ago

The starter projects here are for the old Parse.com site. The code doesn't have anywhere to specify your own server address.

Can these be updated?

A simple matter that would have you scratching your head - but my problem is I can't get my dotnet clients to work (just REST and MacOS/iOS), so having a working starter project would go a long way to troubleshooting if the project is on my end or in the code base.

plyoung commented 7 years ago

Go through https://github.com/parse-community/Parse-SDK-dotNET/issues/166 and you find a build (DLL) that includes it. It is in the sources but they never made an official build.

This project feels so dead :(

PunkStarStudios commented 7 years ago

Hey - thanks for the note. I went through that thread you noted. The only link I found that went to code that had sample projects... was the existing sample projects found already (based on parse.com with no server setting).

But maybe I missed it.

Can you pull out the link for me? Pretty please? ;P

plyoung commented 7 years ago

This one https://github.com/parse-community/Parse-SDK-dotNET/issues/166#issuecomment-193965729 or this https://github.com/parse-community/Parse-SDK-dotNET/issues/166#issuecomment-194141770 includes the Parse.Unity.dll (cant remember which I use)

[edit] The last one. This 1st is not the one Parse.Unity.dll but 5 different ones.

I've only tested on PC to a localhost so far. No iOS or Android builds yet.

vladrad commented 7 years ago

Hi I just added added instructions in #166 on how to build.

PunkStarStudios commented 7 years ago

p@plyoung - nope. No sample projects in either link. Thanks anyhow.

Same issue remains... if someone can post a working Parse .net project with a server setting in the configuration - that would be dandy.

plyoung commented 7 years ago

@PunkStarStudios As I stated before. This comment includes a link to the Parse.Unity.dll https://github.com/parse-community/Parse-SDK-dotNET/issues/166#issuecomment-194141770 He gives a link at the bottom of his message.

I am using it now and it works.

Here is a direct link to the file provided https://github.com/ParsePlatform/Parse-SDK-dotNET/files/164631/Parse.Unity.zip

PunkStarStudios commented 7 years ago

Maybe I am missing something... or I am being unclear or simply an idiot... But I am not looking for a DLL (I am not using unity)... I am looking for a startup project for either C# or VB.net... be it for VS2015 or whatever.

That link above - has 2 files - a DLL and an XML. No idea what the XML is all about - looks to be some spec file to go along with the DLL... probably enumerating the DLL hooks for a Unity project it gets dumped into or something.

So tell me - am I missing something? Where's the SLN files or whatnot?

plyoung commented 7 years ago

Sorry, I was under the impression you are talking about the Unity version since it is also hosted in this repo. The DLL I linked will not work for you.

The SLN files are in the repo. Just download the source code and you have the complete solution and all the projects. Building it is another story though. I tried :(

PunkStarStudios commented 7 years ago

WHEW! I thought I was missing something.

The starter projects in the original repo don't work - they are based on the old parse.com server implementation and not a self hosted one with a server link pointing elsewhere.

vladrad commented 7 years ago

@PunkStarStudios Try looking at the bottom of #166 and see if you can build the dll's like that (select all the project builds that are not unity). Then import them to a new project and see if you can init the library.

plyoung commented 7 years ago

You will have to build it. The Server option is available in the source. From Unity sources for example this call can be done; which should be the same for non-Unity app.

ParseClient.Initialize(new ParseClient.Configuration {
  ApplicationId = applicationID,
  WindowsKey = dotnetKey,
  Server = string.IsNullOrEmpty(server) ? null : server
});
PunkStarStudios commented 7 years ago

Well then - I am at a loss....

I've tried those that to no avail. I simply can't get a .NET client to either authenticate a user or simply pull back data.

https://github.com/parse-community/parse-server/issues/3674 https://github.com/parse-community/Parse-SDK-dotNET/issues/259

Everything works fine via REST or MacOS/iOS... but nothing but invalid server responses when attaching via the .NET Parse framework.

That's why I was trying to get sample code. But your latest reply not withstanding, the repo should get updated sample projects to reflect the current environment for "newbies".

vladrad commented 7 years ago

@PunkStarStudios do you happen to have an error you are getting from parse? Have you tried sniffing the traffic to see what the generated curl looks like?

https://www.charlesproxy.com/

I highly recommend charles. Once you install the certificate you will be able to add your server to a list to sniff the traffic. You will be able to sniff and get the curl for the login call, then you can look at it and compare it to the one your are doing.

PunkStarStudios commented 7 years ago

Holy hell - THANK YOU @plyoung

That server assignment code did the trick. using "Server = "https://myserver.com/myapp/" wasn't working. But your Server = string.IsNullOrEmpty(server) ? null : server DOES! YAY!