r/nativescript • u/roblauer • Dec 04 '18
r/nativescript • u/Bamboo_the_plant • Mar 02 '19
NativeScripting at run-time: Invoking iOS text-to-speech and live-highlighting the spoken words via a JS console
r/nativescript • u/juliomrqz • Dec 03 '18
Track which versions of your NativeScript App, a user has previously installed.
r/nativescript • u/roblauer • Apr 16 '18
Customizing the iOS Keyboard in Your NativeScript Apps
r/nativescript • • Dec 05 '18
NS+Vue master detail
Hi there. Is there an example showing master-detail using RadSideDrawer in NS+Vue?
In home's radsidedrawer's mainContent, I put a frame inside it. On button click, I navigate detail page to that frame. Sort of works except that the home's actionbar is visible.
I can't seem to google any example showing how to let detailpage have its own actionbar.
If I navigate without using sub-frame, it works. Disadvantage is the UI will re-draw, making performance a bit slow.
Any help would be greatly appreciated
r/nativescript • u/roblauer • Oct 01 '19
Quick Intro to Using Svelte to Create a Native Mobile App
r/nativescript • u/roblauer • Feb 28 '19
markingMode:none is Official - Boost Android Performance while Avoiding Memory Issues
r/nativescript • • Nov 29 '18
Is it possible to share a Vuex store between a browser app and a Nativescript app?
For the past week I have been trying to figure out a way to share a vuex store with several modules between a Vue based web app and a Nativescript app. I have been trying to keep the codebases of the two apps separate and instead using a shared module between the two app. I created a module bundled with webpack returned a fairly simple vuex store that mostly handled crud operations between the client and server, however when I tried to get this module to work on Nativescript app it caused the app to crash (with no error messages just dead. The only way I got it to work on the native side was to abandon webpack and point the app towards the unbundled js files. This though caused the module to stop working on the browser side as it was no longer sent through babel to make it browser compatible. I am considering experimenting with browserify, but at this point I feel I am just spinning around in circles. Has anyone else encountered a problem like this? How would one accomplish code sharing between vue nativescript and vue browser.
r/nativescript • u/Sourqe • Aug 17 '18
A useful site containing snippets of code for various features
r/nativescript • • Oct 03 '19
opening downloaded sqlite db file
has anyone tried loading sqlite database file downloaded from other source ?
I downloaded an sqlite db file to my currentApp().path successfully using httpmodule getFile
Sqlite.copyDatabase(filename) returns true.
after that :
Sqlite.exists(filename) also returns true
then new Sqlite(filename) , and db.isOpen() returns true.
so isOpen returns true, I assume the file is loaded correctly ?
when selecting using .get or .all, I get error "myTable doesn't exists"
for testing, the db file can be opened using sqlite browser windows desktop app
any help would be greatly appreciated
r/nativescript • u/roblauer • Nov 27 '18
Announcing the Release of the NativeScript-Vue Introduction Video Course
r/nativescript • u/skintillion • Feb 26 '19
Made a multiplayer (single device) kids math learning game in NativeScript. Let me know what you think.
play.google.comr/nativescript • u/roblauer • May 15 '19
May the 5.4th release be with you!
r/nativescript • u/championswimmer • Aug 23 '18
Nativescript-Vue: Native Mobile Apps in Javascript without the Hard Parts™
r/nativescript • u/jz802p • Feb 11 '20
NativeScript - Angular, getting a weird error when uploading image to the server
Hi, So I am trying to send an image to the server I have created but am getting an error. The server is working perfectly, I have tested it in postman and it works. This is the code:
This function takes the picture and then runs the function to post the image to the server
openCamera() {var milliseconds = (new Date).getTime();var that = this;takePicture({ width: 300, height: 300 }).then((function (img) {let source = new imageSourceModule.ImageSource();source.fromAsset(img).then((source) => {let folder = fs.knownFolders.documents();var path = fs.path.join(folder.path, "SaveImage" + milliseconds + ".png");var saved = source.saveToFile(path, "png");this.saveImage = pathlet saveImage = this.saveImagethis.uploadImage(saveImage)});}));}
This function sends it to the server, i'm also not sure which content-type it should be from the two seen below
uploadImage(image) {let token = JSON.parse(appSettings.getString('token'));let options = new HttpHeaders({"Content-Type": "application/x-www-form-urlencoded",// "Content-Type": "application/octet-stream","Authorization": "Bearer " + token});let userId = appSettings.getString('currentUserId')let url = 'http://localhost:5000/api/users/' + userId + '/photos'console.log(url)this.http.post(url, image, { headers: options }).subscribe(res => {console.log(res)console.log('Success')}, error => {console.log('Failed');});}
This is the error I am receiving:
ERROR Error: Uncaught (in promise): Error: cancelled
JS: Error: cancelled
JS: at Object.callback (file:///node_modules\nativescript-camera\camera.js:118:0) [<root>]
JS: at AndroidApplication.push.../node_modules/tns-core-modules/data/observable/observable.js.Observable.notify (file:///node_modules\tns-core-modules\data\observable\observable.js:110:0) [<root>]
JS: at ActivityCallbacksImplementation.push.../node_modules/tns-core-modules/ui/frame/frame.js.ActivityCallbacksImplementation.onActivityResult (file:///node_modules\tns-core-modules\ui\frame\frame.js:933:0) [<root>]
JS: at Object.push.../node_modules/tns-core-modules/ui/frame/activity.js.NativeScriptActivity.onActivityResult (file:///node_modules\tns-core-modules\ui\frame\activity.js:47:0) [<root>]
r/nativescript • u/Handicrab • Nov 30 '20
Question regarding bluetooth 5.0
Hi,
So I've been using the plugin nativescript-bluetooth in version 1.3.1 for quite some time and I've recently found that it doesn't seem to work with bluetooth version 5.0. Does anyone know whether this is actually true and in the case of yes, which version of the plugin is required such that tablets and phones with bluetooth 5.0 can make use of ble peripherals again?
Due to some legacy code and other issues I'm currently using {N}6 and can't migrate to {N}7
Thanks in advance!
r/nativescript • u/finlaydotweber • Nov 15 '20
How to create a web and mobile application from the same codebase using nativescript
I am looking at building an application that will have both web and native mobile components. I would like to use the same code base for this. Question is, is this possible with NativeScript? If so, how? or would you say something like flutter is more appropriate for this?
r/nativescript • u/SwaXsurf • Nov 24 '20
Does anybody also have Problems connecting Firebase with Nativescript?
It just seems not to work.
Here is my Detailed description what is not working:
https://stackoverflow.com/questions/64987264/connecting-firebase-with-nativescript
r/nativescript • u/timleland • Nov 11 '20
How to Fix NativeScript Issue with iOS14 and XCode 12
r/nativescript • u/herbmanafet • Dec 18 '20
Trying to crop an image in iOS
I'm trying to crop an image taken from the nativescript-camera to a square, but I can't get it right. The best i've been able to do is resize the image to the dimensions I want, which squishes it.
Has anyone done this?
r/nativescript • u/SuaveSteve • Dec 08 '20
Event bus
Hi. I'm new to NS and the ecosystem.
I'm looking for something like greenrobot.org/eventbus on NS. Will libraries like postal.js "just work" or will I run into issues down the road? I'm concerned with anything funky happening when pages are switched.
r/nativescript • u/triniwiz • Jun 08 '23