Get OpenGl running in a Nativescript Angular application - nativescript

I'm currently trying to get an Angular-Nativescript-OpenGl-App runnning. See: https://github.com/Franziskus1988/nativescript-opengl.
Unfortunately it only works when I use native Java for the OpenGL rendering part (GLSurfaceView.Renderer).
Can somebody help me to get this running in "plain" NativeScript.

As you might already know there is a open feature request, register your vote on the issue and hopefully they will pick it up soon when more people show interest towards the feature.

Related

Xamarin Apple Watch Extension - Consuming simple JSON Web Service

I've built a simple Xamarin.forms app which connects to a web service and gets one piece of data and displays it.
I wanted to do the same on an apple watch (targetting a series 2 apple watch) but I just don't understand how it works.
I've added the watch project and the watch extension, created the interface... Got a "refresh" button which changes the value of the label to a hard coded value but I want to get the data from a simple web service on app startup on wake and when button is activated (similar to my xamarin.forms iphone app)
I've tried using the classes that I use on the forms app to get the data but I can't reference them. I've tried using httpclient and that doesn't work.
After googling it appears I am suppose to use a HandleWatchKitExtensionRequest delegate in the phone app to get the data in a dictionary and then display the data. I haven't been able to find any really simple examples of this, but I'm confused because since apple watch version 3 the watch has been autonomous with cell access and therefore it doesn't have the host app necessarily.
So what I'm asking, is can the watch actually consume a web service alone using a xamarin phone app and if so, is there any simple examples because I can't find any (that aren't from 2015).
Sorry if this is vague, or I sound like a newbie (I definitely am a newbie when it comes to xamarin but any pointers or help would be appreciated)
According to https://developer.apple.com/documentation/foundation/nsurlsession?language=objc NSURLSession is available since watchOS 2.0. It is used to download the content from the web and is extensively documented just don't search for watchOS specifically as it is the same on all Apple OS.
But as HttpClient uses NSURLSession it is also available, so, maybe you need to add the reference to System.Net.Http.
When I was last developing for the watch I noticed that HttpClient would never work. I had to use NSUrlSession, so this is what helped me.
Hope this Helps

Unity WebGL build throws errors

I am working on a multiplayer game for WebGL platform and i am using (http://lockstep.io/ - SocketIo & node.js server ) for handling the game.
I am facing these issues as shown in the attached image.
I have no idea about what these errors state?
I don't think that the issue is from my coding side as my multiplayer game runs perfectly in standalone builds with more than 4 instances of the standalone build.
But it does not even open in my WebGL build.
Does WebGL does not support threading??
Please guide. What are these errors all about? Can these issues be solved?? or Do i have to change my whole project implementation?
Unity WebGl does not support Multithreading. Although Unity is working hard to bring Thread support in WebGL.
Do not compare standalone with WebGL because many features are not supported in WebGL. Looking at the error, it says something about Thread and that could definitely be the problem. About 90% chances it is the problem.
You cannot solve this problem right now unless you remove the use of SocketIo.
I don't know how SocketIo is implemented so I can't tell you if Thread is the only problem it has but if it uses other API's not supported in WebGL, then you will still have problems.
The only known network API that is made and optimized to work with WebGL is the new Unity web API called UnityWebRequest. You have to modify your code to use that. The link I provided provides many examples needed to get started with it.
if you use anything like webrequestm System.web or socket, WebGL will crash. UnityWebRequest is the only solution. It is faster than WWW and you need Unity 5.2 and above to use it.

Detect and get dialled number in Android using Appcelerator

I am looking for a way to detect if the user is dialling a number that is 'like' a value in my database. I have got a REST api working to retrieve numbers for my application, just need a way to intercept and compare for Android in Appcelerator.
I have looked around but can't find a way to do this within Appcelerator, not sure where to start. I looked on a forum (https://archive.appcelerator.com/question/117852/detecting-phone-call-on-android) but no results.
Would this be an Android service and check in the background if a user is dialling? (http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.Service) or is there a better way? Maybe I could use the Android intent functionality (http://docs.appcelerator.com/platform/latest/#!/guide/Android_Intent_Filters-section-43287610_AndroidIntentFilters-RespondtotheCallingActivity) or better still maybe there is a module for this. Had a look on their site, could only see one but it's a paid module(https://marketplace.appcelerator.com/apps/5672?restoreSearch=true#!overview). Not even sure if it works though.
Any help or point in the right direction is appreciated.

Would Parse javascript SDK work with NativeScript?

I'm planning to build an app using NativeScript for the front end and Parse for the backend. Has anyone tried and gone down this path? I would love to hear your experience before I invested too much time and found out they don't work nicely together.
From what I've learned the last few days, there's no DOM for NativeScript. Does Parse Javascript SDK work similarly with the assumption that there's no DOM?
I've had a scan around online and I can't find much information on whether their compatible. I guess the only way to find out is to give it a go. I'd be interested in the result though.

JavaFX replace AJAX?

Can JavaFX replace what AJAX do? i went through a couple of articles like this http://www.ajaxlines.com/ajax/stuff/article/ajax_vs_javafx.php. But I am still confused. anyone help??
I don't think this will happen, certainly not at the moment. JavaFX depends on java, there's very little support cross-platform (windows mobile does work but it's very limited). There was talk about set top boxes coming out to run javafx but it doesn't seem to have taken off :\ It's a real shame, in many ways I really like JavaFX. It's a shame they won't open the source. Also for deployment there is a dependancy on a sun server to get some jars (not possible to host on your own server), so when it goes down (and it is a when) then everyones apps stop working!
Javascript keeps my vote unfortunately.
Technically, yes JavaFX can do everything that AJAX can do and more - on a supported platform. Unfortunately JavaFX isn't supported on most smartphones so you won't get the same reach as AJAX. You also need a browser plugin which you don't need for AJAX.
But if these limitations aren't a problem, then I think you will have less misery using JavaFX instead of AJAX.

Resources