Mobile

How to get Lat, Long in React Native app

Author - Varun Chopra

Steps to access GPS in React Native app to capture lat/long

In your AndroidManifest.xml add following permissions:

<uses-permission android:name=”android.permission.ACCESS_FINE_LOCATION” />

it comes enabled by default on iOS but not Android.

There are three methods available for geolocation:

getCurrentPosition Read more…

How to access camera in Ionic app

Author - Varun Chopra
|
0 Comments
|

Steps to access camera in Ionic app
To access camera to capture image inside ionic application you can use camera plugin.

Installation:
$ ionic cordova plugin add cordova-plugin-camera
$ npm install @ionic-native/camera

Supported platforms are as follows:

1. Android
2. Browser
3. iOS
4 Read more…

How to access Flashlight in Ionic app

Author - Varun Chopra
|
0 Comments
|

Steps to access Flashlight in Ionic app

Flashlight plugin allows you to turn the flashlight on/off of your mobile in Ionic application.
Installation:

$ ionic cordova plugin add cordova-plugin-flashlight
$ npm install @ionic-native/flashlight

Platform:
Android
iOS
Windows Phone 8 Read more…