I've completed the React Native visa in-app push provisioning guide for iOS with SDK 3.0.1 following the objective-c steps and now see that there are many 'use of undeclared identifier 'xyz'' warnings upon trying to compile. Seems there's likely an issue with the SDK or with the sample code provided:
(ios/PushProvisioningModule.m:33:21)
31 | RCT_EXPORT_METHOD(getUserProfile: (NSString *) params errCallback: (RCTResponseSenderBlock)
32 | errCallback callback: (RCTResponseSenderBlock) callback){
> 33 | successCallback = walletCallback;
| ^ use of undeclared identifier 'walletCallback'
34 | errorCallback = walletErrCallback;
35 | NSData *data = [params dataUsingEncoding:NSUTF8StringEncoding];
36 | id json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
❌ (ios/PushProvisioningModule.m:34:19)
32 | errCallback callback: (RCTResponseSenderBlock) callback){
33 | successCallback = walletCallback;
> 34 | errorCallback = walletErrCallback;
| ^ use of undeclared identifier 'walletErrCallback'
35 | NSData *data = [params dataUsingEncoding:NSUTF8StringEncoding];
36 | id json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
37 | VDCUserProfileRequest *request = [[VDCUserProfileRequest alloc] initWithEncPayload: [json
❌ (ios/PushProvisioningModule.m:37:3)
35 | NSData *data = [params dataUsingEncoding:NSUTF8StringEncoding];
36 | id json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
> 37 | VDCUserProfileRequest *request = [[VDCUserProfileRequest alloc] initWithEncPayload: [json
| ^ use of undeclared identifier 'VDCUserProfileRequest'
38 | objectForKey:@"encPayload"]];
39 | [visaDisplayCardInterface getUserProfileWithUserProfileRequest:request];
40 | }
❌ (ios/PushProvisioningModule.m:37:26)
35 | NSData *data = [params dataUsingEncoding:NSUTF8StringEncoding];
36 | id json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
> 37 | VDCUserProfileRequest *request = [[VDCUserProfileRequest alloc] initWithEncPayload: [json
| ^ use of undeclared identifier 'request'
38 | objectForKey:@"encPayload"]];
39 | [visaDisplayCardInterface getUserProfileWithUserProfileRequest:request];
40 | }
❌ (ios/PushProvisioningModule.m:37:38)
35 | NSData *data = [params dataUsingEncoding:NSUTF8StringEncoding];
36 | id json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
> 37 | VDCUserProfileRequest *request = [[VDCUserProfileRequest alloc] initWithEncPayload: [json
| ^ use of undeclared identifier 'VDCUserProfileRequest'
38 | objectForKey:@"encPayload"]];
39 | [visaDisplayCardInterface getUserProfileWithUserProfileRequest:request];
40 | }
❌ (ios/PushProvisioningModule.m:39:4)
37 | VDCUserProfileRequest *request = [[VDCUserProfileRequest alloc] initWithEncPayload: [json
38 | objectForKey:@"encPayload"]];
> 39 | [visaDisplayCardInterface getUserProfileWithUserProfileRequest:request];
| ^ use of undeclared identifier 'visaDisplayCardInterface'
40 | }
41 |
42 | // Start Card Provisioning
❌ (ios/PushProvisioningModule.m:45:21)
43 | RCT_EXPORT_METHOD(getCardDetails:(NSString *) params errCallback: (RCTResponseSenderBlock)
44 | errCallback callback: (RCTResponseSenderBlock) callback){
> 45 | successCallback = provisioningCallback;
| ^ use of undeclared identifier 'provisioningCallback'
46 | errorCallback = provisioningErrCallback;
47 | NSData *data = [params dataUsingEncoding:NSUTF8StringEncoding];
48 | id json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
❌ (ios/PushProvisioningModule.m:46:19)
44 | errCallback callback: (RCTResponseSenderBlock) callback){
45 | successCallback = provisioningCallback;
> 46 | errorCallback = provisioningErrCallback;
| ^ use of undeclared identifier 'provisioningErrCallback'
47 | NSData *data = [params dataUsingEncoding:NSUTF8StringEncoding];
48 | id json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
49 | VDCCardDetailsRequest *request = [[VDCCardDetailsRequest alloc]
❌ (ios/PushProvisioningModule.m:49:3)
47 | NSData *data = [params dataUsingEncoding:NSUTF8StringEncoding];
48 | id json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
> 49 | VDCCardDetailsRequest *request = [[VDCCardDetailsRequest alloc]
| ^ use of undeclared identifier 'VDCCardDetailsRequest'
50 | initWithCardOwnerVerificationMethod:[json objectForKey:@"cardOwnerVerificationMethod"]
51 | cardOwnerVerifiedAt:[[json objectForKey:@"cardOwnerVerifiedAt"] doubleValue] encPayload:[json
52 | objectForKey:@"encPayload"]];
❌ (ios/PushProvisioningModule.m:49:26)
47 | NSData *data = [params dataUsingEncoding:NSUTF8StringEncoding];
48 | id json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
> 49 | VDCCardDetailsRequest *request = [[VDCCardDetailsRequest alloc]
| ^ use of undeclared identifier 'request'
50 | initWithCardOwnerVerificationMethod:[json objectForKey:@"cardOwnerVerificationMethod"]
51 | cardOwnerVerifiedAt:[[json objectForKey:@"cardOwnerVerifiedAt"] doubleValue] encPayload:[json
52 | objectForKey:@"encPayload"]];
❌ (ios/PushProvisioningModule.m:49:38)
47 | NSData *data = [params dataUsingEncoding:NSUTF8StringEncoding];
48 | id json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
> 49 | VDCCardDetailsRequest *request = [[VDCCardDetailsRequest alloc]
| ^ use of undeclared identifier 'VDCCardDetailsRequest'
50 | initWithCardOwnerVerificationMethod:[json objectForKey:@"cardOwnerVerificationMethod"]
51 | cardOwnerVerifiedAt:[[json objectForKey:@"cardOwnerVerifiedAt"] doubleValue] encPayload:[json
52 | objectForKey:@"encPayload"]];
❌ (ios/PushProvisioningModule.m:53:4)
51 | cardOwnerVerifiedAt:[[json objectForKey:@"cardOwnerVerifiedAt"] doubleValue] encPayload:[json
52 | objectForKey:@"encPayload"]];
> 53 | [visaDisplayCardInterface getCardDetailsWithCardDetailsRequest:request];
| ^ use of undeclared identifier 'visaDisplayCardInterface'
54 | }
55 |
56 | #pragma mark - VisaPushProvisioningListener Delegate methods
Hi @DevinDeveloper,
This issue has been escalated to the appropriate Visa Representatives that work with Unit. Per our past conversation, since you are a Unit client, a Unit Representative will be reaching out to you regarding your issue.
Thanks,
Illana