From version < 19.1
edited by Developer
on 2020/03/19 15:21
To version < 13.1 >
edited by Developer
on 2020/03/19 14:56
<
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -417,16 +417,16 @@
417 417  
418 418  (% class="table-bordered table-hover" style="border-color:powderblue" %)
419 419  |=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
420 -|enable|boolean|true if enable, false if disable
421 -|collectors|array of [[data collector const>>doc:||anchor="H4.3Datacollectorsconstants"]]|e.g.,[Mobigate.DATA_COLLECTOR_BATTERY, DATA_COLLECTOR_GEOLOCATION]
420 +|enable|boolean|true if enable, false if disable|
421 +|collectors|array of [[data collector const>>doc:||anchor="H4.3Datacollectorsconstants"]]|e.g.,[Mobigate.DATA_COLLECTOR_BATTERY, DATA_COLLECTOR_GEOLOCATION]|
422 422  
423 423  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
424 -{{code language="dart"}}
424 +{{code language="javascript"}}
425 425  mobigateInstance.configureDataCollectors(true, [
426 426   DataCollector.APPS_LIST,
427 427   DataCollector.APPS_USAGE,
428 428   DataCollector.BROWSER
429 - ]);
429 + ])
430 430  {{/code}}
431 431  {{/showhide}}
432 432  
... ... @@ -433,12 +433,12 @@
433 433  (% style="color:powderblue" %)
434 434  ----
435 435  
436 -**void disableAllDataCollector()**
436 +**Mobigate.disableAllDataCollector()**
437 437  Disable all data collectors
438 438  
439 439  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
440 -{{code language="dart"}}
441 -mobigateInstance.disableAllDataCollector();
440 +{{code language="javascript"}}
441 +Mobigate.disableAllDataCollector()
442 442  {{/code}}
443 443  {{/showhide}}
444 444  
... ... @@ -445,16 +445,16 @@
445 445  (% style="color:powderblue" %)
446 446  ----
447 447  
448 -**void setEmail(String email)**
448 +**Mobigate.setEmail(email)**
449 449  Set user's email
450 450  
451 451  (% class="table-bordered table-hover" style="border-color:powderblue" %)
452 452  |=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
453 -|email |String |user's email address
453 +|email |String |user's email address |
454 454  
455 455  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
456 -{{code language="dart"}}
457 -mobigateInstance.setEmail('test@spicymobile.pl');
456 +{{code language="javascript"}}
457 +Mobigate.setEmail('emailExample@spicymobile.pl')
458 458  {{/code}}
459 459  {{/showhide}}
460 460  
... ... @@ -461,12 +461,21 @@
461 461  (% style="color:powderblue" %)
462 462  ----
463 463  
464 -**Future<String> getEmail()**
465 -Get previously set user email. Return email on success, error otherwise.
464 +**Mobigate.getEmail(onSuccess, onError)**
465 +Get previously set user email
466 466  
467 +(% class="table-bordered table-hover" style="border-color:powderblue" %)
468 +|=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
469 +|onSuccess |Function |returns callback object
470 +|onError |Function |returns callback object
471 +
467 467  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
468 -{{code language="dart"}}
469 -final String email = await mobigateInstance.getEmail();
473 +{{code language="javascript"}}
474 +Mobigate.getEmail((success) => {
475 + console.log("user email: " + success)
476 + }, (error) => {
477 + console.log(error)
478 + })
470 470  {{/code}}
471 471  {{/showhide}}
472 472  
... ... @@ -473,7 +473,7 @@
473 473  (% style="color:powderblue" %)
474 474  ----
475 475  
476 -**void setFbToken(String token)**
485 +**Mobigate.setFbToken(token)**
477 477  Set fb token for social network collector
478 478  
479 479  (% class="table-bordered table-hover" style="border-color:powderblue" %)
... ... @@ -481,20 +481,49 @@
481 481  |token |string |facebook token
482 482  
483 483  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
484 -{{code language="dart"}}
485 -mobigateInstance.setFbToken('dsf87esy789fys9dfu08sds54s6547c8s8doc4');
493 +{{code language="javascript"}}
494 +Mobigate.setFbToken('9dsf87ds98978das98d7893u12rj808d0j09012jd012')
486 486  {{/code}}
487 487  {{/showhide}}
488 488  
498 +(((
499 +(% class="showhidebutton" %)
500 +(((
501 +{{html clean="false"}}
502 +<a href="javascript:void(0)" id="showhidebuttontext3" data-show-duration="0" data-show-effect="toggle" data-show-message="Example" data-hide-message="Example">Example</a>
503 +{{/html}}
504 +)))
505 +
506 +(% class="showhidecontent" id="showhidecontent3" style="display: none;" %)
507 +(((
508 +(((
509 +{{code language="javascript"}}
510 +Mobigate.setFbToken('9dsf87ds98978das98d7893u12rj808d0j09012jd012')
511 +{{/code}}
512 +)))
513 +)))
514 +)))
515 +
516 +
517 +
489 489  (% style="color:powderblue" %)
490 490  ----
491 491  
492 -**Future<String> getSDKInfo()**
493 -Getting information about the library. Return on success sdk info string, error otherwise.
521 +**Mobigate.getSDKInfo(onSuccess, onError)**
522 +Getting information about the library
494 494  
524 +(% class="table-bordered table-hover" style="border-color:powderblue" %)
525 +|=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
526 +|onSuccess |Function |returns callback object
527 +|onError |Function |returns callback object
528 +
495 495  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
496 -{{code language="dart"}}
497 -final String sdkInfo = await mobigateInstance.getSDKInfo();
530 +{{code language="javascript"}}
531 +Mobigate.getSDKInfo((success) => {
532 + console.log("sdk info: " + success)
533 + }, (error) => {
534 + console.log(error)
535 + })
498 498  {{/code}}
499 499  {{/showhide}}
500 500  
... ... @@ -501,12 +501,21 @@
501 501  (% style="color:powderblue" %)
502 502  ----
503 503  
504 -**Future<String> getSDKUniqueIdentifier()**
505 -Return unique SDK identificator. Return on success sdk unique identifier, error otherwise.
542 +**Mobigate.getSDKUniqueIdentifier(onSuccess, onError)**
543 +Return unique SDK identificator
506 506  
545 +(% class="table-bordered table-hover" style="border-color:powderblue" %)
546 +|=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
547 +|onSuccess |Function |returns callback object
548 +|onError |Function |returns callback object
549 +
507 507  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
508 -{{code language="dart"}}
509 -final String sdkUniqueIdentifier = await mobigateInstance.getSDKUniqueIdentifier();
551 +{{code language="javascript"}}
552 +Mobigate.getSDKUniqueIdentifier((success) => {
553 + console.log("UUID: " + success)
554 + }, (error) => {
555 + console.log(error)
556 + })
510 510  {{/code}}
511 511  {{/showhide}}
512 512  
... ... @@ -513,12 +513,22 @@
513 513  (% style="color:powderblue" %)
514 514  ----
515 515  
516 -**Future<List<int>> getIDsProfiles()**
563 +**Mobigate.getIDsProfiles(onSuccess, onError)**
517 517  Method returns IDs profiles. List of IDs profiles in the application memory is updated (synchronized with the server) at specified intervals. To enable functionality, use the 'enableIDsProfiles (boolean enable)' method. Returns the identifiers of IDs profiles (ex. 5,9,20), returns '0' if list of user IDs profiles is empty, returns 'null' if the system has not yet communicated
518 518  
566 +
567 +(% class="table-bordered table-hover" style="border-color:powderblue" %)
568 +|=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
569 +|onSuccess |Function |returns callback object
570 +|onError |Function |returns callback object
571 +
519 519  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
520 -{{code language="dart"}}
521 -final List<int> idsProfiles = await mobigateInstance.getIDsProfiles();
573 +{{code language="javascript"}}
574 +Mobigate.getIDsProfiles((success) => {
575 + console.log("Profiles: " + success)
576 + }, (error) => {
577 + console.log(error)
578 + })
522 522  {{/code}}
523 523  {{/showhide}}
524 524  
... ... @@ -525,12 +525,21 @@
525 525  (% style="color:powderblue" %)
526 526  ----
527 527  
528 -**Future<Map<String, int>> getAdOceanTargeting()**
585 +**Mobigate.getAdOceanTargeting(onSuccess, onError)**
529 529  Getting numerical variables, that can be used for ads targeting. Method must be called from separate thread. Return 3 different identifiers of a user, encoded into a map of AdOcean numerical variables
530 530  
588 +(% class="table-bordered table-hover" style="border-color:powderblue" %)
589 +|=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
590 +|onSuccess |Function |returns callback object
591 +|onError |Function |returns callback object
592 +
531 531  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
532 -{{code language="dart"}}
533 -final Map<String,int> adOceanTargeting = await mobigateInstance.getAdOceanTargeting();
594 +{{code language="javascript"}}
595 +Mobigate.getAdOceanTargeting((success) => {
596 + console.log("Adocean targeting: " + success)
597 + }, (error) => {
598 + console.log(error)
599 + })
534 534  {{/code}}
535 535  {{/showhide}}
536 536  
... ... @@ -542,55 +542,55 @@
542 542  
543 543  Used to set custom user fields inside //Mobigate.init()// method:
544 544  
545 -* UserField.USER_FIELD_EMAIL
546 -* UserField.USER_FIELD_IMSI
547 -* UserField.USER_FIELD_IMEI
548 -* UserField.USER_FIELD_SERIAL
611 +* Mobigate.USER_FIELD_EMAIL
612 +* Mobigate.USER_FIELD_IMSI
613 +* Mobigate.USER_FIELD_IMEI
614 +* Mobigate.USER_FIELD_SERIAL
549 549  
550 550  == 4.2 Data gather policy constants ==
551 551  
552 552  Used to set how the library collects data:
553 553  
554 -* MonitorState.DATA_GATHER_POLICY_DEFAULT
555 -* MonitorState.DATA_GATHER_POLICY_HIDE_TRAY
556 -* MonitorState.DATA_GATHER_POLICY_BLOCK_DATA_BG
620 +* Mobigate.DATA_GATHER_POLICY_DEFAULT
621 +* Mobigate.DATA_GATHER_POLICY_HIDE_TRAY
622 +* Mobigate.DATA_GATHER_POLICY_BLOCK_DATA_BG
557 557  
558 558  == 4.3 Data collectors constants ==
559 559  
560 560  Used to set which data the library should collect:
561 561  
562 -* DataCollector.APPS_LIST
563 -* DataCollector.DATA_COLLECTOR_APPS_USAGE
564 -* DataCollector.BATTERY
565 -* DataCollector.BROWSER
566 -* DataCollector.CALENDAR_EVENTS
567 -* DataCollector.CPU_PROCESS
568 -* DataCollector.DICTIONARY
569 -* DataCollector.GEOLOCATION
570 -* DataCollector.HEADSET_PLUG
571 -* DataCollector.MEDIA_FILES
572 -* DataCollector.MEMORY_USEAGE
573 -* DataCollector.NETWORK_CONNECTION
574 -* DataCollector.NETWORK_USEAGE
575 -* DataCollector.PACKAGE_CHANGE
576 -* DataCollector.PHONE_INFO
577 -* DataCollector.ROAMING
578 -* DataCollector.SCREEN_ORIENTED
579 -* DataCollector.SIGNAL_STRENGTH
580 -* DataCollector.PROFILE_MODE
581 -* DataCollector.WIFI_DATA_CONNECTION
582 -* DataCollector.PERMISSION_COLLECTOR
583 -* DataCollector.NFC_COLLECTOR
584 -* DataCollector.BLUETOOTH_COLLECTOR
585 -* DataCollector.BLUETOOTH_DEVICES_COLLECTOR
586 -* DataCollector.MOVEMENT_COLLECTOR
587 -* DataCollector.FACEBOOK_NETWORK_COLLECTOR
588 -* DataCollector.ROOT_COLLECTOR
628 +* Mobigate.DATA_COLLECTOR_APPS_LIST
629 +* Mobigate.DATA_COLLECTOR_APPS_USAGE
630 +* Mobigate.DATA_COLLECTOR_BATTERY
631 +* Mobigate.DATA_COLLECTOR_BROWSER
632 +* Mobigate.DATA_COLLECTOR_CALENDAR_EVENTS
633 +* Mobigate.DATA_COLLECTOR_CPU_PROCESS
634 +* Mobigate.DATA_COLLECTOR_DICTIONARY
635 +* Mobigate.DATA_COLLECTOR_GEOLOCATION
636 +* Mobigate.DATA_COLLECTOR_HEADSET_PLUG
637 +* Mobigate.DATA_COLLECTOR_MEDIA_FILES
638 +* Mobigate.DATA_COLLECTOR_MEMORY_USEAGE
639 +* Mobigate.DATA_COLLECTOR_NETWORK_CONNECTION
640 +* Mobigate.DATA_COLLECTOR_NETWORK_USEAGE
641 +* Mobigate.DATA_COLLECTOR_PACKAGE_CHANGE
642 +* Mobigate.DATA_COLLECTOR_PHONE_INFO
643 +* Mobigate.DATA_COLLECTOR_ROAMING
644 +* Mobigate.DATA_COLLECTOR_SCREEN_ORIENTED
645 +* Mobigate.DATA_COLLECTOR_SIGNAL_STRENGTH
646 +* Mobigate.DATA_COLLECTOR_PROFILE_MODE
647 +* Mobigate.DATA_COLLECTOR_WIFI_DATA_CONNECTION
648 +* Mobigate.DATA_COLLECTOR_PERMISSION_COLLECTOR
649 +* Mobigate.DATA_COLLECTOR_NFC_COLLECTOR
650 +* Mobigate.DATA_COLLECTOR_BLUETOOTH_COLLECTOR
651 +* Mobigate.DATA_COLLECTOR_BLUETOOTH_DEVICES_COLLECTOR
652 +* Mobigate.DATA_COLLECTOR_MOVEMENT_COLLECTOR
653 +* Mobigate.DATA_COLLECTOR_FACEBOOK_NETWORK_COLLECTOR
654 +* Mobigate.DATA_COLLECTOR_ROOT_COLLECTOR
589 589  
590 590  == 4.4 Category and parameter constants ==
591 591  
592 -Instead of using defined [[categories>>doc:||anchor="H3.3.3Eventcategories"]] or [[parameters>>doc:||anchor="H3.3.4Eventparameters"]] in the form of text, you can use constants defined in the plugin. All you have to do is use EventCategory or EventParameter class e.g., EventCategory.LEVEL_ACCOMPLISHED, EventCategory.PURCHASE, EventParameter.PRICE, EventParameter.LEVEL.
658 +Instead of using defined [[categories>>doc:||anchor="H3.2.3Eventcategories"]] or [[parameters>>doc:||anchor="H3.2.4Eventparameters"]] in the form of text, you can use constants defined in the plugin. All you have to do is add the prefix "CATEGORY_" or "PARAMETER_" to the category name or parameter e.g., Mobigate.CATEGORY_LEVEL_ACCOMPLISHED, Mobigate.CATEGORY_PURCHASE, Mobigate.PARAMETER_PRICE, Mobigate.PARAMETER_LEVEL.
593 593  
594 594  = 5. Sample app =
595 595  
596 -The sample application is located in the github repository [[here>>https://github.com/mobigatesdk/flutter_mobigate]] in //example// folder.
662 +The sample application is located in the github repository [[here>>https://github.com/mobigatesdk/react-native-mobigate]] in //example// folder.
Spicy Mobile
spicymobile.pl