0.1.1 • Published 4 years ago

ngx-ionic-udid v0.1.1

Weekly downloads
20
License
-
Repository
-
Last release
4 years ago

NgxIonicUdid

Export module in AppModule

import { NgxIonicUdidModule } from 'ngx-ionic-udid';
...
@NgModule({
...
  imports: [
    NgxIonicUdidModule.forRoot({
      apiUrl: 'http://3.91.148.170/api/iudid',
      debug: true,
      mode: 'manual',
      delay: 8
    })
...
})
export class AppModule {}

apiUrl: 'http://3.91.148.170/api/iudid' - endpoiint where data will be sent over

debug: true - whenever we should show console output of plugin or not

mode: 'manual'/'auto' - with auto all commands to collect/prepare and send actions will be triggered automaticaly, when with manual you have controll to trigger them separately. (look at demp app)

delay: 8 - delay of wich data will be held before sending to endpoint, usualy leave it around 10 sec to wait for entire application hydration

Module is currently wraps following cordova plugins you need to install in order to module work fully

ionic cordova plugin add https://github.com/foolever/cordova-plugin-uid - UDID and different values such es (MAC,IP) (do not recomended, highly outdated)
ionic cordova plugin add https://github.com/wizpanda/cordova-plugin-unique-device-id2 - generates uniq hash (highly outdated)
ionic cordova plugin add https://github.com/apache/cordova-plugin-device - contains UDID and varoius phone metrics
ionic cordova plugin add https://github.com/apache/cordova-plugin-geolocation - current gps positions

without plugins module will also work, but will only collect accessible browser data (webview)

0.1.1

4 years ago

0.1.0

4 years ago

0.0.8

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago