V 1.1.24+1 Push Notification android, Smartlook activate
This commit is contained in:
@@ -38,6 +38,7 @@ import 'package:package_info/package_info.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:aitrainer_app/model/exercise_type.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:smartlook/smartlook.dart';
|
||||
|
||||
import 'customer_exercise_device.dart';
|
||||
import 'exercise_device.dart';
|
||||
@@ -689,9 +690,9 @@ class Cache with Logging {
|
||||
|
||||
if (!isInDebugMode) {
|
||||
FlurryData.setUserId(customerId.toString());
|
||||
//Smartlook.setUserIdentifier(customerId.toString());
|
||||
FlutterUxcam.setUserProperty("username", customerId.toString());
|
||||
FlutterUxcam.setUserIdentity(customerId.toString());
|
||||
Smartlook.setUserIdentifier(customerId.toString());
|
||||
Track().track(TrackingEvent.enter);
|
||||
}
|
||||
|
||||
@@ -701,7 +702,7 @@ class Cache with Logging {
|
||||
});
|
||||
|
||||
print("Firebase token save: $firebaseMessageToken");
|
||||
if (userLoggedIn!.firebaseRegToken == null && firebaseMessageToken != null) {
|
||||
if (firebaseMessageToken != null) {
|
||||
userLoggedIn!.firebaseRegToken = firebaseMessageToken;
|
||||
CustomerRepository customerRepository = CustomerRepository();
|
||||
customerRepository.customer = userLoggedIn;
|
||||
|
||||
Reference in New Issue
Block a user