Fireloop.io chat app with nativescript - socket.io

I loved with loopback. But I am new with fireloop. fireloop working fine with angular 4 webapp client but when I try to use fireloop with nativeapp client (nativescript) its SDK only work for REST API. its Real-time feature not working.
debug logs only show 'Creating a new connection with: '
for example:
Creating a new connection with: http://192.123.1.13:3000
only this just logging in console.
I need some guide to settings up fireloop real-time feature with nativeapp.
sorry for my language.

I think it has to do with the websocket api. I presume for the real time you might actually be using that. Its is related to a question I asked earlier regarding angularfire2 and nativescript.
Here is one response: angular-fire2 is expected to run in a browser/server. Mobile devices have different specifications, more limitations, they work differently. Mobile SDKs are also optimized and made to work with the device's operating system and application lifecycle events. The same does not apply to node.js backends.
angular fire2 and nativescript

Related

How to implement Google Analytics for an electron based windows app using universal-analytics?

I want to implement google analytics on my windows app which is primarily built using electron based front-end and Java Spring-boot based back-end. I was not able to find suitable solutions for the same online.
You need to use Measurement Protocol, a standard set of rules for collecting and sending hits from any internet-connected device to Analytics: https://support.google.com/analytics/answer/6086079?hl=en

update client code in electron

So I have multiple clients using an app built in electron. The entire application is actually a number of electron windows that talk to each other. When I have an update for the client side code (html/js/css) I have to have them shutdown, and run a utility that downloads from our internal server to update their app. I would like to know if there is a way I can either push new code to the clients (maybe through a socket) to overwrite the old code, or even maybe poll our 'code server' for updates, and then have it automatically update/overwrite existing code.
Is this possible? Is there functionality built in to electron that allows this?
And, if possible, how can it be accomplished? i.e. is there a library I can look at that will help me?? (i found a filesaver.js library, but its not exactly what I need). Thanks in advance.
You can have your Electron app load all code from a server every startup and cache this locally. You can do this by simply hosting your electron code on a web server and pointing Electron at the URL. You could make the app work offline by using a Service Worker.
This isn't a great idea though as code loaded from the internet will have access to all the node APIs. You will have essentially made a DIY botnet and securing it from abuse can be tricky.
You should read Security, Native Capabilities, and Your Responsibility in the Electron docs and be sure you understand the implications.
You can use the built-in autoUpdater of Electron: https://electronjs.org/docs/api/auto-updater
You need a server the autoUpdater can talk to, to download the updates from. The updates are installed after download.
You can host a server by yourself or use a service like https://www.update.rocks/
What you need is electron updater and you can use electron-builder for that.

looking for Parse alternative server

I'm a hobby developer that use Parse.com as my database and website host, as Facebook is going to shutdown Parse.com, I'm now looking for alternative Parse server.
I use Parse's Cloud Code Hosting to build Dynamic Web App, and Parse itself to store data collected from the website I've build, with custom Cloud Code to help getting and managing data. I've build a Windows Phone app for myself to manage the data I've collected too.
Is there any alternative server that has my requirement?
Dynamic Website
Database host
Custom Cloud Code (with BeforeSave and AfterSave trigger)
with Windows Phone SDK (or REST API if doesn't have)
Very thank you for helping me!
Try out Hasura.
Hasura (http://www.hasura.io): Hasura is a neat PaaS + BaaS solution. It is now competing with Firebase, Kinvey, Heroku et al. There is a full comparison page here: Compare | Hasura (https://compare.beta.hasura.io) . The difference majorly lies in infra ownership as well as no tech lock-in due to open-source components(like docker, kubernetes,postgres) building the major chunk of the platform. Check it out. There is also an option to explore (https://explore.beta.hasura.io/) Hasura by building your own blog web app and a todo app in under 15 mins.
Hasura should fit in perfectly for your needs.
DISCLAIMER : Hasura Engineer here.
I'm using Simbla website application development. It doesn't support all of your requirments but it has great UI builder with a backend parse database.
You can try using the parse open source server it has cloud code and you can use a custom database with it.

layer vs quickblox baas comparison

layer vs quickblox , which is better(easier to implement,performance features)
for messages,voip, and video chat,
and do I need to add parse.com with those messaging solutions for content storage.
Some of the differentiating points are:
Quickblox supports video and audio calling, layer doesn't.
Layer provides SDK for iOS, android and Javascript & unity sdk are in queue. Quickblox provides sdk for iOS, android and js.
All the above mentioned are only for client. If you want to control something from your server then you have to use Rest APIs.
Layer provides Rest and Websocket API but Quickblox only provides rest API.
Quickblox states that their js sdk can be used on node.js server. But I was getting This browser not supported error in connecting to chat from node.js server. The same error is also specified here. This means that there is not way to get real time notification on new message/user on your server with Quickblox.
Quickblox free tier customer support sucks (for eg. see here (no response on any ticket), here and here). I found Layer's support very good.
Layer's documentation is too good. Quickblox's is confusing. Also quickblox have no doc describing there basic concepts.
Layer also provides support for UIKs.
Quickblox provides in house user management, layer does not. But you can use Parse to do that as defined in layer docs.
Layer has platform API to bulk and system level actions like sending announcements and they also provide engagement analytics on those.
I also find this small layer's feature very useful.
There are many more differences. I just started using chat Baas last week. Will update the answer with time.

Does Cloud Foundry support web sockets?

I have deployed the play framework 2.0's sample websock-chat app onto cloud foundry, but the part after you join the chatroom doesn't display anything. I wondered if this was a websocket support issue, because the app works fine locally.
Yes, CloudFloundry supports Websockets, thanks to its gorouter component.
Support is also available on the PWS instance, on wss: port 4443, see official documentation.
Answering my own question, it appears according to https://cloudfoundry.atlassian.net/browse/CF-45, that the answer is no.
Now with latest updates in CFv2 it has a support for websockets (see this line in the code of gorouter, which is responsible for redirecting requests to your apps). I've written a proof-of-concept app in Node.js (for complete example see my answer here) and it is working fine for my local CF deployment, so I expect it would work for other frameworks and languages also.
However it is not yet working on https://console.run.pivotal.io/, as I suppose because they are not updating deployment of CF with each commit. Also there are some issues with IE 10 and Firefox (which might be CF issues), but in Chrome it works as expected.
if its websockets , then I'll suggest you must go for Jelastic , its easy and reliable.
http://jelastic.com/docs/websockets

Resources