Comments (9)
For queries, you'll want to subscribe to the publications you're interested in and then query the local database (either directly or through Core Data).
For updates (I think that is what you're asking), you can either use boilerplate CRUD or define your own methods. If you define your own methods, you may want to add client-side method stubs to have them participate in latency compensation.
from meteor-ios.
Are there examples of using boilerplate CRUD? I'm still pretty new with swift, and iOS development.
And thanks for the great work.
from meteor-ios.
If you're using Core Data, that would be what is used under the hood when you save a managed object context. Without it, you'd use the insert/update/remove methods on collection (see https://github.com/martijnwalraven/meteor-ios/wiki/Usage-without-Core-Data).
from meteor-ios.
Can ongoworks:security
be used in place of insecure package?
from meteor-ios.
Just to be clear I'm using code from the todos example you provided, so yes I'm using Core Data and working with managed object context. When insecure package is removed on meteor, and i try to delete object from iOS app, object gets removed from Core Data and then downloaded from the server, since server side delete failed.
from meteor-ios.
Same issue here.
Has anyone succeeded in creating/updating stuff without insecure
?
from meteor-ios.
Same issue here too, with Core Data.
@callmeahab @chrisscholly Did anyone get client-side writes working from this iOS app (without the insecure package)?
from meteor-ios.
@holgate
Not sure i remember accurately, that was 2 years ago, but don't think i got it to work without insecure package. I do remember that for that project i switched to rails backend and used websockets for syncing, something didn't work out with meteor.
from meteor-ios.
@callmeahab thanks for weighing in after 2yrs. I'm trying to follow @martijnwalraven suggestions, but think I'll need to see an example of how to use defineStubForMethodWithName:usingBlock:
in order to solve it
from meteor-ios.
Related Issues (20)
- When using local IP of my macbook where meteor is running not able to connect to iPhone (ws://local IP:4000/websocket) HOT 1
- managedObjectContext nil - NSFetchedResultsController
- How to refactor METAccount so we can pass in our own service and access group to keychain?
- [IOS][1.3+] WKWebView terminated [White Screen of Death] - kills Geofence events HOT 5
- Not able to get the document ID from the collection. HOT 3
- hello @import Meteor;
- You this is written in Swift, please HOT 1
- preform complex fetches via METFetchRequest to METDatabase#executeFetchRequest:
- Mobile-config.js - App.info: Team HOT 1
- Application crash after assertionFailure in sendMessage Meteor/METDDPConnection.m:74 HOT 1
- How to listen subscription with METDDPClient HOT 1
- retry opening connection
- How to to get notified for specific collection changes?
- How to correctly use updateDocumentWithID? HOT 2
- Support meteor 1.5?
- How to log Out in Swift?
- Custom Mapping to Coredata
- Is this still being maintained? HOT 1
- How to listen to the subscriptions?
- Library not loaded: @rpath/InflectorKit.framework/InflectorKit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteor-ios.