2016-06-24 13 views
1

私のアプリに分析プラットフォーム(Clevertap)を統合して、ユーザーの詳細を簡単に追跡します。 は、コードが下に言及しているユーザーのプロファイルを更新するには、次のプロファイルに渡されたモバイル番号が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]; 

しかし、私はすべてのフィールドが携帯電話の番号を除き、更新されclevertapのダッシュボードを見たときに問題があります。 enter image description here

答えて

0

SIMを搭載していないデバイスでコードを実行しているようです。

CleverTapは、デバイスのSIMから自動的に取得された国コードを使用して電話番号をユーザーのプロファイルに保存します。 SIMはデバイス/エミュレータには存在しない可能性があるため、SDKは国コードを取得できないため、ユーザーのプロファイルに対して電話番号を保存しません。

SIMでiPhoneでこれを試してみると、動作します。

これが役に立ちます。さらに質問がある場合は、https://community.clevertap.com/

に投稿できます
関連する問題