2016-06-24 2 views
1

Ich integriere eine Analytics-Plattform (Clevertap) in meiner App für die einfache Verfolgung von Benutzerdetails. Zum Profil des Benutzers aktualisiert der Code unten erwähnt:Mobile Nummer, die an Profil übergeben wird, wird nicht aktualisiert auf Clevertap

NSDateComponents *dob = [[NSDateComponents alloc] init]; 
dob.day = 24; 
dob.month = 5; 
dob.year = 1992; 
NSDate *d = [[NSCalendar currentCalendar] dateFromComponents:dob]; 
NSDictionary *profile = @{ 
    @"Name": @"Jack Montana",  // String 
    @"Identity": @61026032,   // String or number 
    @"Email": @"[email protected]", // Email address of the user 
    @"Phone": @4155551234,   // Phone (exclude the country code) 
    @"Gender": @"M",    // Can be either M or F 
    @"Employed": @"Y",    // Can be either Y or N 
    @"Education": @"Graduate",  // Can be either Graduate, College or School 
    @"Married": @"Y",    // Can be either Y or N 
    @"DOB": d,      // Date of Birth. An NSDate object 
    @"Age": @28,     // Not required if DOB is set 

// optional fields. controls whether the user will be sent email, push etc. 
    @"MSG-email": @NO,    // Disable email notifications 
    @"MSG-push": @YES,    // Enable push notifications 
    @"MSG-sms": @NO     // Disable SMS notifications 
}; 

[[CleverTap sharedInstance] profilePush:profile]; 

Aber das Problem ist, wenn ich bei clevertap Armaturenbrett schauen alle Felder außer Handynummer aktualisiert werden. enter image description here

Antwort

0

Sie scheinen den Code in einem Gerät ohne SIM zu laufen.

CleverTap speichert die Telefonnummer für ein Benutzerprofil mit der Landesvorwahl, die automatisch von der SIM-Karte des Geräts abgerufen wird. Da die SIM-Karte möglicherweise nicht auf dem Gerät/Emulator vorhanden ist, kann das SDK den Ländercode nicht abrufen. Daher wird die Telefonnummer nicht im Profil des Benutzers gespeichert.

Wenn Sie dies auf einem iPhone mit einer SIM versuchen, wird es funktionieren.

Hoffe, das hilft. Für weitere Fragen können Sie unter https://community.clevertap.com/

posten
Verwandte Themen