How to build a port scanner with Javascript using React Native

Hello! Why bother writing a port scanner in Javascript you might ask? Well javascript is many things, however the majority of its use is based on its original design to be synchronously executed in-browser using a single thread. Because of this, it becomes a challenge to write code outside of this original use case, though not impossible. The challenge of interacting with a local network using a language like Javascript then becomes an interesting endeavour (at least to me). If you take this type of a challenge and integrate it into a javascript based framework like react native, the potential increases exponentially. If one can successfully implement this type of network analysis on react native, then the use-case expands to platforms like iOS and Android. Same goes for AngularJS or Apache Cordova. There are many functions, libraries and modules that will help write asynchronous code. One of which is async. […]

Use PHP to send APNS iOS and GCM Android push notifications

Hello! Through our own internal projects it has become a requirement in the past to implement a system that integrates with a mobile application. Specifically we have implemented systems that send out push notifications to iOS and Android based devices. The conditions through which we would be sending the notifications are somewhat irrelevant, though it is important to indicate in this post that we are parsing a database of device IDs and tokens in order to build an array of devices to submit to the function that actually handles the push notifications. This means that the workflow for this type of integration would involve someone downloading an application on their iOS or Android device that requests their permission to send push notifications. Once permissions are given, the application will send the device key to our systems which will then record it in a database for further use. For APNS (Apple […]

Pull JSON data from your website to your mobile application with Ajax and PHP

Hello! Making mobile applications is much easier than it used to be. As with previous posts, we have been experimenting with Apache Cordova Framework for easily building mobile applications, leveraging web frameworks like AngularJS. Many mobile applications communicate with a centralized “server” or website that retains all the data that may be useful for the mobile app. For example you might want to have a mobile application that retains a centralized “friends list” that the end-user can modify. You can store this friends list in a database, and access that data by making an Ajax request to pull the data in json format. For the website that retains and manages this data, we have decided (for this example) to use the PHP Slim Framework. We mainly chose this because it makes rolling out a web based application API with a database backend very simple (in under 30-50 lines of code). […]

Create an iphone or android app with geo-location targeting

Hello! Creating mobile applications can be a grueling process. There are many factors that can complicate the process and it is very specialized. One thing we have been looking at recently is utilizing an AngularJS, Node.js based framework to utilize HTML5, javascript and jQuery based technology to implement mobile applications. Specifically the Apache Cordova framework has proved to be very promising. The Cordova framework is ideal for a mobile application that is not graphics intensive and one that may provide a more realistic learning curve for a developer that has little to no previous mobile application development experience. One of the more interesting things we have been looking at is, while using the diverse Cordova plugin library, implementing Geo-location and Geo-targeting features that are built into all IOS and Android phones. Leveraging this with Objective-C as you would in a classic IOS application would prove to be a bit more […]