Skip to content

Tracking Plugin for Xamarin. It retrieves information about user's location without GPS activation: IP address, country name, city name, GPS coordinates (latitude and longitude), country calling code, country currency, country flag image, etc.

License

Notifications You must be signed in to change notification settings

egbakou/App.User.LocationInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IconTracking Plugin for Xamarin

This Plugin retrieves information about user's location without GPS activation: IP Address, country name, city name, GPS coordinates (latitude and longitude), country calling code, country currency, country flag image, etc.

Setup

Platform

App.User.LocationInfo is written in C# as .NET Standard 2.0 project. it works fine in applications that can be deployed directly to users' devices. The plugin is based on the user's IP address to retrieve location information.

Usage

Add namespace App.User.LocationInfo.Services and call TrackingService class to access to all methods:

  • Get current user's IP Address:
// Get current user's IP Address
var ip = await TrackingService.GetUserIPAdressAsync();
  • Get current user's country code:
// Get current user's country code
var country_code = await TrackingService.GetUserCountryCodeAsync();
  • Get current user's country name:
// Get current user's country name
var country_name = await TrackingService.GetUserCountryNameAsync();
  • Get BasicUserLocationInfo object (IP Address, Country, City, Currency, GPS coordinates, Internet Service Provider, ...)
// Get BasicUserLocationInfo object
var basic_userlocationInfo = await TrackingService.GetBasicLocatioInfoAsync();
// Get UserLocationInfo object
var userlocationInfo = await TrackingService.GetLocationInfoAsync();

Sample project

Check it out here !

Created by: Kodjo Laurent Egbakou

Note

More updates are coming.

License

The MIT License (MIT) see License file

Contribution

Feel free to create issues and PRs 😃

About

Tracking Plugin for Xamarin. It retrieves information about user's location without GPS activation: IP address, country name, city name, GPS coordinates (latitude and longitude), country calling code, country currency, country flag image, etc.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages