We have a meteor server and an iOS app created in Swift. We are using the Meteor-iOS framework and we need to log in a user via the server. Is it possible to call a method like Meteor.callMethodWithName(“customLoginMethod, parameters: [credentialtoken]”) from iOS ?
We found this method:
METAccount.init(userID: String, resumeToken: <#T##String#>, expiryDate: <#T##NSDate?#>)
Can we use this to login?
You will receive collections in this strange cursor that wraps a Dictionary/Array
Other than that it is awesome.
The most stable meteor framework in our experience is Meteor-iOS, it is made by Martijn Walraven who now works for the MDG.
I am hoping he will be able to help me out on this question…
It depends on what you want to do exactly, but you should be able to call Meteor.loginWithMethod, which will log you in automatically based on the method result. See this issue for some examples.
When I try that Method in swift I get error: Value of type ‘METDDPClient’ has no member 'loginWithMethod’
Did you mean to do this on the server or from iOS ?