I want to send coap messages using an application developed on nativescript framework. Are there any available modules in nativescript or how to use node-coap for the same?
I don't think there is any plugin as of today that supports CoAP. You might want to write one.
A quick search shows there are native clients available on respective platforms, iCoAP / spitfirefox for which you could write a plugin or directly use the apis in your project.
Read more about accessing native or third party libraries in iOS / Android from the docs.
Related
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
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
I am looking to create a microservice in the backend of my android and iOS app that sends push notification requests to firebase (using maven to organize project). I would like to use the Java admin SDK for this as I am looking to make this call in the backend in this app server rather than right from the android or iOS side. I have been exploring this API and the Java version is missing two APIs that the Node.JS one currently has. I read up on what the two APIs do but I was wondering if anyone who has been working with the admin SDK know how the two Java APIs missing will handicap me in terms of features?
As of today, you won't find the following 2 APIs in the Java Admin SDK:
Firebase Cloud Messaging (FCM)
User management
User management API for Java is currently being developed. FCM will be added in the near future too.
Android chromecast api are in java..so in the theory they could be used in arbitrary java programs...am I correct?
My intention would be to build a chromecast streaming server in java, so to stream local files.
If you intend to use Cast APIs, you will not be able to do that; most of the functionality is in the Google Play services.
I'm looking at having thousands of simultaneous connections from mobile phones to the server whereby anytime a user interacts with his cell phone, the data is sent and logged by the server. Also, anytime the server has new information for that user, the server can push that information without a browser refresh. I am wondering what is more stable and how you would build this?
A good real-time framework or infrastructure will have numerous APIs that should let you connect any device, no matter the technology, to the real-time server e.g. an iOS client library for iPhone and iPad, a JavaScript client library for numerous platforms including normal and mobile web, an Android compatible Java library and so on.
An interesting idea might be to choose which ever framework or real-time service suits your needs best and then using something like PhoneGap. But, as #rt2088 says, it depends if you need the notification app to be running as a service on the phone or as a standalone application.
The choice will also depend on whether you want to install, host, maintain and manage the scaling of your own real-time services or not. If not, there are a number of services out there who you could use so you can concentrate on building your application. If you do want to manage your own infrastructure then the Comet Maturity guide could be a good start. It's a little out of date but is still probably the best reference available.
the ability to push new content the
user based on his GPS location which
is "pinged" to our server. Based on
that, we deliver local content. What
frameworks are you talking about?
There are a number of real-time frameworks available at the moment. Some are hosted services and others require installation on your own hardware. The majority of them will come with a bunch of libraries in different technologies that make it easier to get up and running with them e.g. a JavaScript library that wraps the WebSocket object and also manages fallback for web browsers that don't support WebSockets.
I've just created a Real-Time Technologies Guide in which I've listed all the real-time technologies that I could think of and provided a bunch of tags associated with each.
wouldn't a javascript client library
cover all platforms if it is a web
appilcation?
If the application is a web application then yes, a JavaScript library would be all you need for the client application. The server side libraries that you require would depend on the real-time technology you choose.
Best solution to achieve this is to use the WebSocket communication. It is bidirectional asynchronous communication. Currently every browser supports this new standard and plenty of code snippets available. You just have to google it. There are many server and client side frameworks. choose the one best suits to your requirement.
The details of the WebSocket specification is available at -
Websocket specification
Do you need notification when user uses mobile browser of handset or the mobile handset itself (performing non-browser tasks)? Based on that, the framework to record user activity can be selected.