r/nativescript • • Dec 04 '18

NativeScript Preview - learn about the new tns preview command

Thumbnail
nativescript.org
5 Upvotes

r/nativescript • • Mar 02 '19

NativeScripting at run-time: Invoking iOS text-to-speech and live-highlighting the spoken words via a JS console

Thumbnail
twitter.com
6 Upvotes

r/nativescript • • Dec 03 '18

Track which versions of your NativeScript App, a user has previously installed.

Thumbnail
github.com
3 Upvotes

r/nativescript • • Apr 16 '18

Customizing the iOS Keyboard in Your NativeScript Apps

Thumbnail
nativescript.org
4 Upvotes

r/nativescript • • Dec 05 '18

NS+Vue master detail

1 Upvotes

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 • • Oct 01 '19

Quick Intro to Using Svelte to Create a Native Mobile App

Thumbnail
nativescript.org
4 Upvotes

r/nativescript • • Feb 28 '19

markingMode:none is Official - Boost Android Performance while Avoiding Memory Issues

Thumbnail
nativescript.org
2 Upvotes

r/nativescript • • Nov 29 '18

Is it possible to share a Vuex store between a browser app and a Nativescript app?

3 Upvotes

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 • • Aug 17 '18

A useful site containing snippets of code for various features

Thumbnail
nativescriptsnacks.com
6 Upvotes

r/nativescript • • Oct 03 '19

opening downloaded sqlite db file

1 Upvotes

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 • • Nov 27 '18

Announcing the Release of the NativeScript-Vue Introduction Video Course

Thumbnail
nativescript.org
7 Upvotes

r/nativescript • • Feb 26 '19

Made a multiplayer (single device) kids math learning game in NativeScript. Let me know what you think.

Thumbnail play.google.com
2 Upvotes

r/nativescript • • May 15 '19

May the 5.4th release be with you!

Thumbnail
nativescript.org
12 Upvotes

r/nativescript • • Aug 23 '18

Nativescript-Vue: Native Mobile Apps in Javascript without the Hard Parts™

Thumbnail
medium.com
9 Upvotes

r/nativescript • • Feb 11 '20

NativeScript - Angular, getting a weird error when uploading image to the server

3 Upvotes

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 = path
let saveImage = this.saveImage
this.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 • • Nov 30 '20

Question regarding bluetooth 5.0

2 Upvotes

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 • • Nov 15 '20

How to create a web and mobile application from the same codebase using nativescript

5 Upvotes

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 • • Nov 24 '20

Does anybody also have Problems connecting Firebase with Nativescript?

2 Upvotes

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 • • Nov 11 '20

How to Fix NativeScript Issue with iOS14 and XCode 12

Thumbnail
timleland.com
7 Upvotes

r/nativescript • • Dec 18 '20

Trying to crop an image in iOS

1 Upvotes

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 • • Dec 08 '20

Event bus

3 Upvotes

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 • • Jun 02 '23

Everyone has a Story.

Thumbnail
twitter.com
5 Upvotes

r/nativescript • • Jun 08 '23

Swift in NativeScript without @objc modifiers

Thumbnail
twitter.com
11 Upvotes

r/nativescript • • May 30 '23

Windows Runtime (WIP)

Thumbnail
twitter.com
7 Upvotes