Hello Friends, a month ago discovered fuse, so far I have been fascinated, now I’m developing an application, it isn’t very complex, but whats stops me so far is connection with Backend, I use Backendless I am newbie with Backend for this I need of your help with a basic example or any link that could serve me. Thank you.
Hi there!
While Parse isn’t really an option anymore the basics should be similar for a lot of other backends as well, so this video might be of help.
There are also users who’ve integrated with Syncano: https://github.com/bolav/fuse-example-using-syncano
And with Firebase:
https://www.fusetools.com/community/forums/show_and_tell/tags_app_using_firebase
https://www.fusetools.com/community/forums/permalink/badfd3f8-125d-4765-8f83-27fcd1e48c10
And finally there’s some examples with Github, Facebook and AmazonS3 here (at the bottom, under “Misc”): https://github.com/fusetools/fuse-samples
thank you very much for the links.
I keep trying with backendless but when trying to enter marks the following error.
Login failed. Buffer is not defined
why do is this error? on another platform, web works well but to develop fuse, send the error
my fuction es:
function loginUser() { try {
var user = Backendless.UserService.login("oscardanielrs.19@gmail.com", "12345");
if (user != null)
console.log("Login successful");
else
console.log("Login failed");
}
catch (e) {
console.log("Login failed. " + e.message);
}
}
Hi o.daniel.r.s.19@gmail.com, you could try my patched verson of Backendless, here is the link :
https://drive.google.com/open?id=0B0h65jc1gmTyRjVzaHhVeWtZTUE
Hello Ichan mb, thanks for the js. sorry for the nuisance. I have a new error, supposedly the code is well ,
Backendless.enablePromises();
console.log("ApiKeys.appId",ApiKeys.appId, "ApiKeys.jsKey", ApiKeys.jsKey, "ApiKeys.version",ApiKeys.version)
Backendless.initApp(String(ApiKeys.appId),String(ApiKeys.jsKey),String(ApiKeys.version));
console.log("Backendless:",JSON.stringify(Backendless));
var user;
function loginUser() {
try
{ user = Backendless.UserService.login("oscardanielrs.19@gmail.com","12345");
// user = Backendless.UserService.login("oscardanielrs.19@gmail.com","123456");
if (!user._result)
console.log("Login successful");
else
console.log("Login failed",user._result);
}
catch( err ) // see more on error handling
{
console.log( "error message - " + err.message );
console.log( "error code - " + err.statusCode );
}
}
I do not know if fuse or backendless need permissions, why do is this error?
Login failed Fuse.Scripting.Error: require(): module not found: url at Fuse.Scripting.ScriptModule.RequireContext.Require(String id) in C:\ProgramData\Uno\Packages\Fuse.Scripting\0.27.16\$.uno#1:line 356 at Fuse.Scripting.ScriptModule.RequireContext.Require(Object[] args) in C:\ProgramData\Uno\Packages\Fuse.Scripting\0.27.16\$.uno#1:line 339 at Fuse.Scripting.V8.Marshaller.CallbackWrapper.Call(UniqueValueVector args) in C:\ProgramData\Uno\Packages\Fuse.Scripting.V8\0.27.16\$.uno#1:line 173
Thats wierd, where do you test it ? on local preview or on the device ? btw I have finished making sample code demonstrating Fuse with Backendless, if you have time you can test it. the code is little bit a mess, but i think you will get the idea. here’s is the link :
https://drive.google.com/open?id=0B0h65jc1gmTyQUM0eEkxMkk1bm8
On the sample project, I have patched Backendless.js forcing and pretending the environment is browser, so everytime the library trying request to Backendless server, it will be using XMLHTTPRequest function instead of NodeJS Httpx function because the former is the only supported in Fuse. And I have to replace browser localStorage function with FuseJS Storage for caching mechanism.
Don’t forget to insert your APPLICATION-ID and your SECRET-JS-KEY in main.js before your run it.
what is bother me that, every Backendless function call (UserService, Persistence, etc) you make, you must call it using asynchronous method, and not the synchronous method. and I think that is why your login code above is not working.
The bug it self, i don’t know if it is bug on the Fuse XMLHTTPRequest implementation or on my patched Backendless.js. I have to investigate it further.
So… if you encounter any problem with the sample code, you can ask it here. In next couple days I hope, I will upload the sample code to Github (As soon as i discovered the bug i mention earlier).
thanks
Thank you very much, for example It has been a lot of help,
Just a comment The Js is old There will be some problem in the future? or
You will have more recent?
I’ve updated my first post above, so the link now point to the latest release of Backendless.js file ( v3.1.9 ). it should work with sample project. just replace backendless.js in the sample project you have downloaded from my second post with the new one i provided on my first post above.
thanks