Quite frequently you want to control what happens when your user hits the back button, well this is actually pretty simple to do on Android. I've seen this question pop up several times; so it makes good blog post fodder. You can either do this totally globally; or on a per page basis. Globally, you… Continue reading NativeScript - Capturing the Back Button on Android
Category: NativeScript
NativeScript: Tip for iOS Plugin authors
One of my friends (Nathan) was working a plugin and for some reason it wasn't bringing in the metadata on iOS. In fact it acted like the Cocoapod did not exist. If you attempted to use my suggestions for iOS Metadata Generation then you would see that no meta was generated for that plugin. Well… Continue reading NativeScript: Tip for iOS Plugin authors
NativeScript/JavaScript Tip: Debugging
Once thing I was made aware of today was that not everyone knows the magic "debugger;" command. I suppose this makes sense; I rarely see it mentioned, but it is a very useful debugging command in the JavaScript world. The "debugger;" command is used to cause the application to stop and enter the debugger at… Continue reading NativeScript/JavaScript Tip: Debugging
NativeScript: Announcing {N} plugin tracking site
If you are like me occasionally you have to find a plugin and you go and check the npmjs.com site and do a search for NativeScript and then peruse a ton of entries; some relevant and some not so much. Well, last night as I was finally working on updating my manually done plugin list… Continue reading NativeScript: Announcing {N} plugin tracking site
NativeScript: Upgrading to v1.60
Since I have been posting these since the early versions of NativeScript; I figured I would continue. It has been several months since the last major upgrade and this version has all sorts of bug fixes and new goodies. The changelog is available at https://github.com/NativeScript/NativeScript/releases/tag/v1.6.0 Some of the new features that I'm looking forward to… Continue reading NativeScript: Upgrading to v1.60
NativeScript: iOS Tip - See the Metadata & typings .d.ts files generated for your Cocoapod Plugin
One of my debugging tools when something doesn't seem to work as expected on iOS is to tell NativeScript to output the metadata while it is building the application. The easiest way to do it is: TNS_DEBUG_METADATA_PATH="$(pwd)/metadata" tns build ios This will create a metadata-xxxx folder (where xxx is the platform) in the root of… Continue reading NativeScript: iOS Tip - See the Metadata & typings .d.ts files generated for your Cocoapod Plugin
NativeScript: Tip - access a related view of a GridView/ListView/Repeater
I was asked earlier this week about how to access a related label when you click on a button or other object in the list of a ListView/GridView/Repeater. Since it took me a little while to figure this out for my own project a couple weeks ago and since someone else ran into this issue… Continue reading NativeScript: Tip - access a related view of a GridView/ListView/Repeater
NativeScript: iOS xCode 7.2+ Code signing fix!
For the last couple months since xCode 7.2 was released, those poor iOS developers who upgraded to 7.2 have felt much pain if they installed any Cocoapods. If you didn't use any PODs you were fine. But the minute you used a plugin that has a POD; you were in for a world of hurt. … Continue reading NativeScript: iOS xCode 7.2+ Code signing fix!
NativeScript: Keeping your AndroidManifest.xml easily editable and under version control.
So here I was again minding my own business on the forums again, and Ben posted he had been attempting to use this new feature of v1.5.x of NativeScript and it was failing. I responded it didn't work like that. Thankfully he was persistent and ignored my wrong response, and linked to the github issue… Continue reading NativeScript: Keeping your AndroidManifest.xml easily editable and under version control.
Getting Started with NativeScript - On Sale Now!
WooHoo! It has been such a long road to get this book published. I wrote a bit about it here. It is finally officially available on the Packt site for sale today! It should be available on the Amazon store by Monday the 1st of February. I will have a list of additional sites… Continue reading Getting Started with NativeScript - On Sale Now!