Bmob is a back-end provider that provides users
Data Services
Support a wide range of data types, flexible and convenient additions and deletions, visual data manipulation, security role and ACL management, multi-table association processing, Data batch processing, local data cache, developers do not have to focus on the server backend, can achieve multi-platform synchronization development.
- file service
- file service allows uploading of any file type, Support for sub-fragment point continuation, in addition, for the mobile side of the picture business needs, but also provides a high compression ratio of the thumbnail services.
- Push Service
- Offers Android and iOS two versions of the push service, using WebSocket to maintain long connection, stability is better, at present, 64GB stand-alone can support 6 million of the user long connection.
- Extended Service
-
Extend your app's website, scheduled tasks, location, cloud code, and more to ensure your personalized business logic works better in the cloud.
Now let's show you how to use the iOS bound version of the Bmob SDK.
1. Configure the Environment firstwrite the configuration in Robovm.xml:<framework>CoreLocation</framework> <framework>Security</framework> < framework>coregraphics</framework> <framework>MobileCoreServices</framework> < framework>cfnetwork</framework> <framework>CoreTelephony</framework> < framework>systemconfiguration</framework> <framework>AVFoundation</framework> <framework>MediaPlayer</framework> <framework>BmobSDK</framework>
<libs> <lib>icucore</lib> <lib>sqlite3</lib> <lib>z.1.2.5 </lib> </libs>
Additions and deletions to check:
private void Add () {///Bmobbmob.registerwithappkey ("34b7704a3b372576a732b7675abce9e8");//Gdx.app.log ("xxx", " Showinterad "); System.out.println ("Showinterad"), final bmobobject gamescore = new Bmobobject ("Gamescore"); Gamescore.setobject (new NSString ("Xiaoming"), "PlayerName"), Gamescore.setobject (nsnumber.valueof (+), "Playerscore"), Gamescore.setobject ( Nsnumber.valueof (True), "Cheatmode"); Gamescore.saveinbackgroundwithresultblock (new Bmobbooleanresultblock () {@ Overridepublic void Invoke (Boolean issuccessful, nserror error) {if (issuccessful) {System.out.println ("success"); System.out.println (Gamescore.getobjectid ()); System.out.println (Bmob.getservertimestamp ()); query ();} else {System.out.println (Error.geterrorcode () + Error.getdomain ());}}); System.out.println ("Showinterad----End");} private void Query () {bmobquery mbmobquery = new Bmobquery ("Gamescore"); Mbmobquery.getobjectinbackgroundwithid (" Bad60c9b08 ", new Bmobobjectresultblock () {@Overridepublic void Invoke (Bmobobject object, nserror error{String name = Object.objectforkey ("PlayerName"). ToString (); System.out.println ("name =" + name); Change (object);}}); private void Change (Final Bmobobject object) {Bmobobject obj = Bmobobject.objectwithoutdatatwithclassname ( Object.getclassname (), Object.getobjectid ()); Obj.setobject (new NSString ("changed xiaoming"), "playername"); o Bj.updateinbackgroundwithresultblock (New Bmobbooleanresultblock () {@Overridepublic void Invoke (Boolean issuccessful , nserror error) {//TODO auto-generated method StubSystem.out.println ("modified successfully ....");d elete (object);});} private void Delete (Bmobobject object) {Object.deleteinbackgroundwithblock (new Bmobbooleanresultblock () {@ Overridepublic void Invoke (Boolean issuccessful, nserror error) {System.out.println ("Delete succeeded ...");});
Code Address: Https://github.com/tianqiujie/robovm-ios-bindings
Data Services
LIBGDX ROBOVM bmob IOS SDK Bindings